aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-08-10 20:49:54 +0530
committerAkshay Nair <phenax5@gmail.com>2025-08-10 20:49:54 +0530
commit9e8abe4f466cf771a420b6c551926c5e917f7b76 (patch)
tree0685166058b7191ad29f35b4c6cdc2e2404a29be /init.lua
parent5e7c88b9a4449ebafe78c83787342d9cc119784c (diff)
downloadnull-browser-9e8abe4f466cf771a420b6c551926c5e917f7b76.tar.gz
null-browser-9e8abe4f466cf771a420b6c551926c5e917f7b76.zip
Add gi key for hints to focus input elements
Diffstat (limited to '')
-rw-r--r--init.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index a8d1799..937fdeb 100644
--- a/init.lua
+++ b/init.lua
@@ -78,5 +78,13 @@ 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', 'gi', function()
+ local input_selectors = {
+ 'input:not([type="hidden"])',
+ 'textarea',
+ '[contenteditable]'
+ }
+ hints.start(table.concat(input_selectors, ', '), hints.action.focus)
+end)
print('ending...')