[BU03] Three easy ways to get Sublime to automatically select your custom build

  Рет қаралды 2,304

OdatNurd - Sublime Text Tutorials

OdatNurd - Sublime Text Tutorials

Күн бұрын

Пікірлер: 14
@Kyt0z
@Kyt0z Ай бұрын
A quick question if you don't mind. I want a custom build system for a specific file. (It is a text file and the build system runs a Python script to parse some information from it.) Having the filename in file_patterns works, the caveat is that it matches any file with the filename. I tried putting an absolute path in file_patterns but it didn't seem to work. What's a good approach for this kind of use case? Thank you for the excellent tutorials!
@OdatNurd
@OdatNurd Ай бұрын
One way to pull this off would be to have a custom binding on the build key that forces it to use a specific build regardless of the currently selected build, in combination with a plugin that allows the key binding to only be active when a specific filename is the currently active file. An example of that can be found in this gist: gist.github.com/OdatNurd/009565250165d2244705c311d1c9551d This requires that the custom file be focused at the time you press the key. If you just want the build to trigger as long as SOME file in the folder matches even if it's not the current one, the same thing would work but the plugin would need to scan the folder the current file is in for a file that matches instead, which is a slightly different thing.
@dwayne6402
@dwayne6402 3 жыл бұрын
is there a resource for someone new to Sublime Text to go from beginner to intermediate to advanced user. I am an intermediate user but I don't have a good grasp of all the basics and I keep struggling with using Sublime Text. I am a front end programmer (beginner, learner) and I use Sublime Text 4 for those purposes ie HTML, CSS, Javascript, Typescript, React, Git etc
@OdatNurd
@OdatNurd 3 жыл бұрын
The first thing that comes to mind is the Community documentation (which used to be called the Unofficial Documentation), which documents more than the official documentation does, though that is currently starting to catch up somewhat. You can find it at docs.sublimetext.io/
@peterSobieraj
@peterSobieraj 2 жыл бұрын
keyfiles doesn't work for me. I added "cmd" and "keyfiles". I opened test.txt that is in same folder as Makefile, but when I try to build sublime said "No build system". My build file looks like this: {"cmd": ["make"],"keyfiles":["Makefile","makefile"]}
@OdatNurd
@OdatNurd 2 жыл бұрын
Have you verified that the JSON you're using is valid (i.e. see if it passes JSON Lint) and that it's in a file with the sublime-build extension?
@peterSobieraj
@peterSobieraj 2 жыл бұрын
​@@OdatNurd Yes. I just verified using some online tool and it's correct. If I compile while makefile is selected it works (but I think that's build in building system for makefiles). If I specyficaly select my build system, then it works. But if it's automatic and I have test.txt selected then I got "No Build System".
@OdatNurd
@OdatNurd 2 жыл бұрын
@@peterSobieraj Do you see any errors in the Sublime console at all?
@peterSobieraj
@peterSobieraj 2 жыл бұрын
@@OdatNurd No. Nothing. Also my system works if I manualy select it.
@ivanlegranbizarro8102
@ivanlegranbizarro8102 3 жыл бұрын
Dear OdatNurd, Terminus was removed from Package Control ... Do you know anything about it? I can't reinstall it: '(
@OdatNurd
@OdatNurd 3 жыл бұрын
Yesterday GitHub removed access for some methods of Access control in favor of some new ones, and package control is having a bit of a problem finding packages as a result. It's being worked on though
@ivanlegranbizarro8102
@ivanlegranbizarro8102 3 жыл бұрын
@@OdatNurd Thank you very much for your answer!
@КостяЕвколиди
@КостяЕвколиди 2 жыл бұрын
Can you please help me? I am coding in c++ and i want to make 2 different keybinding, one for compile + run and second one just for run (if its already compiled and doesn't need to be compiled again), but i haven't found how to do that. The only thing i found is that i can make 2 different buildings and manually select what i want to use (for example with hotkey ctrl + shift + B), but it takes a lot of time to always select build option that i need UPD: I'm sorry, i spent some time before writting this comment, and excatly when i wrote it i found how to do this. Anyway thank you!
@OdatNurd
@OdatNurd 2 жыл бұрын
Awesome, glad you got it working the way you wanted to!
[BU04] Making builds reusable with build file variables
9:00
OdatNurd - Sublime Text Tutorials
Рет қаралды 966
[QT05] Speed up your workflow with Sublime snippets!
19:52
OdatNurd - Sublime Text Tutorials
Рет қаралды 1,6 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Tmux has forever changed the way I write code.
13:30
Dreams of Code
Рет қаралды 1 МЛН
[BU05] Setting up multiple builds easily using build variants
7:18
OdatNurd - Sublime Text Tutorials
Рет қаралды 935
Replace Is Number Saves 440GB A WEEK
9:54
ThePrimeagenClips
Рет қаралды 381 М.
Programming Is NOT Enough | Add these 7 skills…
13:19
Travis Media
Рет қаралды 423 М.
[BU06] Adding platform specific tools to your builds in Sublime Text
6:19
OdatNurd - Sublime Text Tutorials
Рет қаралды 554
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 95 М.
Embedded Rust setup explained
23:03
The Rusty Bits
Рет қаралды 96 М.
[QA01] Can you execute multiple Sublime builds in a chain?
8:02
OdatNurd - Sublime Text Tutorials
Рет қаралды 541
Turn VIM into a full featured IDE with only one command
11:55
Dreams of Code
Рет қаралды 719 М.
пранк 🤣😂😂
0:54
Numdexx1
Рет қаралды 1,5 МЛН
Yes or No Challenge 🍕 #shorts What is your favorite pizza?
0:58
Threewiki Family
Рет қаралды 13 МЛН
*сбрасывания челлендж* У КОГО ВЫЖИВЕТ ЖЕЛЕ ?? ♻️✅
1:00
*сбрасывания челлендж* У КОГО ВЫЖИВЕТ ЖЕЛЕ ?? ♻️✅
1:00
Sorvete de Danoninho
0:57
Spider Slack
Рет қаралды 33 МЛН
Yes or No Challenge 🍕 #shorts What is your favorite pizza?
0:58
Threewiki Family
Рет қаралды 13 МЛН