Update xsel completion v1.2.1

This commit is contained in:
Shohei YOSHIDA 2025-07-10 12:51:27 +09:00
parent fe11bbe8b0
commit ed034970c2
No known key found for this signature in database
GPG Key ID: C9A1BB11BB940CF2
1 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,7 @@
# Description
# -----------
#
# Completion script for xsel (https://www.vergenet.net/~conrad/software/xsel/).
# Completion script for xsel v1.2.1 (https://www.vergenet.net/~conrad/software/xsel/).
#
# ------------------------------------------------------------------------------
# Authors
@ -45,6 +45,7 @@ local selection='(-p --primary -s --secondary -b --clipboard)'
_arguments -s \
$input{-a,--append}'[append standard input to the selection]' \
$input{-f,--follow}'[append to selection as standard input grows]' \
$input{-z,--zeroflush}'[overwrites selection when zero(\\0) is received]' \
$input{-i,--input}'[read standard input into the selection]' \
{-o,--output}'[write the selection to standard output]' \
$operation{-c,--clear}'[clear the selection]' \
@ -55,6 +56,7 @@ _arguments -s \
$operation{-k,--keep}'[do not modify the selections, but make the PRIMARY and SECONDARY selections persist even after the programs they were selected in exit]' \
$operation{-x,--exchange}'[exchange the PRIMARY and SECONDARY selections]' \
'--display[specify the server to use; see X(1)]:X display:_x_display' \
'--windowName[specify the X WM_ NAME window property]:window_name' \
{-t,--selectionTimeout}'[specify the timeout in milliseconds within which the selection must be retrieved]:number' \
{-l,--logfile}'[specify the file to log errors to when detached (default $HOME/.xsel.log)]:log file:_files' \
{-n,--nodetach}'[do not detach from the controlling terminal]' \