aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2020-10-31 14:22:16 +0100
committerJohn Ankarström <john@ankarstrom.se>2020-10-31 14:25:37 +0100
commitfae1b79fad92355f673efce07e29ca98b0f66d25 (patch)
tree7c72153522dd86ba1e49b951779f383d0b767c70
parent174ac9ea9434e6755b683dfbff6f9194cad480f5 (diff)
downloadahk-fae1b79fad92355f673efce07e29ca98b0f66d25.tar.gz
update explorer git hotkeys
-rw-r--r--tt.programs.explorer.ahk15
1 files changed, 8 insertions, 7 deletions
diff --git a/tt.programs.explorer.ahk b/tt.programs.explorer.ahk
index 0e57d65..f027217 100644
--- a/tt.programs.explorer.ahk
+++ b/tt.programs.explorer.ahk
@@ -207,12 +207,12 @@ q(s)
qp()
{
- return q(Explorer().Document.Folder.Self.path)
+ return """" Explorer().Document.Folder.Self.path """"
}
qip()
{
- return q(Explorer().Document.FocusedItem.path)
+ return """" Explorer().Document.FocusedItem.path """"
}
basename(s)
@@ -228,12 +228,13 @@ basename(s)
!a::Run, % "cmd /c cd "qp()" & git add "qip()" && git status & pause"
!c::Run, % "cmd /c cd "qp()" & git commit & pause"
!+c::Run, % "cmd /c cd "qp()" & git commit --amend & pause"
-!d::Run, % "cmd /c cd "qp()" & git diff "qip()" & pause"
-!+d::Run, % "cmd /c cd "qp()" & git diff & pause"
-!f::Run, % "cmd /c cd "qp()" & git diff HEAD~1 HEAD "qip()" & pause"
-!+f::Run, % "cmd /c cd "qp()" & git diff HEAD~1 HEAD & pause"
+!d::Run, % "cmd /c cd "qp()" & git diff & pause"
+!+d::Run, % "cmd /c cd "qp()" & git diff "qip()" & pause"
+!f::Run, % "cmd /c cd "qp()" & git diff HEAD~1 HEAD & pause"
+!+f::Run, % "cmd /c cd "qp()" & git diff HEAD~1 HEAD "qip()" & pause"
!l::Run, % "cmd /c cd "qp()" & git log & pause"
-!p::Run, % "cmd /c cd "qp()" & git push origin "q(basename)" & pause"
+!+l::Run, % "cmd /c cd "qp()" & git log "qip()" & pause"
+!p::Run, % "cmd /c cd "qp()" & git push origin & pause"
!r::Run, % "cmd /c cd "qp()" & git reset "qip()" && git status & pause"
!s::Run, % "cmd /c cd "qp()" & git status & pause"