Skip to content

Instantly share code, notes, and snippets.

@davebrny
Last active June 30, 2020 21:30
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davebrny/4438ca257eb3954a08da5dea181085b0 to your computer and use it in GitHub Desktop.
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
#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