From 995181f67f37d5cde3d91ea133539af7a8cb0cde Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 12 May 2024 17:52:13 +0100 Subject: [PATCH] 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. --- hammerspoon/hosts/noct.lua | 48 +++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/hammerspoon/hosts/noct.lua b/hammerspoon/hosts/noct.lua index b46bf2d..715556e 100644 --- a/hammerspoon/hosts/noct.lua +++ b/hammerspoon/hosts/noct.lua @@ -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