blindFS / unite-workflow

unite.vim extentions for convenience similar to alfred-workflow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ci

What the hell?

I suppose you know what alfred-workflow is. This vim plugin is a collection of unite.vim extentions as a alternative to it.

github events

ge

Fetch recent github events of a certain user.

github feeds

Fetch github timeline of a certain user(defaults to g:github_user).

github repository searching

Search for github repos by keywords.

github issues

NOTE:

  • In order to edit issues or create new issue, you'll need github-issues.vim
  • The default repository(if input omitted) is fetched by git remote -v.
  • You could use input to specify a certain project, in the format of 'owner/repo'

gi

gist user

NOTE:This feature requires gist-vim.

gu

List public gists created by a certain user(defaults to g:github_user). Actions:

  • edit, open with :Gist id.
  • start, open in a browser.

gist searching

Search for gists. Similar to gist-user.

reddit

Fetch hot topics from reddit. use g:unite#workflow#reddit#front to specify user front feed json url. Should be like this http://www.reddit.com/.json?feed={hash}&user={username}. If not, the fetching scope will be 'all'. If used with input, the input is taken as subreddit like this:

re

twitter

Twitter.

Available actions: tweet/retweet/reply/favorite.

tw

dropbox

  • files/directories hierarchy list
  • search

db

wikipedia

Search for wiki, list matching entries, open selected in a browser.

youtube

Search youtube, playlist/channel/video ...

apropos

Fast manpage access.

ap

toilet

Note: this feature requires executable 'toilet' or 'figlet'.

Use g:unite#workflow#figlet_fonts#dir to specify where the fonts are stored, defaults to /usr/share/figlet.

tl

emoji

Note: You may need extra font packages for correct displaying. For example, arch users need ttf-symbola in AUR.

Search for emoji by description.

em

v2ex

Latest topics of http://www.v2ex.com

v2

youdao

有道词典/翻译

yd

music163

网易云音乐搜索

163

douban

豆瓣 音乐/电影/图书

db

zhihu

知乎日报

turing

图灵机器人

Installation

You need these plugins installed and loaded.

Suggested plugins:

Then just use your preferred managing tool for this plugin. If you'd like to load just a part of these features. I suggest that you use neobundle.vim:

NeoBundleLazy 'farseer90718/unite-workflow', {
            \ 'unite_sources' : [ your-list ],
            \ 'depends' : [
            \   'mattn/webapi-vim',
            \   'mattn/gist-vim',
            \   'jaxbot/github-issues.vim']
            \ }

Customization

  • g:unite#workflow#show_icon 0 to disable avatar display.
  • g:unite#workflow#reddit#front as described above.
  • g:unite#workflow#figlet_fonts#dir as described above.
  • g:unite#workflow#player defaults to 'mplayer'.

Example:

let g:unite#workflow#reddit#front = 'http://www.reddit.com/.json?feed=foo&user=bar'
call unite#custom#profile(
            \ 'source/github/search, source/github/event, '.
            \ 'source/github/feed, source/gist/search, '.
            \ 'source/gist/user, source/v2ex, '.
            \ 'source/reddit, source/wikipedia',
            \ 'context', {
            \   'keep_focus' : 1,
            \   'no_quit' : 1
            \ })
call unite#custom#profile(
            \ 'source/youdao, source/toilet',
            \ 'context', {
            \   'max_multi_lines' : 20,
            \   'winheight' : 20
            \ })
nnoremap <leader>t  :Unite youdao:<C-R><C-W><CR>

Tips

  • Press <C-L> to refresh (change input in a faster way) in some sources.
  • Some sources may have specialized actions, you can check the action list to find out.

Contributing

  • Bug report, feature request, other discussions are always welcome.
  • Pull requests of new workflows are even better.

License

MIT

About

unite.vim extentions for convenience similar to alfred-workflow


Languages

Language:Vim Script 99.7%Language:Ruby 0.3%