From f316439bdaa68cd612cf0debb1da3c5e8d5afa00 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Tue, 29 Nov 2022 19:30:25 -0800 Subject: [PATCH] fix doi.org url handling --- .hammerspoon/handle-urls.fnl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.hammerspoon/handle-urls.fnl b/.hammerspoon/handle-urls.fnl index e23d542..00221db 100644 --- a/.hammerspoon/handle-urls.fnl +++ b/.hammerspoon/handle-urls.fnl @@ -28,10 +28,10 @@ (fn open-with [app] (partial open-url app)) +;; fnlfmt: skip (local default-handlers [["^https://.*%.?zoom.us/j/%d+" (open-with :zoom)] - ["^https://doi.org/" - #(open-with :default (.. "https://sci-hub.st/" $1))]]) + ["^https://doi.org/" #((open-with :default) (.. "https://sci-hub.st/" $1))]]) (fn url->handler [url] (accumulate [acc nil _ [pat handler] (ipairs handlers) &until acc]