From c642675ba86d841d881215e8e5e28013103bd0ff Mon Sep 17 00:00:00 2001 From: Anastasios Grammenos Date: Fri, 20 Aug 2021 14:01:56 +0300 Subject: Add graphical editor --- conf_completion | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'conf_completion') diff --git a/conf_completion b/conf_completion index ebeb482..a8d5d3b 100644 --- a/conf_completion +++ b/conf_completion @@ -4,7 +4,7 @@ _conf() { COMPREPLY=() local cur="${COMP_WORDS[COMP_CWORD]}" - local commands="add ls list search edit relink grep help" + local commands="add ls list search edit relink grep help version" if [[ $COMP_CWORD -gt 1 ]]; then local lastarg="${COMP_WORDS[$COMP_CWORD-1]}" case "${COMP_WORDS[1]}" in @@ -22,13 +22,16 @@ _conf() COMPREPLY=($(compgen -f -- ${cur})) fi ;; - edit|e) + edit|e|editg|eg) COMPREPLY=($(compgen -W "$(conf ls -G) \ $(conf ls -l | xargs -If basename f) \ $(for g in $(conf ls -G); do \ conf ls -g $g | xargs -If basename f | sed -e "s#^#${g}/#"; \ done)" -- ${cur})) ;; + relink) + COMPREPLY=($(compgen -W "-t --test $(conf ls -G)" -- ${cur})) + ;; esac else COMPREPLY=($(compgen -W "${commands}" -- ${cur})) -- cgit v1.2.3