diff --git a/cmd/micro/bindings.go b/cmd/micro/bindings.go index da6328be..7e8b0c22 100644 --- a/cmd/micro/bindings.go +++ b/cmd/micro/bindings.go @@ -405,7 +405,6 @@ func DefaultBindings() map[string]string { "CtrlR": "ToggleRuler", "CtrlL": "JumpLine", "Delete": "Delete", - "Esc": "ClearStatus", "CtrlB": "ShellMode", "CtrlQ": "Quit", "CtrlE": "CommandMode", @@ -420,5 +419,13 @@ func DefaultBindings() map[string]string { "Alt-e": "EndOfLine", "Alt-p": "CursorUp", "Alt-n": "CursorDown", + + // Integration with file managers + "F1": "ToggleHelp", + "F2": "Save", + "F4": "Quit", + "F7": "Find", + "F10": "Quit", + "Esc": "Quit", } } diff --git a/runtime/help/keybindings.md b/runtime/help/keybindings.md index 28af66e7..26330afa 100644 --- a/runtime/help/keybindings.md +++ b/runtime/help/keybindings.md @@ -73,6 +73,14 @@ you can rebind them to your liking. "Alt-e": "EndOfLine", "Alt-p": "CursorUp", "Alt-n": "CursorDown" + + // Integration with file managers + "F1": "ToggleHelp", + "F2": "Save", + "F4": "Quit", + "F7": "Find", + "F10": "Quit", + "Esc": "Quit", } ```