Use the terminal in Sublime text 3 and 4 with terminus

Опубликовано: 28 Сентябрь 2024
на канале: John Starfire
78,851
755

Use the terminal in Sublime text 3 with terminus (I've upgraded to Sublime text 4 and it just worked like before, without having to do anything) https://pythonprogramming.altervista....
How to use different versions of python in sublime text    • Python on Sublime Repl for Sublime te...  
To keybind put this into the list [ ] of the file that appears when you go to preferences / keybinding
[
{
// The key press to look out for
"keys": ["alt+`"],

// Toggle the panel
"command": "toggle_terminus_panel"
},

// Open cmd.exe Command Prompt when Alt+1 is pressed
{
// The key press to look out for
"keys": ["alt+1"],

// Tell terminus to open something
"command": "terminus_open",

// Tell terminus what to open
"args" : {
// Open Command Prompt
"cmd": "cmd.exe",

// Provide Command Prompt with Current Working Directory
"cwd": "${file_path:${folder}}",

// Tell terminus to put it in the panel at the bottom of the screen
"panel_name": "Terminus"
}
},

// Open git bash when Alt+2 is pressed
{
"keys": ["alt+2"],
"command": "terminus_open",
"args" : {
// Tell terminus to use Git Bash
// Replace the path below with your path to Git Bash
"cmd": ["C:\\Program Files\\Git\\bin\\bash.exe", "-i", "-l"],

"cwd": "${file_path:${folder}}",
"panel_name": "Terminus"
}
},

// Repitition of the above adding Alt+b and Alt+b shortcuts
{
"keys": ["alt+c"],
"command": "terminus_open",
"args" : {
"cmd": "cmd.exe",
"cwd": "${file_path:${folder}}",
"title": "Command Prompt",
"panel_name": "Terminus"
}
},
{
"keys": ["alt+b"],
"command": "terminus_open",
"args" : {
"cmd": ["C:\\Program Files\\Git\\bin\\bash.exe", "-i", "-l"],
"cwd": "${file_path:${folder}}",
"title": "Git Bash",
"panel_name": "Terminus"
}
},
]

You can also try this to open the terminal into a tab

[
{
"keys": ["ctrl+alt+t"], "command": "terminus_open", "args": {
"cmd": "cmd",
"cwd": "${file_path:${folder}}"
}
}


]

Focus on a tab of Sublime text
https://pythonprogramming.altervista....

Use Terminus on the mac os
https://pythonprogramming.altervista....

Free games made with pygame
https://pythonprogramming.altervista....