note-taker.sh: update comments
This commit is contained in:
parent
7e53e2de9d
commit
5c64682e30
1 changed files with 6 additions and 5 deletions
|
@ -1,8 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# with Sway on login, a Kitty session is started which runs *this* script
|
# scripted note organizer/taker
|
||||||
# provides a pane with an editor on notes for this week (and last)
|
|
||||||
#
|
#
|
||||||
# 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
|
# # ~/config/kitty/sessions/triplesplit.conf
|
||||||
# layout tall
|
# layout tall
|
||||||
# launch --location=hsplit --cwd=current bash
|
# 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
|
# Construct the two note files to open in tabs as one array
|
||||||
NOTE_PATHS=("$NOTE_DIR/$CURRENT_NOTE" "$NOTE_DIR/$LAST_WEEK_NAME")
|
NOTE_PATHS=("$NOTE_DIR/$CURRENT_NOTE" "$NOTE_DIR/$LAST_WEEK_NAME")
|
||||||
|
|
||||||
# Use EDITOR variable or fallback to vim as default.
|
# Use EDITOR variable or fallback to vim as default. If contains "vim" (like {g,n,}vim and so on), add tab arguments.
|
||||||
# If EDITOR contains "vim" (like nvim, vim, etc.), add tab arguments.
|
|
||||||
EDITOR="${EDITOR:-vim}"
|
EDITOR="${EDITOR:-vim}"
|
||||||
if [[ $EDITOR == *vim* ]]; then
|
if [[ $EDITOR == *vim* ]]; then
|
||||||
# Run the vim-like editor with tabs
|
# Run the vim-like editor with tabs
|
||||||
|
|
Loading…
Reference in a new issue