[gopass] Standardize autofill variables

Some variables were called autoentry, some autofill, some did not carry
any signifier. Unified this to use autofill in their variable name.
This commit is contained in:
Marty Oehme 2020-05-16 09:39:11 +02:00
parent 5733f928fa
commit 76b5335661
No known key found for this signature in database
GPG key ID: 0CCB0526EFB9611A
2 changed files with 10 additions and 10 deletions

View file

@ -63,10 +63,10 @@ set_defaults() {
KEY_ENTRYMENU_CLIP="${RGP_KEY_ENTRYMENU_CLIP:-$(get_config KEY_ENTRYMENU_CLIP Alt+Return)}"
KEY_ENTRYMENU_QUIT="${RGP_KEY_ENTRYMENU_QUIT:-$(get_config KEY_ENTRYMENU_QUIT Alt+BackSpace)}"
BACKEND="${RGP_BACKEND:-$(get_config BACKEND xdotool)}"
AUTOFILL_BACKEND="${RGP_BACKEND:-$(get_config AUTOFILL_BACKEND xdotool)}"
AUTOFILL_CHAIN="${RGP_AUTOENTRY_CHAIN:-$(get_config AUTOFILL_CHAIN 'username :tab password')}"
AUTOFILL_DELAY="${RGP_AUTOENTRY_DELAY:-$(get_config AUTOFILL_DELAY 30)}"
GOPASS_USERNAME_FIELD="${RGP_GOPASS_USERNAME_FIELD:-$(get_config GOPASS_USERNAME_FIELD 'username user login')}"
AUTOENTRY_CHAIN="${RGP_AUTOENTRY_CHAIN:-$(get_config AUTOENTRY_CHAIN 'username :tab password')}"
AUTOENTRY_DELAY="${RGP_AUTOENTRY_DELAY:-$(get_config AUTOENTRY_DELAY 30)}"
}
# exit on escape pressed
@ -133,14 +133,14 @@ list_fields() {
# invoke the dotool to type inputs
_type() {
local tool="${BACKEND}"
local tool="${AUTOFILL_BACKEND}"
local toolmode="$1"
local key="$2"
"$tool" "$toolmode" --delay "${AUTOENTRY_DELAY}" "$key"
"$tool" "$toolmode" --delay "${AUTOFILL_DELAY}" "$key"
}
# automatically enter entry chain, set via AUTOENTRY_CHAIN
# automatically fill out fields
# transform special chain entries into valid dotool commands
autofill() {
local selected="${1}"
@ -207,7 +207,7 @@ entrymenu() {
}
main() {
local autoentry_chain="${AUTOENTRY_CHAIN}"
local autoentry_chain="${AUTOFILL_CHAIN}"
local k_autofill="${KEY_AUTOFILL}"
local k_fill_user="${KEY_FILL_USER}"
local k_clip_user="${KEY_CLIP_USER}"