diff options
author | John Ankarström <john@ankarstrom.se> | 2020-12-26 15:40:33 +0100 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2020-12-26 15:40:33 +0100 |
commit | 7299890afe56a613927057d9b928309edb4b4404 (patch) | |
tree | 4610b156066c1e49293717ca02c43bab7d0d24f8 | |
parent | d74a7673e1ce534b5723732d9db4630702d01419 (diff) | |
download | ahk-7299890afe56a613927057d9b928309edb4b4404.tar.gz |
explorer: Add copy file path hotkey
-rw-r--r-- | tt.programs.explorer.ahk | 16 |
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 |