diff options
author | bptato <nincsnevem662@gmail.com> | 2024-09-22 13:14:36 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-09-22 13:37:13 +0200 |
commit | e23fa780cf2fff7146efcd64b2806ce428858b80 (patch) | |
tree | 1c27dc0a50c03bc1d4348d9b96328009e0adce8f /src/local/container.nim | |
parent | 9386feca5e39b89676dd410f6331553c37434239 (diff) | |
download | chawan-e23fa780cf2fff7146efcd64b2806ce428858b80.tar.gz |
pager: improve hover text handling
* align status truncating behavior with w3m (not exactly, clipping is still different, but this should be fine for now) * add "su" for "show last alert" - w3m's solution here is to scroll one char at a time with "u", but that's extremely annoying to use. We already have a line editor that can navigate lines, so reuse that instead. * fix peekCursor showing empty text * update todo
Diffstat (limited to 'src/local/container.nim')
-rw-r--r-- | src/local/container.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/local/container.nim b/src/local/container.nim index 6310c8d6..8f295ad9 100644 --- a/src/local/container.nim +++ b/src/local/container.nim @@ -1930,7 +1930,8 @@ proc peekCursor(container: Container) {.jsfunc.} = p = low(HoverType) if container.hoverText[p] != "" or p == container.lastPeek: break - container.alert($p & ": " & container.hoverText[p]) + if container.hoverText[p] != "": + container.alert($p & ": " & container.hoverText[p]) container.lastPeek = p func hoverLink(container: Container): string {.jsfget.} = |