From f3f109cd054888f857d51ca2b37b4123f3134069 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 12 Apr 2025 11:56:10 +0530 Subject: Add configuration api --- config.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config.lua') 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)) -- cgit v1.3.1