Permalink
Browse files

- Added open action in neobundle-vim-scripts source.

  • Loading branch information...
1 parent f3c0d4b commit f253e4c02dbe3f9209b5dff4e871ad22dd45d543 @Shougo committed Oct 13, 2012
@@ -1,7 +1,7 @@
"=============================================================================
" FILE: neobundle_vim_scripts.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
-" Last Modified: 09 Oct 2012.
+" Last Modified: 13 Oct 2012.
" License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the
@@ -48,6 +48,7 @@ function! s:source.gather_candidates(args, context)"{{{
\ 'source__script_type' : v:val.script_type,
\ 'source__options' : v:val.options,
\ 'source__path' : v:val.path,
+ \ 'action__path' : v:val.receipe_path,
\ 'action__uri' : v:val.website,
\ }")
endfunction"}}}
@@ -70,6 +71,8 @@ function! s:get_repository_plugins(context)"{{{
continue
endif
+ let data.receipe_path = path
+
" Initialize.
let default = {
\ 'options' : {},
@@ -1,7 +1,7 @@
"=============================================================================
" FILE: neobundle_search.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
-" Last Modified: 09 Oct 2012.
+" Last Modified: 13 Oct 2012.
" License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the
@@ -136,8 +136,7 @@ let s:source.action_table.install = {
\ }
function! s:source.action_table.install.func(candidates)"{{{
for candidate in a:candidates
- execute 'NeoBundleDirectInstall'
- \ s:get_neobundle_args(candidate)
+ execute 'NeoBundleDirectInstall' s:get_neobundle_args(candidate)
endfor
endfunction"}}}
"}}}
@@ -162,8 +161,10 @@ function! s:source.source__converter(candidates, context)"{{{
\ candidate.source__script_type,
\ (neobundle#is_installed(candidate.source__name) ?
\ 'Installed' : candidate.source__description))
- let candidate.action__path = candidate.action__uri
let candidate.is_multiline = 1
+ let candidate.kind =
+ \ get(candidate, 'action__path', '') != '' ?
+ \ 'file' : 'common'
endfor
return a:candidates
View
@@ -674,6 +674,7 @@ neobundle/search *unite-action-neobundle-search*
yank Yank plugin settings(Default action)
install Direct install plugins from repository.
start Browse github plugin page
+ open Open receipe file
Note: If you used the install action, you cannot customize the bundle
settings.
@@ -770,6 +771,7 @@ CHANGELOG *neobundle-changelog*
2012-10-13
- Improved log command in git.
- Added type__update_style attribute in git.
+- Added open action in neobundle-vim-scripts source.
2012-10-09
- Improved neobundle/search source.

0 comments on commit f253e4c

Please sign in to comment.