[gopass] Add ascending menus option
Added the ability to move back from a single entry to the main rofi-gopass menu. (default to Alt+BackSpace)
This commit is contained in:
parent
c241352a7b
commit
271d71a91c
1 changed files with 9 additions and 2 deletions
|
|
@ -40,6 +40,8 @@
|
||||||
# KEY_ENTRYMENU_FILL="Return"
|
# KEY_ENTRYMENU_FILL="Return"
|
||||||
# Add field to clipboard
|
# Add field to clipboard
|
||||||
# KEY_ENTRYMENU_CLIP="Alt+Return"
|
# KEY_ENTRYMENU_CLIP="Alt+Return"
|
||||||
|
# Return to main menu
|
||||||
|
# KEY_ENTRYMENU_QUIT="Alt+BackSpace"
|
||||||
|
|
||||||
# The field name containing your gopass username
|
# The field name containing your gopass username
|
||||||
# can take multiple names, separated by space
|
# can take multiple names, separated by space
|
||||||
|
|
@ -50,7 +52,7 @@
|
||||||
_rofi() {
|
_rofi() {
|
||||||
# TODO add check for dmenu
|
# TODO add check for dmenu
|
||||||
exist rofi critical "rofi-pass" || exit 0
|
exist rofi critical "rofi-pass" || exit 0
|
||||||
rofi -dmenu -no-auto-select -i "$@"
|
rofi -dmenu -no-auto-select -i "$@" -p "Entry"
|
||||||
}
|
}
|
||||||
|
|
||||||
# exit on escape pressed
|
# exit on escape pressed
|
||||||
|
|
@ -148,6 +150,7 @@ entrymenu() {
|
||||||
local entry="$1"
|
local entry="$1"
|
||||||
local k_entrymenu_fill="${KEY_ENTRYMENU_FILL:-Return}"
|
local k_entrymenu_fill="${KEY_ENTRYMENU_FILL:-Return}"
|
||||||
local k_entrymenu_clip="${KEY_ENTRYMENU_CLIP:-Alt+Return}"
|
local k_entrymenu_clip="${KEY_ENTRYMENU_CLIP:-Alt+Return}"
|
||||||
|
local k_entrymenu_quit="${KEY_ENTRYMENU_QUIT:-Alt+BackSpace}"
|
||||||
|
|
||||||
local pass_obfuscation="(hidden)"
|
local pass_obfuscation="(hidden)"
|
||||||
|
|
||||||
|
|
@ -158,7 +161,8 @@ entrymenu() {
|
||||||
-kb-accept-entry "" \
|
-kb-accept-entry "" \
|
||||||
-kb-custom-1 "$k_entrymenu_fill" \
|
-kb-custom-1 "$k_entrymenu_fill" \
|
||||||
-kb-custom-2 "$k_entrymenu_clip" \
|
-kb-custom-2 "$k_entrymenu_clip" \
|
||||||
-mesg "| $k_entrymenu_fill: fill selection | $k_entrymenu_clip: clip selection |"
|
-kb-custom-3 "$k_entrymenu_quit" \
|
||||||
|
-mesg " ᐊ $k_entrymenu_quit ᐊ | $k_entrymenu_fill: fill selection | $k_entrymenu_clip: clip selection |"
|
||||||
)
|
)
|
||||||
exit_value=$?
|
exit_value=$?
|
||||||
exit_check "$exit_value"
|
exit_check "$exit_value"
|
||||||
|
|
@ -182,6 +186,9 @@ entrymenu() {
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
"12")
|
||||||
|
main
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue