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