3 ms·
Any terminal-based text editors with flexible snippet support?
I use Geany for text editing, and have it heavily customized with lots of snippets that run bash scripts and other binaries I've created, placing the output at my cursor (and placing the cursor wherever I indicate within the snippet settings). For example, I can type "st" and hit tab to see stock tickers I follow, there are various dice rollers, a schedule outline generator I wrote in Pascal, etc.
Are there any terminal text editors that can do this kind of thing? Hoping the text editor can be relatively simple to use, and am also looking to spend less text-editor-scripting-API time and more time on tasks like "update this snippets config file with e.g. 'command:stock-tickers.sh'" if possible.
Markdown syntax highlighting and multi-line editing would be a bonus. Thanks for any recommendations.
- ttt0 6y agovim :r!stock-tickers.sh
- themodelplumber 6y agoThat's cool, thanks. Do you know if Vim has a way to shorten a command like this? For example :stk or something?
- ttt0 6y agoSure, in ~/.vimrc: command! Stk r!stock-tickers.sh Custom commands have to start with an uppercase letter, so it will be :Stk
- themodelplumber 6y agoVery nice. I appreciate the tip!