diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2024-08-14 23:01:31 -0700 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2024-08-14 23:01:31 -0700 |
commit | b5f90bc8f7c9e12fdab676e243437dac754488bc (patch) | |
tree | e0e5d7fa9f70af23817b230bc1da1a941c2c6105 /sh | |
parent | 17f49a2e1c15c6b419a88ad3e467336ffc7debc6 (diff) |
Revert "pme username auto enter tab to switch to password field"
This reverts commit 17f49a2e1c15c6b419a88ad3e467336ffc7debc6.
Because auto enter tab maybe not a good idea, what if the field treat
tab as a character isntead of switch to another field? For example, an
cli/tui program.
Diffstat (limited to 'sh')
-rwxr-xr-x | sh/pme | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -21,7 +21,7 @@ find "$HOME/.password-store/" \( -type f -o -type l \) -name '*.gpg' \ xargs pass | { if [ "$user" ]; then # https://www.gnu.org/software/gawk/manual/html_node/Case_002dsensitivity.html - awk 'tolower($1) ~ /^(user|username):$/ {printf("%s\t",$2)}' + awk 'tolower($1) ~ /^(user|username):$/ {printf $2}' else # modified from https://git.zx2c4.com/password-store/tree/contrib/dmenu/passmenu#n34 GPL-2.0-or-later code IFS= read -r p; printf '%s\r' "$p" |