about summary refs log tree commit diff stats
path: root/src/bindings/zlib.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-05-31 00:27:54 +0200
committerbptato <nincsnevem662@gmail.com>2024-05-31 00:53:49 +0200
commit27a39add498a9b1dca790c11a14cc3320cce2e31 (patch)
treebcd3e836591d015c5b574f1613b08b9752bcd739 /src/bindings/zlib.nim
parenta78fa4ee235006239bf9e81d8d83adc59415b524 (diff)
downloadchawan-27a39add498a9b1dca790c11a14cc3320cce2e31.tar.gz
pager: rework D/discard buffer
The previous solution had the issue that it switched between "delete
buffer, then move back" and "delete buffer, then move forward" depending
on whether the buffer was the root of the buffer tree, which made its
behavior quite unpredictable.

Now the pager (sort of) remembers the direction you are coming from,
and D moves in that direction. So e.g.:

* Enter, D just moves back to where you were coming from (as before)
* Comma, D deletes the previous buffer, then returns to the current
  buffer

If no buffer exists in the target direction, then we alert.

Also, new commands are: `d,' `d.'. They do the same thing the
non-d-prefixed variations do, but also delete the current buffer. Useful
if you're no longer sure where you are coming from, but know where you
want to go. (`d,' in particular is equivalent to w3m's `B'.)
Diffstat (limited to 'src/bindings/zlib.nim')
0 files changed, 0 insertions, 0 deletions