7/5/2023 0 Comments Textmate python 3![]() But I’m assuming Apache deals with Apache config files, Blogging allows you to easily blog, Math includes stuff to make math easier to perform on the spot (a built in calculator?), etc. For example, if I select the text “1 + 1” and choose “Evaluate Selection” in the Math bundle, I get “1 + 1 = 2”. To choose “Evaluate Selection”, I can click on the action button at the bottom of the editor window, click the “Bundles” menu, “Math”, then “Evaluate Selection”, or press ctrl-shift-C, which will open a popup of several math commands, and I can choose the one I want. The keyboard shortcut is called a key equivalent. ![]() Any key can be a key equivalent, even “return”. And using return for a key equivalent actually makes sense when used with scopes, which I’ll show shortly. The final way to activate a bundle item is with a tab trigger (hitting the tab key after typing some letters). If you can’t remember the key equivalent, tab trigger, or there just isn’t one, you don’t have to go to the menus. Just use cmd-ctrl-T to open a search box and type in the command you want.Įach bundle represents a collection of language grammars, commands, macros, snippets, preferences, and file templates. ![]() “Evaluate Selection” is a command, and with the Bundle Editor, I can see exactly what it does, this:Ĭommands The “Evaluate Selection” I showed above was a command found in the Math bundle. That is exactly what a command is, a script. The scripts can be in any language you want, but default to shell. ![]() It has some really cool features besides just running scripts. You have these choices for input to the script: the whole document, nothing, or selected text. If you choose selected text, if you have no selection, you can instead use character, word, line, paragraph, scope, or document. Then it has various output options: discard, replace selected text, replace document, insert as text, insert as snippet, show as html, show as tool tip, and finally create new document. ![]()
0 Comments
Leave a Reply. |