diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-25 20:26:40 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-25 20:26:40 +0530 |
| commit | 1284f8cf39e8ba44e837d4dac0bace89cb7a0c26 (patch) | |
| tree | 58ff313869ca62b335a8412289e3bbec1c104f47 /config.lua | |
| parent | 4cbaaae7c55e71d2d4db591029394812077eb844 (diff) | |
| download | null-browser-1284f8cf39e8ba44e837d4dac0bace89cb7a0c26.tar.gz null-browser-1284f8cf39e8ba44e837d4dac0bace89cb7a0c26.zip | |
Refactor webview index with id + add web.tabs.close
Diffstat (limited to '')
| -rw-r--r-- | config.lua | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -47,7 +47,7 @@ local urls = { web.keymap.set('n', 't', function() Dmenu.select(urls, { prompt = 'Open tab:' }, function(err, result) if err or not result then return end - web.tabopen(trim(result)) + web.tabs.new(trim(result)) end) end) -- Open in current tab @@ -71,6 +71,7 @@ end) -- History back/forward web.keymap.set('n', '<s-h>', function() web.history.back(); end) web.keymap.set('n', '<s-l>', function() web.history.forward(); end) +web.keymap.set('n', '<c-w>', function() web.tabs.close(); end) -- Dummy test keymap web.keymap.set('n', 'm', function() |
