about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-01-29 20:22:39 +0100
committerbptato <nincsnevem662@gmail.com>2024-01-29 20:33:59 +0100
commitcc3b9ada95c438bf2c9d83fa1037aa3950da07a4 (patch)
tree06b7f553c4136a2ea9673f107193a7956c379fd4 /src
parent2a18436ca92bc46034fd8a21b2949b3991f4b0a4 (diff)
downloadchawan-cc3b9ada95c438bf2c9d83fa1037aa3950da07a4.tar.gz
Add command to yank link under cursor (yc)
Diffstat (limited to 'src')
-rw-r--r--src/local/container.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/local/container.nim b/src/local/container.nim
index 73dfba49..edb1f992 100644
--- a/src/local/container.nim
+++ b/src/local/container.nim
@@ -1495,6 +1495,12 @@ proc peekCursor(container: Container) {.jsfunc.} =
   else:
     container.lastpeek = low(HoverType)
 
+func hoverLink(container: Container): string {.jsfget.} =
+  return container.hovertext[HOVER_LINK]
+
+func hoverTitle(container: Container): string {.jsfget.} =
+  return container.hovertext[HOVER_TITLE]
+
 proc handleCommand(container: Container) =
   var packetid, len: int
   container.iface.stream.sread(len)