From 82377a4d5c0586b5e49b375ce13bfdf701a75ba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=84min=20Baumeler?= Date: Fri, 4 Jul 2025 16:41:10 +0200 Subject: [PATCH] imprv: wrap with alt-w instead of ctrl-w (latter kills words) --- README.md | 2 +- src/main.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 124239b..ff19484 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ 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 | +| `alt-w` | Toggle line-wrap in preview | | `ctrl-d` | Scroll down in preview | | `ctrl-u` | Scroll up in preview | diff --git a/src/main.sh b/src/main.sh index 1411e47..0140a7c 100644 --- a/src/main.sh +++ b/src/main.sh @@ -103,7 +103,7 @@ 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="alt-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)" ||