mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 11:53:48 -05:00
update the API doc
This commit is contained in:
@@ -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/
|
||||
(*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*
|
||||
|
||||
@@ -952,7 +948,7 @@ NERDTreeAddKeyMap({options}) *NERDTreeAddKeyMap()*
|
||||
function! NERDTreeEchoCurrentNode()
|
||||
let n = g:NERDTreeFileNode.GetSelected()
|
||||
if n != {}
|
||||
echomsg 'Current node: ' . n.path.str(0)
|
||||
echomsg 'Current node: ' . n.path.str()
|
||||
endif
|
||||
endfunction
|
||||
<
|
||||
@@ -994,7 +990,7 @@ NERDTreeAddMenuItem({options}) *NERDTreeAddMenuItem()*
|
||||
"isActiveCallback" - a function that will be called to determine whether
|
||||
this menu item will be displayed or not. The callback function must return
|
||||
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
|
||||
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"
|
||||
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*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user