[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"
|
||||
# Add field to clipboard
|
||||
# KEY_ENTRYMENU_CLIP="Alt+Return"
|
||||
# Return to main menu
|
||||
# KEY_ENTRYMENU_QUIT="Alt+BackSpace"
|
||||
|
||||
# The field name containing your gopass username
|
||||
# can take multiple names, separated by space
|
||||
|
|
@ -50,7 +52,7 @@
|
|||
_rofi() {
|
||||
# TODO add check for dmenu
|
||||
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
|
||||
|
|
@ -148,6 +150,7 @@ entrymenu() {
|
|||
local entry="$1"
|
||||
local k_entrymenu_fill="${KEY_ENTRYMENU_FILL:-Return}"
|
||||
local k_entrymenu_clip="${KEY_ENTRYMENU_CLIP:-Alt+Return}"
|
||||
local k_entrymenu_quit="${KEY_ENTRYMENU_QUIT:-Alt+BackSpace}"
|
||||
|
||||
local pass_obfuscation="(hidden)"
|
||||
|
||||
|
|
@ -158,7 +161,8 @@ entrymenu() {
|
|||
-kb-accept-entry "" \
|
||||
-kb-custom-1 "$k_entrymenu_fill" \
|
||||
-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_check "$exit_value"
|
||||
|
|
@ -182,6 +186,9 @@ entrymenu() {
|
|||
fi
|
||||
exit 0
|
||||
;;
|
||||
"12")
|
||||
main
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue