aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2020-11-03 13:24:45 +0100
committerJohn Ankarström <john@ankarstrom.se>2020-11-03 13:24:45 +0100
commit5d0a841e08e9f032051db52ad2793b77df58fb6d (patch)
tree2f9dd76ab427d5d8b14ad99b3f82ca7c925b85f1
parenta5bdc9d5f13600f5d0e4a28321e7618cd51963ae (diff)
downloadahk-5d0a841e08e9f032051db52ad2793b77df58fb6d.tar.gz
add git add --patch hotkey
-rw-r--r--tt.programs.explorer.ahk8
1 files changed, 8 insertions, 0 deletions
diff --git a/tt.programs.explorer.ahk b/tt.programs.explorer.ahk
index 012f7df..d3b023b 100644
--- a/tt.programs.explorer.ahk
+++ b/tt.programs.explorer.ahk
@@ -241,6 +241,14 @@ else
Run, % "cmd /c cd "qp()" & git add " qip " && git status & pause"
return
+!+a::
+qip := qip()
+if (qip = "")
+ Run, % "cmd /c cd "qp()" & git add -p . && git status & pause"
+else
+ Run, % "cmd /c cd "qp()" & git add -p " qip " && git status & pause"
+return
+
!f::
qip := qip()
if (qip = "")