From 3310ee4a0ed082b0dd18531fb0719016de9a056c Mon Sep 17 00:00:00 2001 From: EmilySeville7cfg Date: Sat, 26 Nov 2022 10:57:46 +1000 Subject: [PATCH] Add completion for pix, xed, xplayer, xreader, xviewer (#9379) Closes #9379 --- CHANGELOG.rst | 5 +++++ share/completions/pix.fish | 6 ++++++ share/completions/xed.fish | 9 +++++++++ share/completions/xplayer.fish | 19 +++++++++++++++++++ share/completions/xreader.fish | 10 ++++++++++ share/completions/xviewer.fish | 26 ++++++++++++++++++++++++++ 6 files changed, 75 insertions(+) create mode 100644 share/completions/pix.fish create mode 100644 share/completions/xed.fish create mode 100644 share/completions/xplayer.fish create mode 100644 share/completions/xreader.fish create mode 100644 share/completions/xviewer.fish diff --git a/CHANGELOG.rst b/CHANGELOG.rst index fbc203026..047e06be4 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -122,6 +122,11 @@ Completions - ``dolphin`` - ``ark`` - ``konsole`` + - ``xed`` + - ``xviewer`` + - ``xreader`` + - ``xplayer`` + - ``pix`` - Improvements to some completions. diff --git a/share/completions/pix.fish b/share/completions/pix.fish new file mode 100644 index 000000000..675452d04 --- /dev/null +++ b/share/completions/pix.fish @@ -0,0 +1,6 @@ +complete -c pix -l help -d 'Show help and exit' +complete -c pix -l version -d 'Show version and exit' + +complete -c pix -s f -l fullscreen -d 'Use fullscreen mode' +complete -c pix -s s -l slideshow -d 'Use slideshow mode' +complete -c pix -l import-photos -d 'Automatically import digital camera photos' diff --git a/share/completions/xed.fish b/share/completions/xed.fish new file mode 100644 index 000000000..64d83e536 --- /dev/null +++ b/share/completions/xed.fish @@ -0,0 +1,9 @@ +complete -c xed -s '?' -s h -l help -d 'Show help and exit' +complete -c xed -l version -d 'Show version and exit' +complete -c xed -l help-all -d 'Show all options and exit' + +complete -c xed -l display -d 'X display' +complete -c xed -l encoding -d Encoding +complete -c xed -l new-window -d 'Create a new window' +complete -c xed -l new-document -d 'Create a new document' +complete -c xed -l list-encodings -d 'List encodings' diff --git a/share/completions/xplayer.fish b/share/completions/xplayer.fish new file mode 100644 index 000000000..23cfe912f --- /dev/null +++ b/share/completions/xplayer.fish @@ -0,0 +1,19 @@ +complete -c xplayer -s '?' -l help -d 'Show help and exit' +complete -c xplayer -l version -d 'Show version and exit' + +complete -c xplayer -l play-pause -d 'Toggle between play +and pause' +complete -c xplayer -l play -d Play +complete -c xplayer -l pause -d Pause +complete -c xplayer -l next -d 'Skip to the next movie or chapter in the playlist' +complete -c xplayer -l previous -d 'Return to the previous movie or chapter in the playlist' +complete -c xplayer -l seek-fwd -d 'Seek forwards 15 seconds' +complete -c xplayer -l seek-bwd -d 'Seek backwards 15 seconds' +complete -c xplayer -l volume-up -d 'Raise the volume by 8%' +complete -c xplayer -l volume-down -d 'Lower the volume by 8%' +complete -c xplayer -l mute -d 'Toggle between muted and unmuted audio' +complete -c xplayer -l fullscreen -d 'Toggle fullscreen mode' +complete -c xplayer -l toggle-controls -d 'Toggle showing the controls' +complete -c xplayer -l quit -d Quit +complete -c xplayer -l enqueue -d 'Add a new stream to the playlist' +complete -c xplayer -l replace -d 'Play from the playlist' diff --git a/share/completions/xreader.fish b/share/completions/xreader.fish new file mode 100644 index 000000000..d823674e2 --- /dev/null +++ b/share/completions/xreader.fish @@ -0,0 +1,10 @@ +complete -c xreader -s '?' -s h -l help -d 'Show help and exit' +complete -c xreader -l version -d 'Show version and exit' +complete -c xreader -l help-all -d 'Show all options and exit' + +complete -c xreader -s p -l page-label -d 'Page label' +complete -c xreader -s i -l page-index -d 'Page number' +complete -c xreader -s f -l fullscreen -d 'Use fullscreen mode' +complete -c xreader -s s -l presentation -d 'Use presentation mode' +complete -c xreader -s w -l preview -d 'Use preview mode' +complete -c xreader -l display -d 'X display' diff --git a/share/completions/xviewer.fish b/share/completions/xviewer.fish new file mode 100644 index 000000000..074f11dd3 --- /dev/null +++ b/share/completions/xviewer.fish @@ -0,0 +1,26 @@ +complete -c xviewer -s h -l help -d 'Show help and exit' +complete -c xviewer -l version -d 'Show version and exit' + +complete -c xviewer -l usage -d 'Show help and exit' +complete -c xviewer -l disable-sound -d 'Do not use sound server' +complete -c xviewer -l enable-sound -d 'Use sound server' +complete -c xviewer -l espeaker -d 'Host:port on which sound' +complete -c xviewer -l gdk-debug -d 'Enabled Gdk flags' +complete -c xviewer -l gdk-no-debug -d 'Disabled Gdk flags' +complete -c xviewer -l display -d 'X display' +complete -c xviewer -l sync -d 'Synchronize X calls' +complete -c xviewer -l no-xshm -d 'Do not use X shared memory extension' +complete -c xviewer -l name -d 'Program name' +complete -c xviewer -l class -d 'Program class' +complete -c xviewer -l gxid_host +complete -c xviewer -l gxid_port +complete -c xviewer -l xim-preedit +complete -c xviewer -l xim-status +complete -c xviewer -l gtk-debug -d 'Enabled Gtk+ flags' +complete -c xviewer -l gtk-no-debug -d 'Disabled Gtk+ flags' +complete -c xviewer -l g-fatal -d 'Treat warnings as fatal errors' +complete -c xviewer -l gtk-module -d 'Additinal Gtk module' +complete -c xviewer -l disable-crash-dialog +complete -c xviewer -l sm-client-id -d 'Session management ID' +complete -c xviewer -l sm-config-prefix -d 'Prefix of saved configuration' +complete -c xviewer -l sm-disable -d 'Disable connection to session manager'