dialer: don't show group contacts
There's no need since you can't *dial* them, and it makes narrow-as-you-type searches annoying.
This commit is contained in:
@@ -97,7 +97,13 @@ unknown_contacts() {
|
||||
[ -f "$SXMO_CONTACTFILE" ] || touch "$SXMO_CONTACTFILE"
|
||||
|
||||
if [ "$1" = "--all" ]; then
|
||||
all_contacts
|
||||
if [ "$2" = "--no-groups" ]; then
|
||||
all_contacts | grep -v '+.*+'
|
||||
else
|
||||
all_contacts
|
||||
fi
|
||||
elif [ "$1" = "--no-groups" ]; then
|
||||
contacts | grep -v '+.*+'
|
||||
elif [ "$1" = "--unknown" ]; then
|
||||
unknown_contacts
|
||||
elif [ "$1" = "--texted" ]; then
|
||||
|
@@ -63,7 +63,7 @@ dial_menu() {
|
||||
grep . <<EOF | sxmo_dmenu_with_kb.sh -p Number -i
|
||||
Close Menu
|
||||
More contacts
|
||||
$(sxmo_contacts.sh)
|
||||
$(sxmo_contacts.sh --no-groups)
|
||||
EOF
|
||||
)"
|
||||
|
||||
@@ -72,7 +72,7 @@ EOF
|
||||
NUMBER="$(
|
||||
grep . <<EOF | sxmo_dmenu_with_kb.sh -p Number -i
|
||||
Close Menu
|
||||
$(sxmo_contacts.sh --all)
|
||||
$(sxmo_contacts.sh --all --no-groups)
|
||||
EOF
|
||||
)"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user