update the API doc

This commit is contained in:
marty
2009-09-04 00:36:01 +12:00
parent effb5d4de0
commit 36e4402550

View File

@@ -928,10 +928,6 @@ The NERD tree script allows you to add custom key mappings and menu items via a
set of API calls. Any such scripts should be placed in ~/.vim/nerdtree_plugin/ set of API calls. Any such scripts should be placed in ~/.vim/nerdtree_plugin/
(*nix) or ~/vimfiles/nerdtree_plugin (windows). (*nix) or ~/vimfiles/nerdtree_plugin (windows).
NERDTreeRender() *NERDTreeRender()*
Re-renders the NERD tree buffer. Useful if you change the state of the
tree and you want to it to be reflected in the UI.
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
4.1. Key map API *NERDTreeKeymapAPI* 4.1. Key map API *NERDTreeKeymapAPI*
@@ -952,7 +948,7 @@ NERDTreeAddKeyMap({options}) *NERDTreeAddKeyMap()*
function! NERDTreeEchoCurrentNode() function! NERDTreeEchoCurrentNode()
let n = g:NERDTreeFileNode.GetSelected() let n = g:NERDTreeFileNode.GetSelected()
if n != {} if n != {}
echomsg 'Current node: ' . n.path.str(0) echomsg 'Current node: ' . n.path.str()
endif endif
endfunction endfunction
< <
@@ -994,7 +990,7 @@ NERDTreeAddMenuItem({options}) *NERDTreeAddMenuItem()*
"isActiveCallback" - a function that will be called to determine whether "isActiveCallback" - a function that will be called to determine whether
this menu item will be displayed or not. The callback function must return this menu item will be displayed or not. The callback function must return
0 or 1. 0 or 1.
"parent" - if a menu item belongs under a submenu then a parent key must be "parent" - if the menu item belongs under a submenu then this key must be
specified. This value for this key will be the object that specified. This value for this key will be the object that
was returned when the submenu was created with |NERDTreeAddSubmenu()|. was returned when the submenu was created with |NERDTreeAddSubmenu()|.
@@ -1042,6 +1038,11 @@ Where selecting "a (s)ub menu" will lead to a second menu: >
When any of the 3 concrete menu items are selected the function "SomeFunction" When any of the 3 concrete menu items are selected the function "SomeFunction"
will be called. will be called.
------------------------------------------------------------------------------
NERDTreeRender() *NERDTreeRender()*
Re-renders the NERD tree buffer. Useful if you change the state of the
tree and you want to it to be reflected in the UI.
============================================================================== ==============================================================================
5. About *NERDTreeAbout* 5. About *NERDTreeAbout*