aboutsummaryrefslogtreecommitdiff
path: root/config.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--config.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.lua b/config.lua
index a1f49c6..9466a20 100644
--- a/config.lua
+++ b/config.lua
@@ -14,6 +14,9 @@ local function get_current_view_index()
end
end
+web.set('new_view_url', 'https://lite.duckduckgo.com')
+-- web.set('close_window_when_no_views', false)
+
local dmenu = require 'null-browser.extras.dmenu'
local history = require 'null-browser.extras.history'
@@ -38,6 +41,7 @@ end
-- Open in new view
web.keymap.set('n', 'o', function()
+ print(web.get('new_view_url'))
dmenu.select(history.list(), { prompt = 'Open view:' }, function(err, result)
if err or not result then return end
web.view.new(to_url(result))