From 8d4c41d685fa56c06145a70abadf571e002b8a23 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Wed, 8 May 2024 22:38:56 +0530 Subject: linkhandler: handle .py and .toml --- .local/bin/linkhandler | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.local/bin/linkhandler') diff --git a/.local/bin/linkhandler b/.local/bin/linkhandler index a4904e1..c703eba 100755 --- a/.local/bin/linkhandler +++ b/.local/bin/linkhandler @@ -25,7 +25,7 @@ case "${1%/}" in 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 & ;; -*.c|*.cpp|*.sh|*.txt|*.java|*.nix|*.lua) +*.c|*.cpp|*.sh|*.txt|*.java|*.nix|*.lua|*.py|*.toml) note "processing text" 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 & -- cgit v1.2.3