vim-rdio


Ⅰ. 插件描述

:musical_note: Control Rdio from Vim (no longer maintained :cry:)

Ⅱ. 基本信息

创建日期:  2014-11-08
使用用户:  1
Github星:  7
插件作者:  Gabe Berke-Williams

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'gabebw/vim-rdio'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'gabebw/vim-rdio'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'gabebw/vim-rdio'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/gabebw/vim-rdio

Ⅳ. 文档说明

# Control Rdio from Vim

No longer maintained

Unfortunately Rdio has shut down, so this
plugin is no longer maintained. :cry:

The old README, from when Rdio was a Thing

potentially as useful as [Fugitive]

— Someone on the internet

Requirements:

  • OS X Yosemite, since it uses Yosemite's [Javascript for Automation] extensively
  • fzf (brew install fzf), with the Vim plugin set up
  • fzf requires the curses Rubygem: gem install curses
  • You must be using Google Chrome or Safari (Firefox's Applescript does not
    support sending JS to a tab)

Usage

Install this plugin with your preferred Vim plugin manager, like [Vundle] or
[pathogen].

Now you have some neat Vim commands:

  • :RdioPlaylists, which lets you fuzzy-find through your Rdio playlists
  • :RdioPlayPause, which plays/pauses Rdio
  • :RdioNext, which goes to the next track
  • :RdioFavorites, which plays only your favorited tracks

You might want to add [mappings] for them:

nnoremap <Leader>rp :RdioPlayPause<CR>
nnoremap <Leader>rl :RdioPlaylists<CR>
nnoremap <Leader>rn :RdioNext<CR>
nnoremap <Leader>rf :RdioFavorites<CR>

Development

  • The plugin/ directory contains rdio.vim, which is not auto-generated, and
    plugin/applescripts/, which is auto-generated
  • The js/ directory contains JS which is minified as part of the build process
  • The applescripts/ directory contains files which use Erb to bring in and
    minify the JS, then are copied to plugin/applescripts/.

To re-generate the files in plugin/applescripts/, run rake. Don't edit them
directly.

添加新评论