From b5f90bc8f7c9e12fdab676e243437dac754488bc Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Wed, 14 Aug 2024 23:01:31 -0700 Subject: 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. --- sh/pme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sh/pme') diff --git a/sh/pme b/sh/pme index a527953..16d1c09 100755 --- a/sh/pme +++ b/sh/pme @@ -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" -- cgit v1.2.3-70-g09d2