0

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?

4
  • I run NP++ on Wine and Open Containing Folder has a submenu of Explorer or cmd, both of which work, as they do when running in Windows. It's not clear what you would like do differently.
    – AFH
    Commented Jun 11, 2018 at 12:49
  • @AFH what I want is to use my own terminal, and not wine's terminal Commented Jun 11, 2018 at 12:53
  • You could try renaming 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 in wine. I don't know if the cmd start-up file works in wine, but you may be able to use this to check if cmd has been launched from notepad++ and launch your shell if so.
    – AFH
    Commented Jun 11, 2018 at 13:08
  • Since I've found Notepad++ just a bit flaky under wine, I've been using the native Kate. See if it meets your needs (though I do prefer Notepad++ for all its plugins). Commented Jun 11, 2018 at 16:47

1 Answer 1

0

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:

  1. Close Notepad++;
  2. Open this file in different editor:
    • C:\Users\%USERNAME%\AppData\Roaming\Notepad++\shortcuts.xml;
  3. 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 &quot;$(CURRENT_DIRECTORY)&quot;</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

Also this answers are relevant: 1, 2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .