From 528e21733f61e8ded67977a792219aa4eb7db6ba Mon Sep 17 00:00:00 2001 From: Andreas Hrubak Date: Sat, 21 Sep 2024 22:41:33 +0200 Subject: [PATCH] fill-form accepts dot as a placeholder type-nothing parameter --- user-tools/cred | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/user-tools/cred b/user-tools/cred index f4023d1..bbd2790 100755 --- a/user-tools/cred +++ b/user-tools/cred @@ -72,6 +72,9 @@ If you use CopyQ(1), secrets are prevented to get to CopyQ's clipboard items his Takes one or more property names and types their values to the window accessible by pressing Alt+Tab on your desktop. Also presses after each string, but does not press . +A single dot (C<.>) is a pseudo I name: if it's given, nothing will be typed in its place, +but is still pressed after it. +Use it if the form has fields which you don't want to fill in. Obviously it's useful only with a B<$DESKTOP>. Depends on xdotool(1). @@ -79,7 +82,7 @@ Depends on xdotool(1). =head1 FILES -Hardcoded credentials' directory is F<~/cred>. +Hardcoded credentials directory is F<~/cred>. =head1 SEE ALSO @@ -300,7 +303,12 @@ case "$subcmd" in strings='' for prop in "$@" do - val=`cat "$basedir/$site/$prop"` + if [ "$prop" = . ] + then + val='' + else + val=`cat "$basedir/$site/$prop"` + fi strings="$strings$val"$'\t' done xdotool key Alt+Tab type "$strings" -- 2.11.4.GIT