"st -e htop"
Mod4 + h
"st -e ncmpcpp"
- Mod4 + n
+ Mod4 + m
"st -e ranger"
Mod4 + r
Mod4 + i
"cd ~/doc/drafts && drafts_prepend && gvim drafts.md"
Mod4 + d
+"cd ~/doc/notes && notes_prepend && gvim notes.md"
+ Mod4 + n
"cd ~/doc/bookmarks && gvim bookmarks.md"
Mod4 + b
"cd ~/doc/quotations && gvim quotations.md"
--- /dev/null
+#! /bin/bash
+
+set -euo pipefail
+
+FILE="$HOME/doc/notes/notes.md"
+
+bar() {
+ seq -s - 80 | sed -E 's/[0-9]+//g'
+}
+
+header() {
+ printf 'untitled\n'
+ bar
+ date +'started: %Y-%m-%d %H:%M:%S %z'
+ printf '\n\n'
+}
+
+(header && cat "$FILE") | sponge "$FILE" # sponge is in moreutils package
alias todo='cd ~/doc/TODO && vim TODO.md'
alias work_todo="cd $DIR_WORK/docs/TODO && vim -c NERDTreeFind TODO.txt"
alias drafts='cd ~/doc/drafts && drafts_prepend && vim drafts.md'
+alias notes='cd ~/doc/notes && notes_prepend && vim notes.md'
alias bookmarks='cd ~/doc/bookmarks && vim bookmarks.md'
alias ideas='cd ~/doc/ideas && vim ideas.md'
alias quotes='cd ~/doc/quotations && vim quotations.md'