aboutsummaryrefslogtreecommitdiff
path: root/config.lua
diff options
context:
space:
mode:
Diffstat (limited to 'config.lua')
-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()