feat(hammerspoon/noct): don't URL handler anymore

For now, I'm trying out Arc as the main browser, and the Little Arc
feature doesn't play super nice when links open via Hammerspoon.
This commit is contained in:
2024-05-12 17:52:13 +01:00
parent 6336532081
commit 995181f67f

View File

@@ -37,31 +37,31 @@ end
-- URL Handling -- URL Handling
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
local uh = require('url_handler') -- local uh = require('url_handler')
local function init_url_handler() -- local function init_url_handler()
uh.default_handler = uh.browsers.safari -- uh.default_handler = uh.browsers.arc
uh.url_patterns = { -- uh.url_patterns = {
{ -- {
{ "%://meet.google.com/" }, uh.browsers.chrome, nil, -- { "%://meet.google.com/" }, uh.browsers.chrome, nil,
} -- }
} -- }
-- uh.url_redir_decoders = { -- -- uh.url_redir_decoders = {
-- { -- -- {
-- "MS Teams links", -- -- "MS Teams links",
-- function(_, _, params, fullUrl) -- -- function(_, _, params, fullUrl)
-- if params.url then -- -- if params.url then
-- return params.url -- -- return params.url
-- else -- -- else
-- return fullUrl -- -- return fullUrl
-- end -- -- end
-- end, -- -- end,
-- nil, true, "Microsoft Teams" -- -- nil, true, "Microsoft Teams"
-- }, -- -- },
-- } -- -- }
uh:init() -- uh:init()
end -- end
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
-- Initialization -- Initialization
@@ -69,7 +69,7 @@ end
function obj.init() function obj.init()
init_hotkeys() init_hotkeys()
init_url_handler() -- init_url_handler()
end end
return obj return obj