I'd like to be able to open a folder in a different terminal that the one set by default by wine. Is it possible to modify this option?
1 Answer
I didn't find how to add custom terminal to the context menus (i.e. directory tree, Open Containg Folder or Open into), but you can add it to the Run menu by following this steps:
- Close Notepad++;
- Open this file in different editor:
C:\Users\%USERNAME%\AppData\Roaming\Notepad++\shortcuts.xml
;
- Under the
<UserDefinedCommands>
add your own command, for example:<Command name="Open current folder in Terminal" Ctrl="yes" Alt="yes" Shift="yes" Key="79">wt.exe -d "$(CURRENT_DIRECTORY)"</Command>
Above command will open directory of currently active file in Windows Terminal (if it's installed), but you can modify it by your needs. Behaviour is undefined if you will use it when you don't have any opened text file in Notepad++. You can change shortcut under Run -> Modify Shortcut... -> Run commands
.
This is how it will look like: Custom command in Run menu
cmd.exe
and creating it as a link to your terminal, but I have no idea what will happen if your terminal doesn't run inwine
. I don't know if thecmd
start-up file works inwine
, but you may be able to use this to check ifcmd
has been launched fromnotepad++
and launch your shell if so.