From aae9f379e28438a90031c8add13bae6263b19ae9 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 29 Nov 2024 16:39:25 +0100 Subject: fix(modules/lf/cmds/set_clipboard_path): Provide feedback to the user --- modules/by-name/lf/lf/commands/scripts/set_clipboard_path.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/by-name') diff --git a/modules/by-name/lf/lf/commands/scripts/set_clipboard_path.sh b/modules/by-name/lf/lf/commands/scripts/set_clipboard_path.sh index 460eeedb..ff5f3c01 100755 --- a/modules/by-name/lf/lf/commands/scripts/set_clipboard_path.sh +++ b/modules/by-name/lf/lf/commands/scripts/set_clipboard_path.sh @@ -18,6 +18,9 @@ elif [ -n "$f" ]; then echo "$f" | wl-copy --trim-newline else lf -remote "send $id echo 'No file selected.'" + exit 1 fi +lf -remote "send $id echo 'Path copied'" + # vim: ft=sh -- cgit 1.4.1