! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Add Bash completion
Status:
RESOLVED: MOVED
Severity:
enhancement
Product:
Xfconf
Component:
Xfconf-query

Comments

Description ema-pe 2019-11-24 15:26:49 CET
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.
Comment 1 Git Bot editbugs 2020-05-25 23:50:34 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfconf/-/issues/6.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #16218

Reported by:
ema-pe
Reported on: 2019-11-24
Last modified on: 2020-05-25

People

Assignee:
Xfce Bug Triage
CC List:
1 user

Version

Version:
Unspecified

Attachments

Additional information