anote

Writing notes is a big part of my workflow, and tmux has created an opportunity for shortcuts in note taking. Specifically, I’ve created an anote command (~/bin/anote). This command takes input and outputs to a special buffer in tmux.

$ rg --vimgrep Needle | anote

This will add the results of that search to vim in a tmux buffer. In face, this was added by anote:

$ rg --vimgrep -- - cli | anote
_posts/2020-10-06-dotnet-code-generator.md:7:3:  - cli
_posts/2021-08-21-httpie-curl-replacement.md:5:3:  - cli
_posts/2020-10-06-dotnet-migrations.md:7:3:  - cli
_posts/2021-05-02-reading-from-the-console-with-c-.md:6:3:  - cli
_posts/2019-11-26-s3-to-local.md:6:3:  - cli
_posts/2021-07-22-bash-powered-blog.md:8:3:  - cli
_posts/2021-08-21-bash-tricks-history.md:5:3:  - cli

How cool is that?