this post was submitted on 22 Jul 2024
2 points (100.0% liked)

PKM Personal Knowledge Management

403 readers
1 users here now

Konzepte, Methoden und Tools des pkm; deutschsprachig

founded 1 year ago
MODERATORS
 

Sometimes I like to use nvim for PKM stuff (sometimes in parallel with Logseq because I think that the vim plugin does what it can, but there's a lot of features that I just do quicker on nvim. So, I created this alias to open in the terminal the latest .md file in my PKM folder (both pages and journals) pkmu.

I also have another ones like pkm, that opens in nvim today's journal. and pkmj and pkmp open the directory for PKM journals and pages, if I want to do anything there (maybe a fzf, rename, bat, rm…).

alias pkm='nvim "$HOME/Documentos/PKM/logseq/journals/$(date +%Y_%m_%d).md"'
alias pkmj='cd $HOME/Documentos/PKM/logseq/journals/'
alias pkmp='cd $HOME/Documentos/PKM/logseq/pages/'
alias pkmu='nvim "$(find $HOME/Documentos/PKM/logseq/ -type f -name '\''*.md'\'' -printf '\''%T@ %p\n'\'' | sort -n | tail -1 | cut -d'\'' '\'' -f2-)"'

I just wanted to share this with you, just in case it helps, or gives you any cool idea.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 3 months ago

That's great!! Emacs seems very complicated for me at the moment, I feel the Org Mode really appealing, but I also think Emacs requires too many packages to do what I can do with nvim (which I'm still discovering), but deep down I know it's a rabbit hole I'll go into when I can have the time to discover everything that offers.