feat: preview scrolling
This commit is contained in:
@@ -94,6 +94,9 @@ In addition, there are the following keybindings:
|
|||||||
| `alt-n` | Display notes |
|
| `alt-n` | Display notes |
|
||||||
| `alt-t` | Display all tasks |
|
| `alt-t` | Display all tasks |
|
||||||
| `alt-[1-9]` | Display first, second, ... collection |
|
| `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.
|
You may also invoke the script with `--help` to see further command-line options.
|
||||||
|
|
||||||
|
|||||||
@@ -103,6 +103,9 @@ while true; do
|
|||||||
--bind="alt-n:change-query($FLAG_NOTE )" \
|
--bind="alt-n:change-query($FLAG_NOTE )" \
|
||||||
--bind="alt-t:change-query($FLAG_COMPLETED | $FLAG_OPEN )" \
|
--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='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 <enter> to continue.'; read -r tmp)" ||
|
--bind="ctrl-s:execute($SYNC_CMD; [ -n \"${GIT:-}\" ] && ${GIT:-echo} add -A && ${GIT:-echo} commit -am 'Synchronized'; printf 'Press <enter> to continue.'; read -r tmp)" ||
|
||||||
true
|
true
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user