fix(hammerspoon/hati): disable URL handling with Hammerspoon

When using Arc and having new links open in Little Arc while having
Hammerspoon set as the default browser, clicking a link first switches
to and focuses on the most recent main Arc window, before then opening
Little Arc.

While if Arc itself is the default browser, no such focus switching
happens, and instead Little Arc just opens and gets focus.
This commit is contained in:
Jim Myhrberg
2024-05-10 17:49:41 +01:00
parent ee5c2284ea
commit f3bf4ff98d

View File

@@ -37,18 +37,18 @@ end
-- URL Handling
--------------------------------------------------------------------------------
local uh = require('url_handler')
-- local uh = require('url_handler')
local function init_url_handler()
uh.default_handler = uh.browsers.arc
uh.url_patterns = {
{
{ "%://meet.google.com/" }, uh.browsers.chrome, nil,
}
}
-- local function init_url_handler()
-- uh.default_handler = uh.browsers.arc
-- uh.url_patterns = {
-- {
-- { "%://meet.google.com/" }, uh.browsers.chrome, nil,
-- }
-- }
uh:init()
end
-- uh:init()
-- end
--------------------------------------------------------------------------------
-- Initialization
@@ -56,7 +56,7 @@ end
function obj.init()
init_hotkeys()
init_url_handler()
-- init_url_handler()
end
return obj