Skip to content

Commit

Permalink
better readme and improved svn folder verification.
Browse files Browse the repository at this point in the history
  • Loading branch information
borissov committed May 15, 2017
1 parent ad3f79b commit d3412a8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
<b>nerdtree-svn-plugin</b><br/>
# nerdtree-svn-plugin
A plugin of NERDTree to show "commit" and "update" SVN commands in directory menu.
## demo
![NERDTree SVN Demo](https://raw.githubusercontent.com/borissov/nerdtree-svn-plugin/master/images/image_1.png)
Binary file added images/image_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion nerdtree_plugin/nerdthree-svn-plugin.vim
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ let g:loaded_nerdtree_svn_menuitem = 1

function! NERDTreeSvnDirectoryCheck()
let curNode = g:NERDTreeFileNode.GetSelected()
return curNode.path.isDirectory
if curNode.path.isDirectory
let output = system("svn info ".curNode.path.str() . g:NERDTreePath.Slash())
if output !~ "E155007"
return 1
endif
endif
return 0
endfunction


Expand Down

0 comments on commit d3412a8

Please sign in to comment.