Last active
June 30, 2020 21:30
-
-
Save davebrny/4438ca257eb3954a08da5dea181085b0 to your computer and use it in GitHub Desktop.
π (autohotkey) - show a list of open folders when youre at a "save as" or "open" dialog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if winActive("ahk_class #32770") ; "save", "save as" or "open" | |
^+l::goSub, list_open_folders | |
#if | |
list_open_folders: | |
for a in comObjCreate("shell.application").windows | |
{ | |
if !inStr(a.document.folder.self.path, "::{") ; ignore recycle bin & my pc | |
menu, open_folders, add, % a.document.folder.self.path, goto_open_folder | |
} | |
menu, open_folders, useErrorLevel | |
menu, open_folders, show | |
menu, open_folders, deleteAll | |
return | |
goto_open_folder: | |
controlSetText, edit1, % a_thisMenuItem, ahk_class #32770 | |
controlFocus, edit1, ahk_class #32770 | |
controlSend, edit1, {enter}, ahk_class #32770 | |
return | |
/* | |
[script info] | |
version = 1.3 | |
description = show a list of open folders when youre at a "save" or "open" dialog | |
author = davebrny | |
source = https://gist.github.com/davebrny/4438ca257eb3954a08da5dea181085b0 | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment