mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 02:00:10 +02:00
Merge branch 'main' of github.com:overleaf/internal
GitOrigin-RevId: b0a13b4b4f7ede46d5ac5478dd03642d59e11a98
This commit is contained in:
committed by
Copybot
parent
512a5b32cc
commit
f651aa9ff6
@@ -85,7 +85,22 @@ const customiseVimOnce = (Vim: any, CodeMirror: any) => {
|
||||
Vim.defineAction('unfoldCode', function (cm: CodeMirror) {
|
||||
unfoldCode(cm.cm6)
|
||||
})
|
||||
Vim.mapCommand('zo', 'action', 'unfoldCode')
|
||||
|
||||
// disable tab and shift-tab keys in command (normal) and visual modes
|
||||
// using "undefined" params because mapCommand signature is:
|
||||
// mapCommand(keys, type, name, args, extra)
|
||||
Vim.mapCommand('<Tab>', undefined, undefined, undefined, {
|
||||
context: 'normal',
|
||||
})
|
||||
Vim.mapCommand('<Tab>', undefined, undefined, undefined, {
|
||||
context: 'visual',
|
||||
})
|
||||
Vim.mapCommand('<S-Tab>', undefined, undefined, undefined, {
|
||||
context: 'normal',
|
||||
})
|
||||
Vim.mapCommand('<S-Tab>', undefined, undefined, undefined, {
|
||||
context: 'visual',
|
||||
})
|
||||
|
||||
// Make the Vim 'write' command start a compile
|
||||
CodeMirror.commands.save = () => {
|
||||
|
||||
Reference in New Issue
Block a user