fix doi.org url handling
change
commit f316439bdaa68cd612cf0debb1da3c5e8d5afa00
author Alpha Chen <alpha@kejadlen.dev>
date
parent 8cccbf12
diff --git a/.hammerspoon/handle-urls.fnl b/.hammerspoon/handle-urls.fnl
index e23d5425..00221db6 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]