From 9e8abe4f466cf771a420b6c551926c5e917f7b76 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 10 Aug 2025 20:49:54 +0530 Subject: Add gi key for hints to focus input elements --- init.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'init.lua') 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', '', 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...') -- cgit v1.3.1