We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Originally posted by capaj October 11, 2024 Context menu when I click on empty space currently has these two options:
would be nice if it had option to start a terminal session in that folder
Implement a open_terminal function in Plataform with an attached command in command.ts.
open_terminal
Plataform
command.ts
Web plataforms should ignore this, due to the complexity of adding a remote terminal to web being out of scope for this issue.
Extra feature (future): Add a settings entry that allows overriding the default terminal
Implement a open_terminal function in file.rs that checks each OS's default Terminal app:
file.rs
For macOS we can look at iTerm code to check how it reads/sets the default macOS terminal, and fallback to terminal.app if that fails: https://github.com/gnachman/iTerm2/blob/v3.5.5/sources/iTermLaunchServices.m#L212-L246
terminal.app
For Windows we can look at Microsoft Terminal code to check how it reads/sets the default Windows terminal, and fallback to Powershell if that fails or to CMD.exe as last case resort: https://github.com/microsoft/terminal/blob/v1.22.2912.0/src/propslib/DelegationConfig.cpp#L158-L213
For linux there are a couple of ways for configuring the default terminal:
update-alternatives --query x-terminal-emulator
x-scheme-handler/terminal
gnome-terminal konsole xfce4-terminal xterm urxvt lxterminal mate-terminal
The text was updated successfully, but these errors were encountered:
ENG-1945 Add "start terminal" command to right-click context menu
Sorry, something went wrong.
hello @HeavenVolkoff can i work on this
@moudgalya1223 sure, feel free to work on this
No branches or pull requests
Discussed in #2759
Originally posted by capaj October 11, 2024
Context menu when I click on empty space currently has these two options:
would be nice if it had option to start a terminal session in that folder
Implementation
Frontend
Implement a
open_terminal
function inPlataform
with an attached command incommand.ts
.Web plataforms should ignore this, due to the complexity of adding a remote terminal to web being out of scope for this issue.
Extra feature (future): Add a settings entry that allows overriding the default terminal
Backend
Implement a
open_terminal
function infile.rs
that checks each OS's default Terminal app:For macOS we can look at iTerm code to check how it reads/sets the default macOS terminal, and fallback to
terminal.app
if that fails:https://github.com/gnachman/iTerm2/blob/v3.5.5/sources/iTermLaunchServices.m#L212-L246
For Windows we can look at Microsoft Terminal code to check how it reads/sets the default Windows terminal, and fallback to Powershell if that fails or to CMD.exe as last case resort:
https://github.com/microsoft/terminal/blob/v1.22.2912.0/src/propslib/DelegationConfig.cpp#L158-L213
For linux there are a couple of ways for configuring the default terminal:
update-alternatives --query x-terminal-emulator
x-scheme-handler/terminal
mimegnome-terminal konsole xfce4-terminal xterm urxvt lxterminal mate-terminal
The text was updated successfully, but these errors were encountered: