From: Siraaj Khandkar Date: Sat, 30 Jul 2022 16:52:31 +0000 (-0400) Subject: Make today the daily todo and todo the current X-Git-Url: https://git.xandkar.net/?p=khome.git;a=commitdiff_plain;h=3251b58920796663e71e4eda312d208127e090d9 Make today the daily todo and todo the current --- diff --git a/home/.xbindkeysrc b/home/.xbindkeysrc index b3e1808..65dbf0a 100644 --- a/home/.xbindkeysrc +++ b/home/.xbindkeysrc @@ -141,7 +141,7 @@ ### Edit specific files -"todo.launch.sh" +"today.launch.sh" Mod4 + t "cd ~/doc/ideas && gvim ideas.md" diff --git a/home/bin/today.launch.sh b/home/bin/today.launch.sh new file mode 100755 index 0000000..cc83399 --- /dev/null +++ b/home/bin/today.launch.sh @@ -0,0 +1,6 @@ +#! /bin/bash + +. ~/lib/login_variables.sh # To get $DIR_TODO +. ~/lib/login_functions.sh # To get today + +EDITOR=gvim today diff --git a/home/lib/login_functions.sh b/home/lib/login_functions.sh index 97de4b9..6f6f9e0 100644 --- a/home/lib/login_functions.sh +++ b/home/lib/login_functions.sh @@ -445,7 +445,7 @@ backlog EOF } -todo() { +today() { local date date="$(date +%F)" local -r dir="$DIR_TODO/daily" @@ -459,6 +459,10 @@ todo() { cd "$DIR_TODO" && "$EDITOR" "$file" } +todo() { + cd "$DIR_TODO" && "$EDITOR" TODO +} + work_log_template() { cat << EOF $(date '+%F %A')