hugosenari / Kupfer-Plugins

My kupfer plugins install with Kupfer
https://github.com/kupferlauncher/kupfer/
11 stars 2 forks source link

LibFolks: Handle mutiple email ids for a eds contact #9

Open khurshid-alam opened 7 years ago

khurshid-alam commented 7 years ago

Workflow

  1. If a contact has more than 1 email-id, "compose email" will populate a third object pane in kupfer listing all the emails belong to that particular contact.

  2. User can then select a particular email to send a mail.

hugosenari commented 7 years ago

leaf.object['email_addresses'] has all emails but only first is set as leaf.object[EMAIL_KEY].

khurshid-alam commented 7 years ago

@hugosenari And what about id? How do I acces it from leaf? leaf.object itself should have individual id of the contact. No?

hugosenari commented 7 years ago

You can get it from leaf.folk.get_id()

hugosenari commented 7 years ago

What if instead of one Leaf per Folk, we yield one Leaf per Information and group them by name/id?

Ie Hugo Sena Ribeiro:

khurshid-alam commented 7 years ago

Yes It can be done, but it has to be grouped by id.

But one leaf/information will results into too much leafs and may slow down the launcher