Skip to content

Commit

Permalink
revert win+c to cmd
Browse files Browse the repository at this point in the history
add new keybind for
  • Loading branch information
hardliner66 committed Aug 5, 2020
1 parent e99e4d8 commit fe91387
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
17 changes: 16 additions & 1 deletion CommandLineHere.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ return
RefreshEnvironment()
OpenCmdInCurrent()
return
^#c::
RefreshEnvironment()
OpenTerminalInCurrent()
return
#+c::
RefreshEnvironment()
OpenCodeInCurrent()
Expand Down Expand Up @@ -66,7 +70,18 @@ OpenCmdInCurrent()
; strip to bare address
full_path := GetCurrentDirectory()

IfExist, %LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe
Run, cmd /K cd /D "%full_path%"
}

; Opens the command shell 'cmd' in the directory browsed in Explorer.
; Note: expecting to be run when the active window is Explorer.
;
OpenTerminalInCurrent()
{
; strip to bare address
full_path := GetCurrentDirectory()

IfExist, %LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe
Run, "%LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe" -d "%full_path%"
else
Run, cmd /K cd /D "%full_path%"
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ Download the exe and put into autostart.

| keybind | effect | comments |
|---------------------|-----------------------|-----------------------------------------------------------|
| Windows + C | Open Windows Terminal | If Windows Terminal is not found, this opens a cmd window |
| Windows + C | Open cmd | |
| Ctrl + Windows + C | Open Windows Terminal | If Windows Terminal is not found, this opens a cmd window |
| Windows + Shift + C | Open vscode | |
| Ctrl + Shift + M | Open Sublime Merge | |
| Windows + Shift + R | Open Toolman | a custom tool I use |

0 comments on commit fe91387

Please sign in to comment.