Better document new blank option="password" shortcut, order arguments in order of expected use, list passwords first in entry reader

This commit is contained in:
2024-03-18 12:59:18 -04:00
parent dd0d1ffe55
commit 26a5898e15
6 changed files with 38 additions and 44 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ _mutn_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 gen edit copy shear" -- "$cur" )
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "copy edit gen add shear" -- "$cur" )
;;
add )
while read -r; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "password note folder" -- "$cur" )
+1 -1
View File
@@ -33,7 +33,7 @@ function mutn {
[string]$entry,
[Parameter(Position = 1)]
[ArgumentCompletions('add', 'gen', 'edit', 'copy', 'shear')]
[ArgumentCompletions('copy', 'edit', 'gen', 'add', 'shear')]
[string]$argument,
[Parameter(Position = 2, ValueFromRemainingArguments=$true)]
+1 -1
View File
@@ -13,7 +13,7 @@ case ${words[-2]} in
compadd $trimmed_paths
;;
/* )
compadd {add,gen,edit,copy,shear}
compadd {copy,edit,gen,add,shear}
;;
add )
compadd {password,note,folder}