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
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
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.