aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-08-13 19:59:04 +0530
committerAkshay Nair <phenax5@gmail.com>2025-08-15 08:18:42 +0530
commit66a9640d9c4d1101ae5cc986e4e0c86c20262f25 (patch)
tree94d268564550bf5b5e71ee44dc368773d2770478 /init.lua
parentec909d4211cd124a23f2ea878cc961b8b53f651a (diff)
downloadnull-browser-66a9640d9c4d1101ae5cc986e4e0c86c20262f25.tar.gz
null-browser-66a9640d9c4d1101ae5cc986e4e0c86c20262f25.zip
Add docs for events and event opts + document web.json
Diffstat (limited to '')
-rw-r--r--init.lua12
1 files changed, 9 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index d2a8e23..622bd79 100644
--- a/init.lua
+++ b/init.lua
@@ -165,9 +165,15 @@ end)
local hints = require 'null-browser.extras.hints'
hints.init()
-web.keymap.set('n', 'f', function() hints.start('a[href], button', hints.action.open_in_view) end)
-web.keymap.set('n', '<s-f>', function() hints.start('a[href], button', hints.action.open_in_new_view) end)
-web.keymap.set('n', 'yl', function() hints.start('a[href]', hints.action.copy_link) end)
+web.keymap.set('n', 'f', function()
+ hints.start('a[href], button, [role="button"]', hints.action.open_in_view)
+end)
+web.keymap.set('n', '<s-f>', function()
+ hints.start('a[href], button, [role="button"]', hints.action.open_in_new_view)
+end)
+web.keymap.set('n', 'yl', function()
+ hints.start('a[href]', hints.action.copy_link)
+end)
web.keymap.set('n', 'gi', function()
local input_selectors = {
'input:not([type="hidden"])',