Skip to content

Open the terminal in the folder that has focus using hotkey [Windows]

Notifications You must be signed in to change notification settings

hirios/OpenTerminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenTerminal

Open the terminal in the directory that has focus using the hotkey [Only Windows]

bandicam 2022-01-16 19-32-25-115

Config

You can customize commands and hotkey in main.py:

COMMAND_WT = f'{PATH_WINDOWS_TERMINAL} -d'
COMMAND_CMD = 'start cmd /K cd'
HOTKEY = 'ctrl+alt+t'

Using CMD

if explorer_path:
    os.popen(f'{COMMAND_CMD} "{explorer_path}"')
else:
    os.popen(PATH_CMD)

Using Windows Terminal

if explorer_path:
    os.popen(f'{COMMAND_WT} "{explorer_path}"')
else:
    os.popen(PATH_WT)

CMD is default terminal

Use

python main.py

To open the terminal just press ctrl+alt+t like in linux distributions