about summary refs log tree commit diff
path: root/home/profiles
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-07-22 17:45:53 +0900
committersefidel <contact@sefidel.net>2022-07-22 17:45:53 +0900
commit07473c7d5ea09c5c1b292ff7c65523b0eece5b58 (patch)
tree319181ea8d56e4994a3cd5bcf6823f2932d1d91f /home/profiles
parentd0baf5444094c3e6f8bdff91c2d3f56f0a4dc4d7 (diff)
downloadnixrc-07473c7d5ea09c5c1b292ff7c65523b0eece5b58.tar.gz
nixrc-07473c7d5ea09c5c1b292ff7c65523b0eece5b58.zip
feat(home/messaging): use urlscan for url view
Diffstat (limited to 'home/profiles')
-rw-r--r--home/profiles/messaging/default.nix9
1 files changed, 3 insertions, 6 deletions
diff --git a/home/profiles/messaging/default.nix b/home/profiles/messaging/default.nix
index 76bbb28..6d34ff5 100644
--- a/home/profiles/messaging/default.nix
+++ b/home/profiles/messaging/default.nix
@@ -169,6 +169,8 @@ in
         "index,pager \\Cj <sidebar-next><sidebar-open>"
         "index,pager \\Cp <sidebar-prev-new><sidebar-open>"
         "index,pager \\Cn <sidebar-next-new><sidebar-open>"
+        "index,pager \\Cb <pipe-message>urlscan<Enter>"
+        "attach,compose \\Cb <pipe-entry>urlscan<Enter>"
       ];
 
       # TODO: Re-theme this after nightlamp -> limestone theme
@@ -294,13 +296,8 @@ in
         # application/pgp-encrypted; gpg -d '%s'; copiousoutput;
       '';
 
-    home.file.".urlview".text = ''
-      REGEXP (((http|https|ftp|gopher)|mailto)[.:][^ >"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>">\):]
-      COMMAND qutebrowser %s
-    '';
-
     home.packages = with pkgs; [
-      urlview
+      urlscan
       ispell
 
       element-desktop