about summary refs log tree commit diff stats
path: root/src/local/client.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-20 16:01:58 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-20 16:01:58 +0100
commite9c202f29224f6e83abeed161263298237618145 (patch)
tree1849d6118a28f77bd6f5be416f1fa37adfeea460 /src/local/client.nim
parent4b7149a68e70737ea05514bda26cd64dc8d5909a (diff)
downloadchawan-e9c202f29224f6e83abeed161263298237618145.tar.gz
pager: add "save link", "save source"; change & document some keybindings
* `s{Enter}' now saves link, and `sS' saves source.
* Changed ;, +, @ to g0, g$, gc so that it's somewhat consistent with
  vim (and won't conflict with ; for "repeat jump to char")
* Changed (, ) to -, + so that it doesn't conflict with vi's
  "previous/next sentence" (once we have it...)
* Add previously missing keybindings to about:chawan
Diffstat (limited to 'src/local/client.nim')
-rw-r--r--src/local/client.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/local/client.nim b/src/local/client.nim
index 7c5fabb9..c4358c4d 100644
--- a/src/local/client.nim
+++ b/src/local/client.nim
@@ -648,7 +648,7 @@ proc addConsole(pager: Pager; interactive: bool; clearFun, showFun, hideFun:
       raise newException(Defect, "Failed to open console pipe.")
     let url = newURL("stream:console").get
     let container = pager.readPipe0("text/plain", CHARSET_UNKNOWN, pipefd[0],
-      url, ConsoleTitle, canReinterpret = false, userRequested = false)
+      url, ConsoleTitle, {})
     let err = newPosixStream(pipefd[1])
     err.writeLine("Type (M-c) console.hide() to return to buffer mode.")
     let console = newConsole(err, clearFun, showFun, hideFun)
@@ -664,7 +664,7 @@ proc clearConsole(client: Client) =
   let url = newURL("stream:console").get
   let pager = client.pager
   let replacement = pager.readPipe0("text/plain", CHARSET_UNKNOWN, pipefd[0],
-    url, ConsoleTitle, canreinterpret = false, userRequested = false)
+    url, ConsoleTitle, {})
   replacement.replace = client.consoleWrapper.container
   pager.replace(client.consoleWrapper.container, replacement)
   client.consoleWrapper.container = replacement