Open container folder in cmd but as a toolbar button ?
-
Hello,
I would like to have a toolbar button for this action

Is it possible to have that ?
thanks
-
One way would be using the PythonScript plugin.
Create a new script, give it a meaningful name and add something like thisfrom Npp import notepad, MENUCOMMAND notepad.menuCommand(MENUCOMMAND.FILE_OPEN_CMD)Add it, via the
Configuration...menu item to the toolbar section
and restart npp.
-
Alternately, install the Customize Toolbar plugin, enable Plugins > Customize Toolbar > Custom Buttons, then edit
...\plugins\Config\CustomizeToolbar.btnto include something like the following:File,Open Containing Folder,cmd,,onion.bmp,onion.ico,onion.ico File,Open Containing Folder,Explorer,,*R:Ex,*G:Ex,*B:ExThe first line uses a pair of BMP (16x16, 256 color) and ICO files I had readily available to do the open-containing-folder-in-cmd, and the second line does the explorer version: it uses a RED-background
Exif using Standard Icons, a GREEN-backgroundExif using Fluent icons in Light Mode, and a BLUE-backgroundExif using Fluent icons in Dark Mode:


As mentioned here, the extra spaces around the buttons are due to an unfixed bug in the CustomizeToolbar plugin. The workaround is to also define a replacement icon for the Show Symbol default toolbar entry using
View,Show Symbol,Show All Characters,,Icons\allChars.bmp,Icons\allChars_off.ico,Icons\allChars_off_dark.icoThat issue-comment has links to where you can get the BMP and two ICO files for that button.
But using that in addition to the commands I showed earlier will make the button toolbar more compact:
