aboutsummaryrefslogtreecommitdiff
path: root/tt.programs.explorer.ahk
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2020-12-01 23:18:35 +0100
committerJohn Ankarström <john@ankarstrom.se>2020-12-02 12:21:06 +0100
commite831a7416ba2dd1f342e710c6048c8fa97291d93 (patch)
tree662971d52d8c5380de8417bea9368d7d25aa4644 /tt.programs.explorer.ahk
parent6348db6799aede103ed69522affc79411cb67e1c (diff)
downloadahk-e831a7416ba2dd1f342e710c6048c8fa97291d93.tar.gz
Switch to Windows 7
Diffstat (limited to 'tt.programs.explorer.ahk')
-rw-r--r--tt.programs.explorer.ahk59
1 files changed, 16 insertions, 43 deletions
diff --git a/tt.programs.explorer.ahk b/tt.programs.explorer.ahk
index 0d31034..db07380 100644
--- a/tt.programs.explorer.ahk
+++ b/tt.programs.explorer.ahk
@@ -50,12 +50,7 @@ WinWait, ahk_class ConsoleWindowClass
SendInput, % "cd " path "{Return}"
return
-; Create new folder/file
-
-^+n::
-FileCreateDir, % ExplorerPath() "\New Folder"
-SendInput, {F5}New Folder{F2}
-return
+; Create new file
^!n::
FileAppend,, % ExplorerPath() "\New Text Document.txt"
@@ -129,35 +124,24 @@ Loop, % win
PostMessage, 0x111, 41504,,, % "ahk_id " win%A_Index% ; refresh
return
-; Sort and display options
-
-^q::ExplorerFolderView("name")
-^w::ExplorerFolderView("modified")
-^e::ExplorerFolderView("type")
-^t::ExplorerFolderView("created")
-^g::ExplorerFolderView("groups")
-^s::ExplorerFolderView("tiles")
-^d::ExplorerFolderView("icons")
-^+d::ExplorerFolderView("thumbnails")
-^f::ExplorerFolderView("details")
-^+f::ExplorerFolderView("list")
-
-^!q::ExplorerFolderView("name", true)
-^!w::ExplorerFolderView("modified", true)
-^!e::ExplorerFolderView("type", true)
-^!t::ExplorerFolderView("created", true)
-^!g::ExplorerFolderView("groups", true)
-^!s::ExplorerFolderView("tiles", true)
-^!d::ExplorerFolderView("icons", true)
-^!+d::ExplorerFolderView("thumbnails", true)
-^!f::ExplorerFolderView("details", true)
-^!+f::ExplorerFolderView("list", true)
+; Sort and display options (Windows XP)
+
+;^q::ExplorerFolderView("name")
+;^w::ExplorerFolderView("modified")
+;^e::ExplorerFolderView("type")
+;^t::ExplorerFolderView("created")
+;^g::ExplorerFolderView("groups")
+;^s::ExplorerFolderView("tiles")
+;^d::ExplorerFolderView("icons")
+;^+d::ExplorerFolderView("thumbnails")
+;^f::ExplorerFolderView("details")
+;^+f::ExplorerFolderView("list")
#IfWinActive
;; -> library
-ExplorerFolderView(view, children := false)
+ExplorerFolderView(view)
{
if (view = "name")
n := {m: 30210, d: -1}
@@ -180,20 +164,8 @@ ExplorerFolderView(view, children := false)
else if (view = "list")
n := {m: 28715, d: 3}
- PostMessage, 0x111, % n.m, 0,, A ; change current folder
+ PostMessage, 0x111, % n.m, 0,, A
return
- if (not children or m.d = -1)
- return
-
- old := A_BatchLines
- SetBatchLines, -1
-
- Loop, Files, % ExplorerPath() "\*", D
- {
- MsgBox, % A_LoopFileFullPath
- }
-
- SetBatchLines, % old
}
;; Git hotkeys ----------------------------------------------------------------
@@ -231,6 +203,7 @@ basename(s)
!c::Run, % "cmd /c cd "qp()" & git commit & pause"
!+c::Run, % "cmd /c cd "qp()" & git commit --amend & pause"
!^c::Run, % "cmd /c cd "qp()" & git commit -a & pause"
+!^+c::Run, % "cmd /c cd "qp()" & git commit -a --amend & pause"
!p::Run, % "cmd /c cd "qp()" & git push & pause"
!s::Run, % "cmd /c cd "qp()" & git status & pause"