mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 03:43:50 -05:00
update doc RE menu
This commit is contained in:
@@ -575,8 +575,10 @@ The NERD tree has a menu that can be programmed via the an API (see
|
|||||||
|NERDTreeMenuAPI|). The idea is to simulate the "right click" menus that most
|
|NERDTreeMenuAPI|). The idea is to simulate the "right click" menus that most
|
||||||
file explorers have.
|
file explorers have.
|
||||||
|
|
||||||
The script comes with one default menu plugin that adds some basic filesystem
|
The script comes with two default menu plugins: exec_menuitem.vim and
|
||||||
operations to the menu for creating/deleting/moving/copying files and dirs.
|
fs_menu.vim. fs_menu.vim adds some basic filesystem operations to the menu for
|
||||||
|
creating/deleting/moving/copying files and dirs. exec_menuitem.vim provides a
|
||||||
|
menu item to execute executable files.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
3. Customisation *NERDTreeOptions*
|
3. Customisation *NERDTreeOptions*
|
||||||
@@ -928,6 +930,22 @@ 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).
|
||||||
|
|
||||||
|
The script exposes some prototype objects that can be used to manipulate the
|
||||||
|
tree and/or get information from it: >
|
||||||
|
g:NERDTreePath
|
||||||
|
g:NERDTreeDirNode
|
||||||
|
g:NERDTreeFileNode
|
||||||
|
g:NERDTreeBookmark
|
||||||
|
<
|
||||||
|
See the code/comments in NERD_tree.vim to find how to use these objects. The
|
||||||
|
following code conventions are used:
|
||||||
|
* class members start with a capital letter
|
||||||
|
* instance members start with a lower case letter
|
||||||
|
* private members start with an underscore
|
||||||
|
|
||||||
|
See this blog post for more details:
|
||||||
|
http://got-ravings.blogspot.com/2008/09/vim-pr0n-prototype-based-objects.html
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
4.1. Key map API *NERDTreeKeymapAPI*
|
4.1. Key map API *NERDTreeKeymapAPI*
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user