sunfizz98 wrote:Btw, is there a way to....
1. copy selected text from keyboard
2. always open links in new tabs instead of new window panes
3. save passwords
1. Should be possible; I'll see if it's easy.
2. Ctrl-left mouse click will open a link in a new tab now. If you want it to always work like this (never open a new window for navigation), copy /etc/xdg/luakit/webview.lua to your home folder ~/.config/luakit and edit it as follows:
find this section:
-- Action to take on window open request.
window_decision = function (view, w)
-- 'link' contains the download link
-- 'reason' contains the reason of the request (i.e. "link-clicked")
-- return TRUE to handle the request by yourself or FALSE to proceed
-- with default behaviour
view:add_signal("new-window-decision", function (v, uri, reason)
info("New window decision: %s (%s)", uri, reason)
if reason == "link-clicked" then
window.new({uri})
else
w:new_tab(uri)
end
return true
end)
end,
and edit it to remove the window.new decision portion:
-- Action to take on window open request.
window_decision = function (view, w)
view:add_signal("new-window-decision", function (v, uri, reason)
-- always open a new tab, never a new window
w:new_tab(uri)
return true
end)
end,
So far this seems to work with no issues, but it may prevent a window from being opened when we want it to be, so proceed with caution (back up the file first, all that).
3. I probably won't work on this; I never save passwords in the browser.
Last edited by 2ManyDogs (2012-01-10 03:05:00)