commit 89a5e7d68a3dda5fc9012ce0e57e948ece2a1736
parent 8117e8e0136c02507bc8e506b618e3c334215ef2
Author: mtmn <miro@haravara.org>
Date: Tue, 12 May 2026 17:16:53 +0200
chore: add entry to `todomenu`
Diffstat:
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/flake.lock b/flake.lock
@@ -261,11 +261,11 @@
]
},
"locked": {
- "lastModified": 1778503501,
- "narHash": "sha256-08L/X4/do7nET4rzidJ76eV/1r+mB7DchVpdPypsghc=",
+ "lastModified": 1778594112,
+ "narHash": "sha256-VA9z90SZviIvOcA4QyatA48FIyqb8mmsmH/EsXXWAG4=",
"owner": "nix-community",
"repo": "home-manager",
- "rev": "85ba629c79449badf4338117c27f0ee92b4b9f1a",
+ "rev": "1768d4e49860b86cb7652ee738de0e6b3050dd40",
"type": "github"
},
"original": {
diff --git a/modules/mixins/dotfiles/bin/todomenu b/modules/mixins/dotfiles/bin/todomenu
@@ -23,7 +23,7 @@ if ! grep -q "^todo: $task$" "$TODO_FILE"; then
[ -n "$(tail -c1 "$TODO_FILE")" ] && printf '\n' >>"$TODO_FILE"
printf "%s\ntodo: %s\n" "$(date --rfc-3339=s)" "$task" >>"$TODO_FILE"
else
- action=$(printf "copy to clipboard\nmark as done" | dmenu -p "$task" "$@")
+ action=$(printf "copy to clipboard\nmark as done\nopen in firefox" | dmenu -p "$task" "$@")
case "$action" in
"copy to clipboard")
echo "$task" | wl-copy
@@ -32,5 +32,8 @@ else
offset=$(grep -bo "^todo: $task$" "$TODO_FILE" | head -1 | cut -d: -f1)
printf 'done:' | dd of="$TODO_FILE" bs=1 seek="$offset" conv=notrunc 2>/dev/null
;;
+ "open in firefox")
+ firefox "$task"
+ ;;
esac
fi