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:
Peter John Hartman
2023-02-23 18:57:25 -06:00
parent 10371a66c0
commit f8c9138739
2 changed files with 9 additions and 3 deletions

View File

@@ -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

View File

@@ -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