aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2020-12-26 15:40:33 +0100
committerJohn Ankarström <john@ankarstrom.se>2020-12-26 15:40:33 +0100
commit7299890afe56a613927057d9b928309edb4b4404 (patch)
tree4610b156066c1e49293717ca02c43bab7d0d24f8
parentd74a7673e1ce534b5723732d9db4630702d01419 (diff)
downloadahk-7299890afe56a613927057d9b928309edb4b4404.tar.gz
explorer: Add copy file path hotkey
-rw-r--r--tt.programs.explorer.ahk16
1 files changed, 16 insertions, 0 deletions
diff --git a/tt.programs.explorer.ahk b/tt.programs.explorer.ahk
index 3deb9d6..3bebd6d 100644
--- a/tt.programs.explorer.ahk
+++ b/tt.programs.explorer.ahk
@@ -104,6 +104,22 @@ if (GetKeyState("Shift"))
else
ShellApp.ShellExecute(i.path, "", "", "Edit", 1)
return
+
+; Copy file path
+
+^+c::
+e := Explorer()
+r := ""
+items := e.Document.SelectedItems
+if (items.Count() > 1)
+ for item in items
+ r .= """" item.path """ "
+else
+ for item in items
+ r := item.path
+if (r = "")
+ r := e.Document.Folder.Self.path
+clipboard := r
return
; Directory navigation