Hotkey for opening a folder in Sublime Text 3 Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Arete
Posts: 6
Joined: 23 Mar 2017, 08:57

Hotkey for opening a folder in Sublime Text 3

08 Sep 2017, 12:45

I know that, in Win CDM this

Code: Select all

cd /d "D:\MyFolder\" & subl ./docs
will open a folder will open a folder in Sublime Text 3 (if SublimeT3 is added to PATH). So my question is, how can I make a key combo to run the command?
I tried:

Code: Select all

+^o::
  run cmd cd {/d "D:\OneDrive\Documents\Docu\" & subl ./docs}
Exit
but it does not seem to work. Probably because I need to escape some characters or spaces or something, but I am not sure. Any help woul be really appreciated :)
Arete
Posts: 6
Joined: 23 Mar 2017, 08:57

Re: Hotkey for opening a folder in Sublime Text 3

08 Sep 2017, 13:45

Thanks

Code: Select all

+^o::
RunWait, %comspec% /c cd /d "D:\OneDrive\Documents\Docu\" & subl ./docs
Exit
This works :)
Arete
Posts: 6
Joined: 23 Mar 2017, 08:57

Re: Hotkey for opening a folder in Sublime Text 3

12 Oct 2017, 13:41

After a while I realize that it is easier to do:

Code: Select all

+^o::
Run, C:\Program Files\Sublime Text 3\subl.exe "D:\OneDrive\Documents\Docu\"
Exit

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Hansielein, Lpanatt and 317 guests