From d006c76aceb4ec4151b7feeb9afc8d1d09097260 Mon Sep 17 00:00:00 2001 From: Felix Luciano Salomon Date: Fri, 22 Mar 2024 15:12:03 -0700 Subject: [PATCH 1/2] Added pbpaste command completions --- share/completions/pbpaste.fish | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 share/completions/pbpaste.fish diff --git a/share/completions/pbpaste.fish b/share/completions/pbpaste.fish new file mode 100644 index 000000000000..d2c41243856d --- /dev/null +++ b/share/completions/pbpaste.fish @@ -0,0 +1,3 @@ +complete -c pbpaste -s help -d "Display command help" +complete -c pbpaste -s pboard -d "Specifies which paste specifies which pasteboard to copy to or paste from. If no pasteboard is given, the general pasteboard will be used by default. {general | ruler | find | font}" +complete -c pbpaste -s Prefer -d "Tells pbpaste what type of data to look for in the pasteboard first. {txt | rtf | ps}" From aa3ab0bccf6c3cb1ec4e0cda129236247cd177b0 Mon Sep 17 00:00:00 2001 From: Felix Luciano Salomon Date: Sun, 24 Mar 2024 23:14:53 -0700 Subject: [PATCH 2/2] Modified command options to include closed list arguments. Changed completions to -o instead of -s --- share/completions/pbpaste.fish | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/share/completions/pbpaste.fish b/share/completions/pbpaste.fish index d2c41243856d..f4e6c4197047 100644 --- a/share/completions/pbpaste.fish +++ b/share/completions/pbpaste.fish @@ -1,3 +1,3 @@ -complete -c pbpaste -s help -d "Display command help" -complete -c pbpaste -s pboard -d "Specifies which paste specifies which pasteboard to copy to or paste from. If no pasteboard is given, the general pasteboard will be used by default. {general | ruler | find | font}" -complete -c pbpaste -s Prefer -d "Tells pbpaste what type of data to look for in the pasteboard first. {txt | rtf | ps}" +complete -c pbpaste -o help -d "Display command help" +complete -c pbpaste -o pboard -d "Which paste board to use" -xa "general ruler find font" +complete -c pbpaste -o Prefer -d "Tells pbpaste what type of data to look for in the pasteboard first" -xa "txt rtf ps"