Re: Problem with completefunc and lists

2018-04-23 Thread David Woodfall
On Monday 23 April 2018 10:52, Dave Woodfall put forth the proposition: On Monday 23 April 2018 10:06, Dave Woodfall put forth the proposition: I made a custom completefunc for email addresses from the tip here: https://gitlab.com/muttmua/mutt/wikis/ConfigTricks fun! CompleteEmails(findstart,

Re: Problem with completefunc and lists

2018-04-23 Thread David Woodfall
On Monday 23 April 2018 10:06, Dave Woodfall put forth the proposition: I made a custom completefunc for email addresses from the tip here: https://gitlab.com/muttmua/mutt/wikis/ConfigTricks fun! CompleteEmails(findstart, base) if a:findstart let line = getline('.') let start = col('.') - 1

Problem with completefunc and lists

2018-04-23 Thread David Woodfall
I made a custom completefunc for email addresses from the tip here: https://gitlab.com/muttmua/mutt/wikis/ConfigTricks fun! CompleteEmails(findstart, base) if a:findstart let line = getline('.') let start = col('.') - 1 while start > 0 && line[start - 1] =~ '[^:,]' let start -= 1