Make today the daily todo and todo the current
authorSiraaj Khandkar <siraaj@khandkar.net>
Sat, 30 Jul 2022 16:52:31 +0000 (12:52 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Sat, 30 Jul 2022 16:52:31 +0000 (12:52 -0400)
home/.xbindkeysrc
home/bin/today.launch.sh [new file with mode: 0755]
home/lib/login_functions.sh

index b3e1808..65dbf0a 100644 (file)
 
 ### 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 (executable)
index 0000000..cc83399
--- /dev/null
@@ -0,0 +1,6 @@
+#! /bin/bash
+
+. ~/lib/login_variables.sh # To get $DIR_TODO
+. ~/lib/login_functions.sh # To get today
+
+EDITOR=gvim today
index 97de4b9..6f6f9e0 100644 (file)
@@ -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')
This page took 0.019726 seconds and 4 git commands to generate.