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

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

OdatNurd - Sublime Text Tutorials

OdatNurd - Sublime Text Tutorials

Күн бұрын

Пікірлер: 14
@Kyt0z
@Kyt0z 2 ай бұрын
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 2 ай бұрын
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
Рет қаралды 975
[QA01] Can you execute multiple Sublime builds in a chain?
8:02
OdatNurd - Sublime Text Tutorials
Рет қаралды 542
Маусымашар-2023 / Гала-концерт / АТУ қоштасу
1:27:35
Jaidarman OFFICIAL / JCI
Рет қаралды 390 М.
#behindthescenes @CrissaJackson
0:11
Happy Kelli
Рет қаралды 27 МЛН
Vampire SUCKS Human Energy 🧛🏻‍♂️🪫 (ft. @StevenHe )
0:34
Alan Chikin Chow
Рет қаралды 138 МЛН
Какой я клей? | CLEX #shorts
0:59
CLEX
Рет қаралды 1,9 МЛН
[BU06] Adding platform specific tools to your builds in Sublime Text
6:19
OdatNurd - Sublime Text Tutorials
Рет қаралды 556
[MG06] Execute multiple commands with Sublime's new chain command
5:27
OdatNurd - Sublime Text Tutorials
Рет қаралды 1,1 М.
[QT05] Speed up your workflow with Sublime snippets!
19:52
OdatNurd - Sublime Text Tutorials
Рет қаралды 1,7 М.
[BU05] Setting up multiple builds easily using build variants
7:18
OdatNurd - Sublime Text Tutorials
Рет қаралды 947
Cmder: A Better Windows Command Line
16:49
Traversy Media
Рет қаралды 228 М.
[PT06] How to quickly synchronize your Sublime config across computers
9:08
OdatNurd - Sublime Text Tutorials
Рет қаралды 3,6 М.
Sublime text setup for Competitive Programming
6:54
Kartik Arora
Рет қаралды 95 М.
[BU02] How to easily create your first Sublime Text build system
9:47
OdatNurd - Sublime Text Tutorials
Рет қаралды 12 М.
Маусымашар-2023 / Гала-концерт / АТУ қоштасу
1:27:35
Jaidarman OFFICIAL / JCI
Рет қаралды 390 М.