summaryrefslogtreecommitdiff
path: root/sh/pme
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2024-08-14 23:01:31 -0700
committerXiao Pan <xyz@flylightning.xyz>2024-08-14 23:01:31 -0700
commitb5f90bc8f7c9e12fdab676e243437dac754488bc (patch)
treee0e5d7fa9f70af23817b230bc1da1a941c2c6105 /sh/pme
parent17f49a2e1c15c6b419a88ad3e467336ffc7debc6 (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/pme')
-rwxr-xr-xsh/pme2
1 files changed, 1 insertions, 1 deletions
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"