Two Ways To Add Terminal To Your Sublime Text - Darija

Опубликовано: 13 Июнь 2020
на канале: LearnToCode - الدارجة المغربية
2,745
44

Hello every one !!

In this video inchaeAllah, i will show you two simples ways to add terminal to your Sublime text.
By using the first one you can open terminal directly from sublime but in an other window, and with second one you will have the possibility to open it in Sublime like a new window or like a new panel.

The link of the files we used:
https://github.com/James231/Terminals...

PowerShell locations:
https://www.powershelladmin.com/wiki/...

Key Bindings file:

[

Togle Terminus panel (at the bottom of the screen) OpenClosed when Alt+' is pressed
{
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],

caption Command Prompt (new Window),
Tell terminus to open something
command terminus_open,

Tell terminus what to open
args {
Open Command Prompt
cmd CWindowssystem32cmd.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 [CProgram FilesGitbinbash.exe, -i, -l],

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

Repitition of the above adding Alt+b and Alt+c shortcuts
{
keys [alt+3],
command terminus_open,
args {
cmd CWindowsSystem32WindowsPowerShellv1.0powershell.exe,
cwd ${file_path${folder}},
title Command Prompt,
panel_name Terminus
}
},
{
keys [alt+b],
command terminus_open,
args {
cmd [CProgram FilesGitbinbash.exe, -i, -l],
cwd ${file_path${folder}},
title Git Bash,
panel_name Terminus
}
},

]

/***********************************************************************/


Смотрите видео Two Ways To Add Terminal To Your Sublime Text - Darija онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал LearnToCode - الدارجة المغربية 13 Июнь 2020. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 2,745 раз и оно понравилось 44 посетителям.