add show entry
This commit is contained in:
parent
593184335e
commit
cafa65b7cb
@ -64,7 +64,7 @@ mainMenu () {
|
||||
root="$2"
|
||||
fi
|
||||
if [[ $1 == "manage" ]]; then
|
||||
HELP="<span color='$help_color'>Alt+1: Edit Entry | Alt+2: Move Entry | Alt+3: Delete Entry</span>"
|
||||
HELP="<span color='$help_color'>Alt+1: Edit Entry | Alt+2: Move Entry | Alt+3: Delete Entry | Alt+4 Show Entry</span>"
|
||||
selected_password="$(echo -e "0 Return to Main Menu\n---\n$(list_passwords 2>/dev/null)" | rofi -mesg "${HELP}" -dmenu -select "$entry" -p "rofi-pass > ")"
|
||||
rofi_exit=$?
|
||||
if [[ "${rofi_exit}" -eq 0 ]]; then true;
|
||||
@ -72,6 +72,13 @@ mainMenu () {
|
||||
elif [[ "${rofi_exit}" -eq 11 ]]; then manageEntry move;
|
||||
elif [[ "${rofi_exit}" -eq 1 ]]; then exit;
|
||||
elif [[ "${rofi_exit}" -eq 12 ]]; then manageEntry delete;
|
||||
elif [[ "${rofi_exit}" -eq 13 ]]; then
|
||||
menu=$(echo -e "0 Return to Manage Menu\n---\n$(pass "$selected_password")" | rofi -dmenu -p "> ")
|
||||
if [[ $menu == "0 Return to Manage Menu" ]]; then mainMenu manage
|
||||
elif [[ $menu == "" ]]; then exit
|
||||
else
|
||||
:
|
||||
fi
|
||||
fi
|
||||
if [[ "$selected_password" == "0 Return to Main Menu" ]]; then
|
||||
mainMenu
|
||||
|
Loading…
Reference in New Issue
Block a user