From a853164302c2dfac33bed44cd6a9d3613ebb0a42 Mon Sep 17 00:00:00 2001 From: anatoly techtonik Date: Thu, 8 Sep 2016 00:11:51 +0300 Subject: [PATCH 1/2] Usability integration with file managers --- cmd/micro/bindings.go | 9 ++++++++- runtime/help/keybindings.md | 8 ++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) 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", } ``` From f4e0a3c0f8550861b97a713bfd4b3ed837a53134 Mon Sep 17 00:00:00 2001 From: anatoly techtonik Date: Sun, 11 Sep 2016 22:40:02 +0300 Subject: [PATCH 2/2] Fix comma and tabs in markdown help --- runtime/help/keybindings.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/runtime/help/keybindings.md b/runtime/help/keybindings.md index 26330afa..efe68b68 100644 --- a/runtime/help/keybindings.md +++ b/runtime/help/keybindings.md @@ -72,15 +72,15 @@ you can rebind them to your liking. "Alt-a": "StartOfLine", "Alt-e": "EndOfLine", "Alt-p": "CursorUp", - "Alt-n": "CursorDown" + "Alt-n": "CursorDown", // Integration with file managers - "F1": "ToggleHelp", - "F2": "Save", - "F4": "Quit", - "F7": "Find", - "F10": "Quit", - "Esc": "Quit", + "F1": "ToggleHelp", + "F2": "Save", + "F4": "Quit", + "F7": "Find", + "F10": "Quit", + "Esc": "Quit", } ```