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"
|
[ -f "$SXMO_CONTACTFILE" ] || touch "$SXMO_CONTACTFILE"
|
||||||
|
|
||||||
if [ "$1" = "--all" ]; then
|
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
|
elif [ "$1" = "--unknown" ]; then
|
||||||
unknown_contacts
|
unknown_contacts
|
||||||
elif [ "$1" = "--texted" ]; then
|
elif [ "$1" = "--texted" ]; then
|
||||||
|
@@ -63,7 +63,7 @@ dial_menu() {
|
|||||||
grep . <<EOF | sxmo_dmenu_with_kb.sh -p Number -i
|
grep . <<EOF | sxmo_dmenu_with_kb.sh -p Number -i
|
||||||
Close Menu
|
Close Menu
|
||||||
More contacts
|
More contacts
|
||||||
$(sxmo_contacts.sh)
|
$(sxmo_contacts.sh --no-groups)
|
||||||
EOF
|
EOF
|
||||||
)"
|
)"
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ EOF
|
|||||||
NUMBER="$(
|
NUMBER="$(
|
||||||
grep . <<EOF | sxmo_dmenu_with_kb.sh -p Number -i
|
grep . <<EOF | sxmo_dmenu_with_kb.sh -p Number -i
|
||||||
Close Menu
|
Close Menu
|
||||||
$(sxmo_contacts.sh --all)
|
$(sxmo_contacts.sh --all --no-groups)
|
||||||
EOF
|
EOF
|
||||||
)"
|
)"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user