Add bash completion for gimp, gimp-console, and possibly other binaries we ship
Operating System: mostly Linuxes, but likely anything that has bash
Description of the feature
Some commands provide a nice feature when run on the shell: autocompletion of their parameters
For example, git does this (in the following examples, signifies hitting the Tab key):
git --he<tab>
completes to git --help
, and git <tab><tab>
shows the list of available subcommands, i.e.
add cherry-pick format-patch mergetool replace sparse-checkout
am citool fsck mv request-pull stage
apply clean gc notes reset stash
archive clone gitk pbuilder restore status
big-picture commit grep pull revert submodule
bisect config gui push rm switch
blame deborig help range-diff send-email tag
branch describe init rebase shortlog whatchanged
bundle diff instaweb reflog show worktree
checkout difftool log remote show-branch
cherry fetch merge repack sizer
For GIMP and the related commands, this could complete to the parameters, and from what I understand of this completion so far, it could even suggest completions for some of their possible values.
This is controlled by scripts and files either shipped with applications or created by third parties when packaging. It could help to make the command line parameters a bit more discoverable.
@nielsdg has offered to look into this.