nerdtree/lib/nerdtree
Chris Patuzzo 84737f2ebe Add a NERDTreeMinimalMenu feature (#938)
* Extract the menu action prompts to a function

* Add a NERDTreeMinimalMenu configuration option

If this option is set, Vim’s command line displays
a single-line version of the menu:

Which action? (a*/m/d/r/o/q/c/l):

Pressing ‘a’ will call the ‘add child node’ menu
item as that is its shortcut.

The * denotes the position of the currently
selected menu item which can be changed with
NERDTreeMenuDown and Up in the usual way.

The user may wish to set these to <left>, <right>
or h, l if they prefer.

* Minimise the text once a menu item is chosen

If NERDTreeMinimalMenu is set, then echo a single
line prompt after the menu item is chosen. This
reduces noise for users who are already familiar
with how the menu works and prevents Vim scrolling
down to accommodate the menu text.

If the directory is non-empty we display
‘Delete directory?’ instead of ‘Delete?’ and the
user must still type ‘yes’ to confirm, rather than
just pressing ‘y’.

* Document the new NERDTreeMinimalMenu feature

* Tweak the format for the minimal menu prompt

As per @PhilRunninger’s suggestions:

- The menu now shows the ‘j/k/enter’ help text
- The first word of the selected item is shown*
- Use commas between menu items so that it’s
  visually distinct from the ‘j/k/enter’ text

* I tried displaying the full menuItem text, but
this can be quite long, e.g.

> (o)pen the current node with system editor

This causes the menu to jump around a lot. We
could add another minimal versions of these, but
I think the first word seems ok for now.
2019-02-24 18:01:12 -05:00
..
bookmark.vim Add new value to NERDTreeQuitOnOpen to close bookmark table (#955) 2019-02-21 07:47:15 -05:00
creator.vim Add an :EditBookmarks command to edit the bookmarks file (#954) 2019-02-20 23:57:51 -05:00
event.vim add proper events and make the notifier class generic 2014-07-17 20:18:09 +01:00
flag_set.vim Add modelines 2017-12-17 08:43:43 -05:00
key_map.vim Escape a backslash so it can be used in a key mapping. (#948) 2019-02-14 15:28:30 -05:00
menu_controller.vim Add a NERDTreeMinimalMenu feature (#938) 2019-02-24 18:01:12 -05:00
menu_item.vim correct invalid reference to MenuController 2014-02-01 20:56:40 +09:00
nerdtree.vim Add new value to NERDTreeQuitOnOpen to close bookmark table (#955) 2019-02-21 07:47:15 -05:00
notifier.vim Add modelines 2017-12-17 08:43:43 -05:00
opener.vim Add new value to NERDTreeQuitOnOpen to close bookmark table (#955) 2019-02-21 07:47:15 -05:00
path.vim fixed root path error for windows (#935) 2019-02-01 07:50:55 -05:00
tree_dir_node.vim Restore getDirChildren for use in nerdtree-project-plugin. (#929) 2018-12-11 22:44:55 -05:00
tree_file_node.vim Support unusual characters in file and directory names (#868) 2018-10-24 22:41:13 -04:00
ui.vim Preview bookmarks (#956) 2019-02-22 08:21:20 -05:00