From 9991723d469eefc139d90b8ddf9f9c5e4eba3a79 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Mon, 3 Jul 2023 17:02:09 +0530 Subject: linkhandler: detect .lua, .java, and .nix as text files --- .local/bin/linkhandler | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/linkhandler b/.local/bin/linkhandler index 392f137..cae7192 100755 --- a/.local/bin/linkhandler +++ b/.local/bin/linkhandler @@ -23,7 +23,7 @@ main() curl -sL "$1" > "/tmp/$(echo "$1" | sed "s/.*\///;s/%20/ /g")" && exec xdg-open "/tmp/$(echo "$1" | sed "s/.*\///;s/%20/ /g")" > /dev/null 2>&1 & ;; - *.cpp|*.c|*.sh|*.txt) + *.c|*.cpp|*.sh|*.txt|*.java|*.nix|*.lua) note "processing text" curl -sL "$1" > "/tmp/$(echo "$1" | sed "s/.*\///;s/%20/ /g")" && exec "$TERMINAL" -e xdg-open "/tmp/$(echo "$1" | sed "s/.*\///;s/%20/ /g")" > /dev/null 2>&1 & -- cgit v1.2.3