Improved order completions are served in

Former-commit-id: e1eae46e144920b58c613d5e710d1ee30d3841a7
Former-commit-id: b6e78af74b29add6e63a708bdfc807dfe92c1094
This commit is contained in:
2023-03-27 10:34:19 -04:00
parent fc94bfd774
commit 3f4173b4fd
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -20,16 +20,16 @@ _sshyp_completions() {
while read -r; do ITEM=${REPLY// /\\ }; COMPREPLY+=( "$ITEM" ); done < <( compgen -W "$(printf "'%s' " "${trimmed_paths[@]}")" -- "$cur" )
;;
/* )
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "add edit copy gen shear" -- "$cur" )
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "add gen edit copy shear" -- "$cur" )
;;
add )
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "folder note password" -- "$cur" )
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "password note folder" -- "$cur" )
;;
copy )
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "note password url username" -- "$cur" )
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "password username url note" -- "$cur" )
;;
edit )
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "note password relocate url username" -- "$cur" )
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "password username url note relocate" -- "$cur" )
;;
gen )
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "update" -- "$cur" )
+4 -4
View File
@@ -11,16 +11,16 @@ case ${words[-2]} in
compadd $trimmed_paths
;;
/* )
compadd {add,edit,copy,gen,shear}
compadd {add,gen,edit,copy,shear}
;;
add )
compadd {folder,note,password}
compadd {password,note,folder}
;;
copy )
compadd {note,password,url,username}
compadd {password,username,url,note}
;;
edit )
compadd {note,password,relocate,url,username}
compadd {password,username,url,note,relocate}
;;
gen )
compadd update