Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* lbdb module for sup
@ 2009-09-07 16:21 Gaute Hope
  2009-09-07 16:21 ` [sup-talk] " Gaute Hope
  2009-09-08 20:45 ` William Morgan
  0 siblings, 2 replies; 3+ messages in thread
From: Gaute Hope @ 2009-09-07 16:21 UTC (permalink / raw)
  To: sup-talk


[-- Attachment #1.1: Type: text/plain, Size: 320 bytes --]

Greetings,

attached is a lbdb (http://sup.rubyforge.org/wiki/wiki.pl?LbdbIntegration)
module for the sup contact list. Useful if you want access to the sup
contact list from Vim.

put in .lbdb/modules and add .lbdb/modules to your MODULES_PATH in
.lbdbrc aswell as adding the m_sup module to the modules list.

- gaute

[-- Attachment #1.2: m_sup --]
[-- Type: application/octet-stream, Size: 289 bytes --]

#! /bin/bash

m_sup_query ()
{
    contactfile=~/.sup/contacts.txt

    grep -i "$@" ${contactfile} | sed -e 's/.*: //' | while read contact; do
        email=${contact#*<}
        email=${email%>}

        name=${contact%% <*}

        echo -e ${email}"\t"${name}"\t\t"m_sup
    done

}


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-09-08 20:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-07 16:21 lbdb module for sup Gaute Hope
2009-09-07 16:21 ` [sup-talk] " Gaute Hope
2009-09-08 20:45 ` William Morgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox