Created
September 6, 2012 13:50
-
-
Save daisuzu/3656454 to your computer and use it in GitHub Desktop.
unite custom action(dirdiff)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NeoBundle 'vim-scripts/DirDiff.vim.git' | |
let dirdiff_action = { | |
\ 'description' : 'DirDiff with the other candidate', | |
\ 'is_selectable' : 1, | |
\ } | |
function! dirdiff_action.func(candidates) | |
if len(a:candidates) == 2 | |
" :DirDiff with selected candidates | |
call unite#util#smart_execute_command('tabnew', '') | |
execute ':DirDiff ' . a:candidates[0].action__path . ' ' . a:candidates[1].action__path | |
endif | |
endfunction | |
call unite#custom_action('directory', 'dirdiff', dirdiff_action) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment