add password to list of available fields
This commit is contained in:
parent
ba2e8fd918
commit
2d1fc15a71
16
rofi-pass
16
rofi-pass
@ -215,15 +215,19 @@ else unset help; mainMenu; fi
|
|||||||
}
|
}
|
||||||
|
|
||||||
typeMenu () {
|
typeMenu () {
|
||||||
typefield=$(pass "${selected_password}" | awk -F ':' '{ print $1 }' | grep -Ev '\-\-\-' | tail -n +2 | rofi -dmenu -p "Choose Field to type > ")
|
typefield=$(echo -e "password\n$(pass ${selected_password} | awk -F ':' '{ print $1 }' | grep -Ev '\-\-\-' | tail -n +2)" | rofi -dmenu -p "Choose Field to type > ")
|
||||||
if [[ $typefield == "" ]]; then exit; fi
|
if [[ $typefield == "" ]]; then exit;
|
||||||
typeField
|
elif [[ $typefield == "password" ]]; then typePass;
|
||||||
|
else typeField
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
copyMenu () {
|
copyMenu () {
|
||||||
copyfield=$(pass "${selected_password}" | awk -F ':' '{ print $1 }' | grep -Ev '\-\-\-' | tail -n +2 | rofi -dmenu -p "Choose Field to type > ")
|
copyfield=$(echo -e "password\n$(pass ${selected_password} | awk -F ':' '{ print $1 }' | grep -Ev '\-\-\-' | tail -n +2)" | rofi -dmenu -p "Choose Field to type > ")
|
||||||
if [[ $copyfield == "" ]]; then exit; fi
|
if [[ $copyfield == "" ]]; then exit;
|
||||||
copyField
|
elif [[ $copyfield == "password" ]]; then copyPass;
|
||||||
|
else copyField
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
actionMenu () {
|
actionMenu () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user