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 --- lua/null-browser/extras/hints.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lua') diff --git a/lua/null-browser/extras/hints.lua b/lua/null-browser/extras/hints.lua index d6e32c7..d708d69 100644 --- a/lua/null-browser/extras/hints.lua +++ b/lua/null-browser/extras/hints.lua @@ -90,6 +90,11 @@ function hints.action.open_in_view() ]] end +function hints.action.focus() + web.keymap.set_mode 'i' + web.view.run_js([[ _nullbrowser.hints.currentMatch?.elem?.focus?.(); ]]) +end + function hints.action.copy_link() web.view.run_js([[_nullbrowser.hints.currentMatch.elem?.href]], { on_result = function(url) -- cgit v1.3.1