Terminus: [Feature Request] Open Terminus here in Windows 10 Context Menu

Created on 7 Jun 2018  路  2Comments  路  Source: Eugeny/terminus

Hello,
It would be great if in Windows 10 Context menu there is an option Open Terminus here so that commands run would be running directly from that directory

Windows Enhancement

Most helpful comment

This is a script I wrote for myself. You can use it to add any other right-click options to folders in explorer by editing the variables at the top. It modifies HKCU to ensure it only affects the current user.

Edit: I should have mentioned that this requires you to hold shift while right-clicking. That's because of the empty "Extended" value that I added. Just remove each line in the script that says "Extended" if you don't want to have to hold shift while right-clicking.

@echo off
set ICON=%LocalAppData%\terminus\Terminus.exe
set LABEL=Open terminal here
set COMMAND=%LocalAppData%\terminus\Terminus.exe \"%%V\"
set SLUG=Terminal

reg delete "HKCU\Software\Classes\Directory\Background\shell\%SLUG%" /f
reg delete "HKCU\Software\Classes\Directory\shell\%SLUG%" /f
reg delete "HKCU\Software\Classes\Drive\shell\%SLUG%" /f
reg delete "HKCU\Software\Classes\LibraryFolder\Background\shell\%SLUG%" /f

reg add "HKCU\Software\Classes\Directory\Background\shell\%SLUG%" /f /ve /t REG_SZ /d "%LABEL%"
reg add "HKCU\Software\Classes\Directory\Background\shell\%SLUG%" /f /v "Extended" 
reg add "HKCU\Software\Classes\Directory\Background\shell\%SLUG%" /f /v "Icon" /t REG_SZ /d "%ICON%"
reg add "HKCU\Software\Classes\Directory\Background\shell\%SLUG%\command" /f /ve /t REG_SZ /d "%COMMAND%"
reg add "HKCU\Software\Classes\Directory\shell\%SLUG%" /f /ve /t REG_SZ /d "%LABEL%"
reg add "HKCU\Software\Classes\Directory\shell\%SLUG%" /f /v "Extended" 
reg add "HKCU\Software\Classes\Directory\shell\%SLUG%" /f /v "Icon" /t REG_SZ /d "%ICON%"
reg add "HKCU\Software\Classes\Directory\shell\%SLUG%\command" /f /ve /t REG_SZ /d "%COMMAND%"
reg add "HKCU\Software\Classes\Drive\shell\%SLUG%" /f /ve /t REG_SZ /d "%LABEL%"
reg add "HKCU\Software\Classes\Drive\shell\%SLUG%" /f /v "Extended" 
reg add "HKCU\Software\Classes\Drive\shell\%SLUG%" /f /v "Icon" /t REG_SZ /d "%ICON%"
reg add "HKCU\Software\Classes\Drive\shell\%SLUG%\command" /f /ve /t REG_SZ /d "%COMMAND%"
reg add "HKCU\Software\Classes\LibraryFolder\Background\shell\%SLUG%" /f /ve /t REG_SZ /d "%LABEL%"
reg add "HKCU\Software\Classes\LibraryFolder\Background\shell\%SLUG%" /f /v "Extended" 
reg add "HKCU\Software\Classes\LibraryFolder\Background\shell\%SLUG%" /f /v "Icon" /t REG_SZ /d "%ICON%"
reg add "HKCU\Software\Classes\LibraryFolder\Background\shell\%SLUG%\command" /f /ve /t REG_SZ /d "%COMMAND%"

All 2 comments

This is a script I wrote for myself. You can use it to add any other right-click options to folders in explorer by editing the variables at the top. It modifies HKCU to ensure it only affects the current user.

Edit: I should have mentioned that this requires you to hold shift while right-clicking. That's because of the empty "Extended" value that I added. Just remove each line in the script that says "Extended" if you don't want to have to hold shift while right-clicking.

@echo off
set ICON=%LocalAppData%\terminus\Terminus.exe
set LABEL=Open terminal here
set COMMAND=%LocalAppData%\terminus\Terminus.exe \"%%V\"
set SLUG=Terminal

reg delete "HKCU\Software\Classes\Directory\Background\shell\%SLUG%" /f
reg delete "HKCU\Software\Classes\Directory\shell\%SLUG%" /f
reg delete "HKCU\Software\Classes\Drive\shell\%SLUG%" /f
reg delete "HKCU\Software\Classes\LibraryFolder\Background\shell\%SLUG%" /f

reg add "HKCU\Software\Classes\Directory\Background\shell\%SLUG%" /f /ve /t REG_SZ /d "%LABEL%"
reg add "HKCU\Software\Classes\Directory\Background\shell\%SLUG%" /f /v "Extended" 
reg add "HKCU\Software\Classes\Directory\Background\shell\%SLUG%" /f /v "Icon" /t REG_SZ /d "%ICON%"
reg add "HKCU\Software\Classes\Directory\Background\shell\%SLUG%\command" /f /ve /t REG_SZ /d "%COMMAND%"
reg add "HKCU\Software\Classes\Directory\shell\%SLUG%" /f /ve /t REG_SZ /d "%LABEL%"
reg add "HKCU\Software\Classes\Directory\shell\%SLUG%" /f /v "Extended" 
reg add "HKCU\Software\Classes\Directory\shell\%SLUG%" /f /v "Icon" /t REG_SZ /d "%ICON%"
reg add "HKCU\Software\Classes\Directory\shell\%SLUG%\command" /f /ve /t REG_SZ /d "%COMMAND%"
reg add "HKCU\Software\Classes\Drive\shell\%SLUG%" /f /ve /t REG_SZ /d "%LABEL%"
reg add "HKCU\Software\Classes\Drive\shell\%SLUG%" /f /v "Extended" 
reg add "HKCU\Software\Classes\Drive\shell\%SLUG%" /f /v "Icon" /t REG_SZ /d "%ICON%"
reg add "HKCU\Software\Classes\Drive\shell\%SLUG%\command" /f /ve /t REG_SZ /d "%COMMAND%"
reg add "HKCU\Software\Classes\LibraryFolder\Background\shell\%SLUG%" /f /ve /t REG_SZ /d "%LABEL%"
reg add "HKCU\Software\Classes\LibraryFolder\Background\shell\%SLUG%" /f /v "Extended" 
reg add "HKCU\Software\Classes\LibraryFolder\Background\shell\%SLUG%" /f /v "Icon" /t REG_SZ /d "%ICON%"
reg add "HKCU\Software\Classes\LibraryFolder\Background\shell\%SLUG%\command" /f /ve /t REG_SZ /d "%COMMAND%"

That's great, thank you for the effort even I actually wanted the extended way
I wanted it to be included by default in terminus

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jrock2004 picture jrock2004  路  3Comments

rodg picture rodg  路  4Comments

danfloyd111 picture danfloyd111  路  4Comments

alaminmishu picture alaminmishu  路  4Comments

mjklemm picture mjklemm  路  3Comments