@phosphor You may be able to use Joplin for this purpose: https://openbase.com/js/joplin-cli/documentation
Also check out obsidian: https://obsidian.md/
For pure terminal (without the GUI viewer) you could probably DIY. I know a lot of Neovim users that roll their own stuff. The Rust community is building neat tools in this space too: https://github.com/samwho/hmm