I suppose you know what alfred-workflow is. This vim plugin is a collection of unite.vim extentions as a alternative to it.
Fetch recent github events of a certain user.
Fetch github timeline of a certain user(defaults to g:github_user).
Search for github repos by keywords.
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'
NOTE:This feature requires gist-vim.
List public gists created by a certain user(defaults to g:github_user). Actions:
- edit, open with
:Gist id
. - start, open in a browser.
Search for gists. Similar to gist-user.
Fetch hot topics from reddit.
use g:unite#workflow#reddit#front
to specify user front feed json url.
Should be like this https://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:
Twitter.
Available actions: tweet/retweet/reply/favorite.
- files/directories hierarchy list
- search
Search for wiki, list matching entries, open selected in a browser.
Search youtube, playlist/channel/video ...
Fast manpage access.
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
.
Note: You may need extra font packages for correct displaying. For example, arch users need ttf-symbola in AUR.
Search for emoji by description.
Latest topics of https://www.v2ex.com
有道词典/翻译
网易云音乐搜索
豆瓣 音乐/电影/图书
知乎日报
You need these plugins installed and loaded.
Suggested plugins:
- github-issues.vim for github issue editing/creating.
- gist-vim for gist sources.
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']
\ }
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 = 'https://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>
- 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.
- Bug report, feature request, other discussions are always welcome.
- Pull requests of new workflows are even better.
MIT