aboutsummaryrefslogtreecommitdiff
path: root/config.lua
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-04-05 23:45:55 +0530
committerAkshay Nair <phenax5@gmail.com>2025-04-06 00:47:02 +0530
commitbbde1438e9c31cc83d8c4835ea97a0eaeae4e192 (patch)
tree88840b73176dee8bd7da70c36f19a32bafdd5d6c /config.lua
parentb77a6444f94ce8d05962af9039c31851e224be5c (diff)
downloadnull-browser-bbde1438e9c31cc83d8c4835ea97a0eaeae4e192.tar.gz
null-browser-bbde1438e9c31cc83d8c4835ea97a0eaeae4e192.zip
Close window when no tabs left
Diffstat (limited to '')
-rw-r--r--config.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/config.lua b/config.lua
index 4199574..360ef11 100644
--- a/config.lua
+++ b/config.lua
@@ -43,6 +43,13 @@ web.keymap.set('n', '<s-o>', function()
web.tabs.set_url(trim(result))
end)
end)
+-- Delete from history
+web.keymap.set('n', '<c-h>d', function()
+ dmenu.select(history.list(), { prompt = 'Delete history:' }, function(err, result)
+ if err or not result then return end
+ history.delete(trim(result))
+ end)
+end)
-- Update current url
web.keymap.set('n', '<c-l>', function()
local tabs = web.tabs.list()