From 31a8be5f32caacad15df223d387c6c1da8e437b6 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Wed, 8 Aug 2018 20:53:14 +1000 Subject: [PATCH] update keybindings --- docs/Keybindings.md | 4 +++- files_panel.go | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/Keybindings.md b/docs/Keybindings.md index 4e26aa9b5..e15bce3b9 100644 --- a/docs/Keybindings.md +++ b/docs/Keybindings.md @@ -13,7 +13,9 @@ space: toggle staged c: commit changes shift+S: stash files - o: open (osx only) + t: add patched (i.e. pick chunks of a file to add) + o: open + e: edit s: open in sublime (requires 'subl' command) v: open in vscode (requires 'code' command) i: add to .gitignore diff --git a/files_panel.go b/files_panel.go index 5c1ec3353..4f993beac 100644 --- a/files_panel.go +++ b/files_panel.go @@ -130,12 +130,12 @@ func renderfilesOptions(g *gocui.Gui, gitFile *GitFile) error { "S": "stash files", "c": "commit changes", "o": "open", - "s": "sublime", - "v": "vscode", "i": "ignore", "d": "delete", "space": "toggle staged", "R": "refresh", + "t": "add patch", + "e": "edit", } if state.HasMergeConflicts { optionsMap["a"] = "abort merge"