Friday, March 23, 2012

Re: Present output of external script in dropdown

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 23/03/2012 06:17, Christian Brabandt wrote:
> On Thu, March 22, 2012 10:42, Jostein Gogstad wrote:
>> I'm using Vim as my default text editor for writing e-mail. I
>> have an external perl script that does LDAP-lookup and outputs a
>> list of names matching the search query. Is it possible to
>> present this list in Vim? Preferably in a dropdown like the one
>> you get on keyword completion (default Ctrl+N).
>>
>> Ideal scenario: 1. Start writing Paul 2. Hit ^T (or something) 3.
>> Vim executes perl script with the word under the cursor and
>> displays the result in a keywordcompletion-style dropdown.
>
> I use something similar. Basically, for looking up e-mail
> contacts, I use The little Brother's Database lbdbน together with
> mutt and Vim. Additionally Vim Script 1757ฒ plus a custom complete
> script that I found online somewhere, but don't find it anymore (so
> I attach it here)
>
> The lbdb comes with a little script lbdbq that can query different
> sources, e.g. mutt alias file, abook file, OS X adressbook, ldap
> server, etc. to query for contacts so in theory it should be able
> to query your own ldap server, but if that does not work for you,
> it should at least give you an starter how to write your own
> script.
>
> น)http://www.spinnaker.de/lbdb/
> ฒ)http://www.vim.org/scripts/script.php?script_id=1757


There is also a link I found which is primarily for mutt & Vim made by
its author for OS X but can be adjusted that as well as incorporating
lbdb, uses several other utilities (urlview, Mairix & Mailcap) to
handle grabbing urls & sending them to mutt, a search tool & the
handling of attachments all using Vim as the editor (well, in my case ;-)

Cheers,

Phil...

- --
But masters, remember that I am an ass.
Though it be not written down,
yet forget not that I am an ass.

Wm. Shakespeare - Much Ado About Nothing


-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: ยงauto-key-locate cert pka ldap hkp://keys.gnupg.net
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPbDVAAAoJEKpMeDHWT5ADtK0H/03gD4sEhCPX0AEYlSn3IN1c
qvjUIVgSbfV/lt1j7yN8mGA3CFW9IpHiijwkRYfEQsJnjuSUhCPQQ+C8k6kfqD1w
tU2KZxWW9TX8urVp0FipRA6Br941TXvI5meeVqSsrYR9occ0KY2Zz2XcDZEmBdd1
nOoc1UOrJtLZVHjjtDTu1a6fHHOJiY6iLkTUyi0pmlWo8EPrXVtbiKFPeScNLELN
lipSExgDG3mruCgSeorwEyppdpN5NPsCl/F7n8/yCXM/FlRX9nrg8V5kk7dIacyv
Uk22/BLhFZfNRb0tTrCQL1Jzq+vASiy78NDC9xTxnbWsS5aL7YDvJP4q05zgrUo=
=26zV
-----END PGP SIGNATURE-----

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: