summaryrefslogtreecommitdiff
path: root/shell-completion
AgeCommit message (Collapse)AuthorFilesLines
2016-04-27core: Support memfd transport; bump protocol versionAhmed S. Darwish2-2/+3
Now that all layers in the stack support memfd blocks, add memfd support for the daemon's global core mempool. Also introduce "enable-memfd=" daemon argument and configuration option. For now, memfd support is an opt-in feature to be activated only when daemon's enable-memfd= is set to yes. Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
2015-02-03shell-completion: bash: Fix pactl list source-outputsArun Raghavan1-1/+1
2014-11-14shell-completion: zsh: Fix the set-card-profile descriptionTanu Kaskinen1-1/+1
2014-11-14shell-completion: zsh: Fix set-default-sink/source completionTanu Kaskinen1-0/+2
The _devices() function didn't recognize the set-default-* commands, and as a result it didn't generate any completions.
2014-11-04pactl: Remove deprecated 'stat' behaviourPeter Meerwald2-3/+0
the stat command should only output statistics, not info behaviour was deprecated anno 2011 in 8ace9185 "pactl: Make stat backwards compatible" -- fix this now v2: (thanks Tanu Kaskinen): * adjust shell completion Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
2014-10-28build-sys: Alias bash-completion for all PulseAudio commandsMichał Górny1-0/+0
Bash-completion 1.90 introduced support for on-demand loading of completions. Install the completion file as 'pulseaudio' to match the main command, and create symlinks as aliases for other supported commands in order to support the new system.
2014-10-26shell-completion: zsh: Rework pactl completionTanu Kaskinen1-35/+229
So far the command name has been figured out by looking one or two items back in the $words array, but I needed a way to figure out the command given an arbitrary number of parameters. I was implementing a command for removing devices from the device-manager database, and the command would take a list of devices. Since the number of devices that need to be completed can be arbitrarily large, the previous "look one or two words back" approach didn't work. This new approach is more verbose, but I think it's also easier to follow. There's some duplication that would be easy to avoid by merging some of the commands, but I decided to not do that, to make it more obvious what the code does.
2014-10-26shell-completion: zsh: Mark a variable as localTanu Kaskinen1-0/+2
Variables are global by default, and we certainly don't want _pactl_commands to be a global variable.
2014-08-17shell-completion: zsh: Add "=" to the end of some command optionsTanu Kaskinen1-3/+3
Without the equals sign, only the "--server foo" form is recognized, so the "--server=foo" form doesn't get completion support.
2014-08-17shell-completion: zsh: Use -S and -A with _argumentsTanu Kaskinen1-5/+5
-S makes the option parser to not try parsing arguments as options after "--" has appeared in the command line. -A "-*" makes the option parser to not try parsing arguments as options after the first non-option argument. The "-*" pattern means that if there are unrecognized parameters that look like options (i.e. start with a dash), those should not terminate the option parsing.
2014-08-17shell-completion: zsh: Don't use multiple option sets for one commandTanu Kaskinen1-11/+5
The options were divided to multiple sets to prevent (or at least try to prevent) completing e.g. --server after -s was already given. This, however, caused problems, because after the user had written "pactl --server foo", further completions stopped to work. The "server" option set didn't contain any other options, so once Zsh detected that the "server" option set was in use, it thought that no other options were valid. The special casing for "-s", "-n", "--server" and "--client-*" at the end of _pactl_completion() was probably an attempt to deal with this problem. Those special cases are unnecessary now that the option specification given to _arguments is more correct.
2014-08-17shell-completion: zsh: Don't say "this help" when it's a different helpTanu Kaskinen1-4/+4
The option descriptions that Zsh prints are not the same thing as the help text that pactl, pacmd etc. print when given --help.
2014-08-17shell-completion: zsh: Support also --server in remote detectionTanu Kaskinen1-1/+3
_set_remote() is supposed to find out if a remote server has been specified on the command line, but previously it only checked for -s and ignored --server, causing the completion code to connect to the local server instead when it should have connected to the remote server to get the data for the completions.
2014-08-17shell-completion: zsh: Move duplicated code into a functionTanu Kaskinen1-54/+34
This is just refactoring, no functional changes.
2014-08-17shell-completion: Install the Zsh completionsTanu Kaskinen1-0/+0
This makes the Zsh completions work out-of-the-box. I also moved pulseaudio-zsh-completion.zsh to zsh/_pulseaudio to be in line with the common naming convention of Zsh completion files.
2014-07-03zsh-completion: Fix completion for default sink/sourceFelipe Sateler1-2/+2
2014-05-25shell-completion: Add completion for parecTanu Kaskinen2-5/+6
Thanks to Damir Jelić for fixes in the zsh completion.
2013-10-29zsh-completion: Add --monitor-stream completion to pacatpoljar (Damir Jelić)1-0/+2
2013-10-29zsh-completion: Fix pacat device completionpoljar (Damir Jelić)1-11/+27
The pacat completion didn't complete the right devices for the --record and --playback flags. This patch fixes this and makes the device completion for pacat easily expandable.
2013-10-29bash-completion: Add --monitor-stream completion to pacatpoljar (Damir Jelić)1-1/+7
2013-08-15bash-completion: Fix device completion for pacatpoljar (Damir Jelić)1-2/+2
The Bash shell completion for pacat --device combines the name of the last sink and the name of the first source. This patch fixes that by adding a whitespace separator in the list of devices. Buglink: https://bugs.freedesktop.org/show_bug.cgi?id=68106
2013-06-04shell-completion: Add list-cards to the pacmd completion.poljar (Damir Jelić)2-1/+2
The list-cards command was missing for both of the shell completions. This fixes it.
2013-03-18zsh-completion: Fix pacat completion.poljar (Damir Jelić)1-1/+2
pacat --format needs = (--format=). Also pacat should complete files firstly and command line arguments secondly.
2013-03-18zsh-completion: Add support for the new pactl commands.poljar (Damir Jelić)1-1/+3
This adds support for set-(sink|source)-default completion and adds toggle to the supported arguments for the mute command.
2013-03-18zsh-completion: Add support for remote servers.poljar (Damir Jelić)1-15/+60
This patch adds support for completion of remote PulseAudio server arguments it also suppresses error messages when unable to connect to PulseAudio (only for the completion function).
2013-02-01bash-completion: Don't complete devices in the list commandspoljar (Damir Jelić)1-0/+3
This fixes some wrong completion for the list commands for example: pactl list sinks _sink_name_
2013-01-31build: Add bash completionpoljar (Damir Jelić)1-0/+561
This patch adds bash completion for pulseaudio and all of the utilities. Channel maps and properties are not yet completed. This should make mostly pactl/pacmd more useful for bash users. Thanks to Denis Kasak for the awk magic (fetching ports and profiles from the card info).
2013-01-28build: Add zsh completionpoljar (Damir Jelić)1-0/+486
This patch adds zsh completion for pulseaudio and all of the utilities. Channel maps and properties are not yet completed. This should make mostly pactl/pacmd more usefull for zsh users.