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" ;;