Add Bash completion
Submitted by ema-pe
Assigned to Xfce Bug Triage
Description
Created attachment 9275 Patch that adds Bash completion to xfconf-query
Hi,
I attached a patch that adds bash completion to xfconf-query. This script autocompletes short and long options, it also suggests channels and properties based on given channel. Here there are some examples:
[user@computer]$ xfconf-query -<TAB>
--channel      --help         --property     --set          --verbose      -T             -c             -m             -r             -v
--create       --list         --recursive    --toggle       --version      -V             -h             -n             -s
--force-array  --monitor      --reset        --type         -R             -a             -l             -p             -t
[user@computer]$ xfconf-query --channel xfce4-<TAB>
xfce4-appfinder           xfce4-keyboard-shortcuts  xfce4-panel               xfce4-session             xfce4-settings-manager
xfce4-desktop             xfce4-notifyd             xfce4-power-manager       xfce4-settings-editor
[user@computer]$ xfconf-query --channel parole -p <TAB>
/audio/volume      /subtitles/font    /window/maximized
[user@computer]$ xfconf-query -c thunar -p /last-window-<TAB>
/last-window-height     /last-window-maximized  /last-window-width
I have done some tests in local, it should works fine.
Patch 9275, "Patch that adds Bash completion to xfconf-query":
0001-Add-Bash-completion-for-xfconf-query.patch
Version: Unspecified