[MG06] Execute multiple commands with Sublime's new chain command

  Рет қаралды 1,091

OdatNurd - Sublime Text Tutorials

OdatNurd - Sublime Text Tutorials

Күн бұрын

Пікірлер: 15
@oneany367
@oneany367 3 жыл бұрын
powerful feature! It will be nice if there are a top 10 must have configuration made by chain command, different language different top 10. Maybe we should have a survey at somewhere
@OdatNurd
@OdatNurd 3 жыл бұрын
That sounds like a great idea!
@ivanlegranbizarro8102
@ivanlegranbizarro8102 3 жыл бұрын
Wow, it suits me like a glove. Lately I was getting frustrated that the "Control + [" behavior is limited to exiting Insert Mode with Vintage mode, rather than fulfilling the full role of the Escape key. After watching this video I will try to assign to "Control + [" all the commands of the Escape key, as happens in Vim.
@OdatNurd
@OdatNurd 3 жыл бұрын
Awesome! Let me know if you need any assistance with that. :)
@AndreyMakR3
@AndreyMakR3 3 жыл бұрын
Interesting and useful … as usual ;)
@OdatNurd
@OdatNurd 3 жыл бұрын
Thanks! 😃
@DiegoAlvarez-bc6km
@DiegoAlvarez-bc6km 2 жыл бұрын
Hi! Thanks for your tutorials I am trying to set up a chain command. The first command is to compile a java file with the Javatar plugin. The second to run the compiled file with the same plugin. (Compile, then execute) However the second command is executed without the first one being finished, so I am not achieving what I want. Do you have any idea? Is there any way to wait for the first one to finish?
@OdatNurd
@OdatNurd 2 жыл бұрын
Build commands take arbitrary time; there's no generic way to execute a second command after a build finishes because there's no way to know what completion or success generically means. The general way to accomplish something like this is with a build system that carries out both the build and the run once the build is complete. An example of that is the "C Single File.sublime-build" file. It's possible to create such a build for Java generically; I don't know if there's a way to do that with Javatar though.
@DiegoAlvarez-bc6km
@DiegoAlvarez-bc6km 2 жыл бұрын
@@OdatNurd Thanks for your detailed answer and explanations
@mehdinouira3540
@mehdinouira3540 2 жыл бұрын
can you please explain to me why i can't run scanf in Sublime?????
@OdatNurd
@OdatNurd 2 жыл бұрын
Sublime's build systems are designed for output only; as the name suggests they're primarily meant to execute the tools that build your software, not to run an interactive program. Sublime only connects the output of your program to the output panel, but not the input. So, if you try to run an interactive program you'll hang it because it's waiting for you to give it input, but you can't. The easiest solution is to run your code outside of Sublime in a terminal. The second easiest method is to install the Terminus package and use it to run your builds. Instructions on how to convert can be found in this video: kzbin.info/www/bejne/m6Wse4CMftuJnck
@mehdinouira3540
@mehdinouira3540 2 жыл бұрын
@@OdatNurd thank you very much for the answer dear friend .
@mehdinouira3540
@mehdinouira3540 2 жыл бұрын
i hope someone build something that can turn sublime into interactive program.
@circulodeestudiosingenium9547
@circulodeestudiosingenium9547 2 жыл бұрын
Good Tutorial, I have a problem with the sequence { "keys": ["f5"], "command": "chain","args": { "commands": [ ["toggle_terminus_panel"], ["insert",{"characters": "python prueba.py "}] ] } }, first "insert" after "toggle_terminus_panel". Help me. Thanks for all videos
@OdatNurd
@OdatNurd 2 жыл бұрын
I'm not sure offhand if Terminus responds to the insert command in a way that you would expect. The first thing that I'd try is replacing the second command with ["terminus_send_string", {"string": "python prueba.py "}] and see if that works better. Failing that, it might make a difference the very first time you trigger this if the terminal doesn't already exist in the panel.
[QA01] Can you execute multiple Sublime builds in a chain?
8:02
OdatNurd - Sublime Text Tutorials
Рет қаралды 529
[PT06] How to quickly synchronize your Sublime config across computers
9:08
OdatNurd - Sublime Text Tutorials
Рет қаралды 3,5 М.
哈哈大家为了进去也是想尽办法!#火影忍者 #佐助 #家庭
00:33
火影忍者一家
Рет қаралды 131 МЛН
Ouch.. 🤕⚽️
00:25
Celine Dept
Рет қаралды 24 МЛН
[QA03] How the heck do you customize colors in Sublime Text?
13:34
OdatNurd - Sublime Text Tutorials
Рет қаралды 4,9 М.
[QT24] The FAST and EASY way to add command palette entries in Sublime Text
7:38
OdatNurd - Sublime Text Tutorials
Рет қаралды 1,2 М.
[BU03] Three easy ways to get Sublime to automatically select your custom build
9:21
OdatNurd - Sublime Text Tutorials
Рет қаралды 2,2 М.
[BU06] Adding platform specific tools to your builds in Sublime Text
6:19
OdatNurd - Sublime Text Tutorials
Рет қаралды 528
My RGB is better than yours again - Govee Gaming Sync Box 2.0
6:46
[QA02] Is there a way to get command help from within Sublime?
5:05
OdatNurd - Sublime Text Tutorials
Рет қаралды 425
[QT23] Quickly customize your Terminus terminals with any settings you like
4:24
OdatNurd - Sublime Text Tutorials
Рет қаралды 2,7 М.
[BU05] Setting up multiple builds easily using build variants
7:18
OdatNurd - Sublime Text Tutorials
Рет қаралды 874
哈哈大家为了进去也是想尽办法!#火影忍者 #佐助 #家庭
00:33
火影忍者一家
Рет қаралды 131 МЛН