]> git.tuebingen.mpg.de Git - paraslash.git/commit
i9e: Introduce i9e_cword_is_option_arg().
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 6 Apr 2025 20:14:43 +0000 (22:14 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 18 May 2025 17:19:02 +0000 (19:19 +0200)
commit65c4d2835975203a45fadde20bae7a4f1b8dbd85
tree6ce9231d187b5e653e630106b47752aee268f0f9
parent351d7cdd95425ca23f1592e82701159a27720330
i9e: Introduce i9e_cword_is_option_arg().

Call the new function to complete --admissible, --sort and --listing-mode of
the ls subcommand and teach the touch completer to prevent filename completion
if a numerical argument is expected. The grab subcommand of para_audiod
also benefits from the new helper: para_audioc learned to complete the three
different grab modes.

Since --admissible expects a mood or playlist argument, factor out the code
from the select completer which returns the list of all moods and playlists
so that it can be called by the ls completer as well.
audioc.c
client.c
interactive.c
interactive.h