summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackson Taylor <jtaylor@classicalconversations.com>2023-05-18 10:58:23 -0400
committerJackson Taylor <jtaylor@classicalconversations.com>2023-05-18 10:58:23 -0400
commitafd7eb09ecc31e26ff2cae640cee5a17dd3236a7 (patch)
treed23a67bf2d5a10459f874dcfda4a0e56e6270e93
parent928343c8a5f37142ff4187bcaeea47174e04ac1c (diff)
Keymaps: add hunk staging
Right now I mostly use :Git and then do it that way instead of using the keymaps. But either way is cool.
-rw-r--r--after/plugin/which-key.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/after/plugin/which-key.lua b/after/plugin/which-key.lua
index a0e4b74..2cd40aa 100644
--- a/after/plugin/which-key.lua
+++ b/after/plugin/which-key.lua
@@ -57,8 +57,7 @@ function whichkey_setup()
a = { "<cmd>Git add -A<CR>", "Stage all files"},
-- TODO: Add functionality to stage certain files
-- f = { "<cmd>Git add %<CR>", "Stage a file"}
- -- TODO: Add functionality to stage hunks
- -- h = { "<cmd>Git add %<CR>", "Stage hunk"}
+ h = { "<cmd>Git<CR>", "Stage Hunks from files (\"Enter\" on a file will open it, \"s\" will stage a file, and you can visually select hunks)" },
t = { "<cmd>Git add %<CR>", "Stage this file"}
},
b = { "<cmd>BlamerToggle<CR>", "Turn on Git Blamer"},