boysetsfrog / vimpc

Official repository for vimpc a vi/vim inspired client for the Music Player Daemon (mpd). Pull requests are welcome.
GNU General Public License v3.0
269 stars 34 forks source link

scripting capability #34

Closed noc7c9 closed 9 years ago

noc7c9 commented 10 years ago

Are there any plans to add scripting capabilities? For example via embed python or similar?

A rough example of what I mean being something like a rudimentary lyrics fetcher

alias lyrics python GetLyrics()

python << EOF
def GetLyrics():
    import vimpc, lyrics
    song = vimpc.get_playing()
    tab = vimpc.open_new_tab()
    tab.name = 'Lyrics - ' + song.name
    tab.data = lyrics.fetch(song.name)
EOF

...or something like that. Would be a pretty hefty addition though, so your call of course.

connermcd commented 9 years ago

There is now a lyrics fetcher built in and I don't think scripting capability is in the plans for this project. Thanks for your suggestion!