From bbde1438e9c31cc83d8c4835ea97a0eaeae4e192 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 5 Apr 2025 23:45:55 +0530 Subject: Close window when no tabs left --- config.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'config.lua') 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', '', function() web.tabs.set_url(trim(result)) end) end) +-- Delete from history +web.keymap.set('n', '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', '', function() local tabs = web.tabs.list() -- cgit v1.3.1