Skip to content
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

move / copy / show multiple contacts at once #240

Open
Tonus1 opened this issue Jan 8, 2020 · 2 comments
Open

move / copy / show multiple contacts at once #240

Tonus1 opened this issue Jan 8, 2020 · 2 comments

Comments

@Tonus1
Copy link

Tonus1 commented Jan 8, 2020

Hi,
I do not know any python so do not know if it would be difficult :
Can we have the possibility to select multiples indexes to move / copy / show multiple contacts at once ?

Like that :

Select contact to Copy
Address book: default
Index    Name                                Phone                        E-Mail                                  
1        A
2        B
3        C
4        L
5        H
6        R
7        K
8        U
9        P
10       L
11       L
Enter Index (q to quit):1,4,7-8
@lucc
Copy link
Owner

lucc commented Jan 8, 2020

This sounds like a nice idea, I will look into it but it might take some time until I come to it.

@Tonus1
Copy link
Author

Tonus1 commented Jan 8, 2020

I believe it's this code

    # get the source vcard, which to copy or move
    source_vcard = choose_vcard_from_list(
        "Select contact to {}".format(action.title()), vcard_list)
    if source_vcard is None:
        sys.exit("Found no contact")
    else:
        print("{} contact {} from address book {}".format(
            action.title(), source_vcard, source_vcard.address_book))

between lines 1144 to 1151.

It's a long time I'm thinking about learning some python... If I find some time and energy I will give it a try !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants