Pt has better cross platform support than ag but doesn't offer exactly the same command structure: This command was triggered when a user followed a tag link in the format of #ALPHANUM_STRING: #!/bin/bashĪg -lS "#$1" "$dir" | sed "s:$dir/::g" | sort | cat > "$tf" This command was triggered when a user followed the special #all tag-link which searches for all tags in all notes in the folder: #!/bin/bashĪg -markdown -nocolor -nofilename -o "(?> "$tf" (the reason I had to make a tempfile and display that file in Atom is because Atom didn't support "scratch" buffers like Sublime does) - let me know if the scripts have any errors, I had to pull them out of a plumbing file and I might have missed something in translation. Might give you a starting point to work from. ⌨️ #vim quick tutorials and tips for vim newbies.Here's a bash script/command I wrote to generate tag lists from a folder of notes and populate an Atom editor view with the results. Even the free stuff will be fairly enough for you to learn many nice features.Īfter these months using VIM I’ve got so excited more and more, and then I decided to start writing VIM quick tips and tutorials to help VIM newbies. There is a very nice book too that promise you’ll master vim “ …from WTF to OMG in no time…”, it’s called Mastering Vim Quickly, and they offer some chapters and a newsletter for free. Take 30/60 minutes to follow along the exercices and I’m pretty sure you’ll finish it very excited to learn more! If you feel like giving it a shot, there are many free online resources helping you to learn VIM but the first step to try it out, is to open your console and type the command vimtutor. vimrc to set up every month after you discovering another cool feature, if there was no scripts to learn and build your own features or plugins… Well it’d be so boring if there was nothing to learn, if there was no statusline for you to give the personal touch, no. So why not investing a little bit of time to master a tool that will optimize your workflow A LOT and increase your productivity? We’re all here learning, we’re all affictionated in optimizing stuff, create stuff to improve other people’s lifes. The reason that intimidates people to learn VIM is just the best part that I’m enjoying on the way. Well… there’s nothing to say about VIM performance!! It’s waaaay faster than those editors mentioned before! And you can bet on it… turn on a bunch of plugins and open a bunch of large codebases simultaneously, and you’ll see no lazyness at all! Try to work on a large codebase, or multiple files opened, linters enabled… Sometimes it can takes like 15 seconds only to open a file (on a pretty decent and new machine/hardware). They’re pretty much the same too when you talk about performance!Īnd sometimes their performances can irritates you! I’ve used Sublime Text for a while, then Atom most of the time, and tried VS Code for some weeks (after seeing all the hype everywhere about it).Īll code editors mentioned before are very good, and almost the same where it comes to features and usability…but… (… Well I know it’s on old topic but… I’ve been here before checking what people said and now I’m back to give my own personal story.…)
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |