add an example of a failing clip call with broken dependencies

This commit is contained in:
amtoine 2023-03-31 19:10:08 +02:00
parent 8e4b8eb28c
commit 58c227e8ff
No known key found for this signature in database
GPG Key ID: 37AAE9B486CFF1AB

View File

@ -433,6 +433,14 @@ def check-clipboard [
#
# put huge structured data in the clipboard, but silently
# >_ open Cargo.toml --raw | from toml | clip --silent
#
# when the clipboard system command is not installed
# >_ "mm this is fishy..." | clip
# Error:
# × clipboard_not_found:
# │ you are using xorg as a graphical server
# │ but
# │ the xclip clipboard command was not found on your system.
export def clip [
--silent: bool # do not print the content of the clipboard to the standard output
--no-notify: bool # do not throw a notification (only on linux)