diff --git a/README.md b/README.md index be31729..124239b 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,9 @@ In addition, there are the following keybindings: | `alt-n` | Display notes | | `alt-t` | Display all tasks | | `alt-[1-9]` | Display first, second, ... collection | +| `ctrl-w` | Toggle line-wrap in preview | +| `ctrl-d` | Scroll down in preview | +| `ctrl-u` | Scroll up in preview | You may also invoke the script with `--help` to see further command-line options. diff --git a/src/main.sh b/src/main.sh index 06fa948..1411e47 100644 --- a/src/main.sh +++ b/src/main.sh @@ -103,6 +103,9 @@ while true; do --bind="alt-n:change-query($FLAG_NOTE )" \ --bind="alt-t:change-query($FLAG_COMPLETED | $FLAG_OPEN )" \ --bind='focus:transform:[ {3} = "VTODO" ] && echo "rebind(ctrl-x)+rebind(alt-up)+rebind(alt-down)" || echo "unbind(ctrl-x)+unbind(alt-up)+unbind(alt-down)"' \ + --bind="ctrl-w:toggle-preview-wrap" \ + --bind="ctrl-d:preview-half-page-down" \ + --bind="ctrl-u:preview-half-page-up" \ --bind="ctrl-s:execute($SYNC_CMD; [ -n \"${GIT:-}\" ] && ${GIT:-echo} add -A && ${GIT:-echo} commit -am 'Synchronized'; printf 'Press to continue.'; read -r tmp)" || true )