mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 11:46:40 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user