From e954569d5d736076b1621798eb23b1236a3fb5ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=84min=20Baumeler?= Date: Thu, 3 Jul 2025 11:52:36 +0200 Subject: [PATCH] feat: view source --- README.md | 5 +++++ src/main.sh | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e60b468..4b85e52 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,7 @@ In addition, there are the following keybindings: | `ctrl-x` | Toggle task completion | | `alt-up` | Increase task priority | | `alt-down` | Decrease task priority | +| `alt-v` | View bare iCalendar file | | `alt-0` | Default view: Journal, notes, and _open_ tasks | | `alt-1` | Display journal entries | | `alt-2` | Display notes | @@ -91,6 +92,10 @@ In addition, there are the following keybindings: You may also invoke the script with `--help` to see further command-line options. +Git support +----------- +You can track your entries with `git` by simply running `fzf-vjour --git-init`. + Limitations ----------- Here is a list of some currently present limitations. diff --git a/src/main.sh b/src/main.sh index c404300..c77a95b 100644 --- a/src/main.sh +++ b/src/main.sh @@ -68,7 +68,7 @@ while true; do --print-query \ --accept-nth=4 \ --preview="$0 --preview {4}" \ - --expect="ctrl-n,ctrl-alt-d" \ + --expect="ctrl-n,ctrl-alt-d,alt-v" \ --bind="ctrl-r:reload($0 --reload)" \ --bind="ctrl-x:reload($0 --reload --toggle-completed {4})" \ --bind="alt-up:reload($0 --reload --change-priority '+1' {4})" \ @@ -104,6 +104,9 @@ while true; do "ctrl-alt-d") __delete "$file" ;; + "alt-v") + $EDITOR "$file" + ;; *) __edit "$file" ;;