note-taker.sh: update comments

This commit is contained in:
Josh Lay 2024-06-20 07:36:27 -05:00
parent 7e53e2de9d
commit 5c64682e30
No known key found for this signature in database
GPG key ID: 47AA304B2243B579

View file

@ -1,8 +1,10 @@
#!/bin/bash
# with Sway on login, a Kitty session is started which runs *this* script
# provides a pane with an editor on notes for this week (and last)
# scripted note organizer/taker
#
# my kitty session config:
# with Sway/on login, a Kitty session is started which runs *this* script
# provides a pane with an editor on notes for this week (and last) with tabs
#
# Kitty session config:
# # ~/config/kitty/sessions/triplesplit.conf
# layout tall
# launch --location=hsplit --cwd=current bash
@ -31,8 +33,7 @@ LAST_WEEK_NAME=$(date -d '7 days ago' +%Y-week%V)
# Construct the two note files to open in tabs as one array
NOTE_PATHS=("$NOTE_DIR/$CURRENT_NOTE" "$NOTE_DIR/$LAST_WEEK_NAME")
# Use EDITOR variable or fallback to vim as default.
# If EDITOR contains "vim" (like nvim, vim, etc.), add tab arguments.
# Use EDITOR variable or fallback to vim as default. If contains "vim" (like {g,n,}vim and so on), add tab arguments.
EDITOR="${EDITOR:-vim}"
if [[ $EDITOR == *vim* ]]; then
# Run the vim-like editor with tabs