-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ordering phone entries #175
Comments
Did you try to use the |
@lucc I don't get how to set this tag using khard... You mean the same
|
Please try out the latest code from develop. From the change log:
Set the preferred_phone_number_type in the config file at the "contact table" section:
Have a look into khard's example config file at misc/khard/khard.conf.example for more details. |
It seems to work great. I would have prefered to be able to sort the phone number types (cell > home > work > ...), but I guess I can live without. |
Just to be sure, how do you set the |
And is it possible to set a number to pref (for example |
Now that the general idea is approved I will add a similar setting for the email address just for completion. |
preferred_phone_number_type extended to hold a list of types instead of a single one
|
I tested your code, with the following setting:
And a contact with:
khard "my contact" returns the cell number, so there seems to be an issue somewhere... |
Woops, my mistake... I ran the wrong version of |
Thanks! |
Ok, I set your type list: Then I created the following vcard:
Then I listed all phone numbers with
The "phone" action should list all available matching phone numbers - therefore so far so good. And now the contact table with
Here you get the work phone number cause "pref" was the first type in preferred_phone_number_type. If you only enter |
No, that's the expected behaviour, I think we are in total agreement :-). As I said, I just ran the wrong version of khard. |
Oh, some message overlapping ... Now I see your previous message about the wrong khard version too. |
It would be nice to be able to change the ordering of phone number entries.
Right now,
khard SEARCH
will only display one phone number per contact, which is OK for me, but I would like to specify which number should be displayed if several are available (for example,cell > home > work > fax > ...
).The text was updated successfully, but these errors were encountered: