Commit Graph

719 Commits

Author SHA1 Message Date
Martin Grenfell
0b551a8abd Merge pull request #346 from shanesmith/master
Fix <CR> not working if active node map is special char such as <Right>
2014-07-02 20:23:56 +01:00
Shane Smith
82cd4f5a9f Fix <CR> not working if active node map is special char such as <Right> 2014-07-01 20:29:52 -04:00
Martin Grenfell
b64942a500 uncomment out some needed syntax matching code... fail 2014-06-30 09:40:51 +01:00
Martin Grenfell
e954b2e6f8 trivial highlighting update for consistency 2014-06-29 21:44:40 +01:00
Martin Grenfell
e68e12a33b fix highlighting for readonly files 2014-06-29 21:44:19 +01:00
Martin Grenfell
b33d6daf0b remove the NERDChristmasTree option
If users want to customise the tree colours, this can be done trivially
in their vimrc. e.g.

    hi link NERDTreeFile error
2014-06-29 19:53:57 +01:00
Martin Grenfell
abb93879bb simplify the syntax matching code slightly 2014-06-29 19:53:30 +01:00
Martin Grenfell
634c23eadb Merge branch 'better_symlink_highlighting' into update_highlighting
Conflicts:
	syntax/nerdtree.vim
2014-06-29 18:28:28 +01:00
Martin Grenfell
9d9edd03d4 separate out syntax matching for Dir Arrows vs old style 2014-06-29 18:17:19 +01:00
Martin Grenfell
9704a38a14 update symlink highlighting
Previously we highlighted symlinks as one item (NERDTreeLink):

    symlinked_file -> /path/to/target

Split this out into 3 highlight groups:
    * NERDTreeLinkFile
    * NERDTreeLinkDir
    * NERDTreeLinkTarget

So we have:

    symlinked_dir/ -> /foo/bar
    -------------- ***********
         ^               ^
         |               |
    NERDTreeLinkDir   NERDTreeLinkTarget

Similarly for file links - with NERDTreeLinkFile instead of
NERDTreeLinkDir.

This allows users to modify how symlinks are highlighted. E.g. to make
them appear as normal files/dirs they could add this to their vimrc:

    hi link NERDTreeLinkFile NERDTreeFile
    hi link NERDTreeLinkDir NERDTreeDir
    hi link NERDTreeLinkTarget ignore
2014-06-29 16:23:58 +01:00
Martin Grenfell
55a8954c48 update the doc/quickhelp for :Bookmark
Make it clearer that the argument is optional.

Closes #229
2014-06-29 12:37:29 +01:00
Martin Grenfell
0b1166ff78 update code in readme to auto-open a tree on startup
Closes #242
2014-06-29 12:29:49 +01:00
Martin Grenfell
b2d2cc1840 Merge branch 'inkarkat-better-set-filetype' 2014-06-27 19:38:02 +01:00
Martin Grenfell
4b89264dfc Merge branch 'better-set-filetype' of https://github.com/inkarkat/nerdtree into inkarkat-better-set-filetype 2014-06-27 19:37:17 +01:00
Martin Grenfell
1168f58987 update the NERDTreeCascadeOpenSingleChildDir doc 2014-06-27 19:29:38 +01:00
Martin Grenfell
0928b5b026 Merge pull request #251 from pendulm/master
fix typo and smart close single child directory
2014-06-27 19:25:48 +01:00
Martin Grenfell
8189597c0b Merge pull request #266 from staeff/patch-1
Fixed typo in NERD_tree.txt
2014-06-26 22:53:21 +01:00
Martin Grenfell
9e54c48086 Merge pull request #299 from tophsic/master
Fix typo
2014-06-26 22:52:45 +01:00
Martin Grenfell
3863e69733 Merge pull request #316 from ZeroProbability/master
Issue 315 - Incorrect buffer deleted on file delete
2014-06-26 22:48:14 +01:00
Martin Grenfell
8b48413155 rename NERDTreeWildIgnore option and refactor the usage of it
Rename it to the more intention revealing NERDTreeRespectWildIgnore.

Use it directly in the `globpath()` call rather than surrounding if
statement. Its subjective, but I find this clearer.

Add an initializer for the option.
2014-06-26 10:02:42 +01:00
Martin Grenfell
186abb84c1 Merge pull request #303 from amarshall/wildignore
Add option to respect wildignore
2014-06-26 09:48:39 +01:00
Martin Grenfell
10ba84b1fc Merge pull request #308 from igrep/patch-1
correct invalid reference to MenuController
2014-06-26 09:40:01 +01:00
Martin Grenfell
a45304832b Merge pull request #295 from DanielleSucher/create_parent_directories_as_needed
Create parent directories as needed when creating or copying nested nodes
2014-06-26 09:35:02 +01:00
Martin Grenfell
dd8fe4bf69 Merge pull request #274 from an1zhegorodov/master
Fix help mistake
2014-06-26 09:30:48 +01:00
Martin Grenfell
e9427a9ca7 Merge pull request #326 from migueldvb/docs
Use pathogen.vim Helptags command in README file
2014-06-26 09:30:23 +01:00
Martin Grenfell
23d2d19846 Merge pull request #331 from jinnko/add-bookmarks-sort-flag
Add flag to disable/enable bookmark sorting
2014-06-26 09:27:58 +01:00
Martin Grenfell
1da2890856 Merge pull request #338 from trkoch/spaces-umlauts
Support spaces and umlauts in path
2014-06-26 09:23:20 +01:00
Martin Grenfell
47a3a84108 Merge pull request #340 from netj/sort-hidden-first-option
Option for mixing dot files when sorting
2014-06-26 09:18:44 +01:00
Jaeho Shin
43842e0de5 Option for mixing dot files when sorting
NERDTree can now optionally ignore the dot at the beginning of hidden
filenames for sorting to show them next to normal files if
`g:NERDTreeSortHiddenFirst` is set to 0.  (By default it's set to 1 to
preserve the current behavior.)  This is just like what GNU ls does when
`LC_COLLATE` environment variable is set to `en_US`.
2014-06-09 23:11:44 -07:00
Tristan Koch
fbab099fa9 Support space in path when renaming 2014-05-30 13:05:37 +02:00
Jinn Koriech
e38d8a8340 Add flag to disable/enable bookmark sorting
The bookmarks are normally sorted, however with a newly introduced
flag this can be disabled.
2014-04-24 15:51:55 +01:00
Miguel de Val-Borro
603e6c74f2 Use pathogen.vim Helptags command in README file 2014-04-08 13:03:50 -04:00
aramasamy
13b4058f2f Issue 315 - Incorrect buffer deleted on file delete 2014-02-21 00:46:15 +00:00
Yamamoto Yuji
ad4ebaac93 correct invalid reference to MenuController
I found an error when I tried to use [git_menu.vim](g:NERDTreeMenuController):

```
Error detected while processing function nerdtree#invokeKeyMap..91..90..<SNR>52_showMenu..65..82:
line    2:
E121: Undefined variable: s:MenuController
E15: Invalid expression: s:MenuController.New(self.children)
line    3:
E121: Undefined variable: mc
```

I searched the line at which it happened
then, I found that `s:MenuController` is not defined in  `menu_item.vim` but in menu_controller.vim .
So I corrected the name to refer to MenuController.
2014-02-01 20:56:40 +09:00
Andrew Marshall
a50c571929 Add option to respect wildignore 2013-12-07 00:10:46 -05:00
Christophe Sicard
4f48af0cb4 Fix typo 2013-11-06 15:41:25 +01:00
Rickard Karlsson
24561ad59c Ugly hack to fix Error 121 when NERDTree is the active window and clicking on the command line below another window. 2013-11-05 12:17:28 +01:00
Danielle Sucher
eacd5d72ec Create nested parent directories as needed
Allows the user to create or copy a nested node
in a single step with ma or mc, recursively
creating nested parent directories if needed, and
without throwing any errors if they already exist.

[Finishes #163, #34]
2013-10-12 20:18:43 -04:00
Anton Nizhegorodov
5b51f9d1ba Fix help mistake 2013-07-22 00:29:03 +03:00
Stephan Klinger
2ebe28468b Fixed typo in NERD_tree.txt 2013-05-28 00:20:15 +03:00
Martin Grenfell
b0bb781fc7 Merge pull request #263 from medvid/master
Fix spelling errors in documetation
2013-05-16 01:02:54 -07:00
Volodymyr Medvid
21af5e0abd fix spelling in documentation 2013-05-14 16:39:46 +03:00
Martin Grenfell
6697bb7bed Revert "don't redefine user-defined mappings"
This reverts commit 2fa35fb494.
2013-05-13 10:00:40 +01:00
Martin Grenfell
448ad6f1bc Merge pull request #255 from joshuarh/unique-mappings
don't redefine user-defined mappings
2013-05-06 01:53:37 -07:00
Josh Hoff
2fa35fb494 don't redefine user-defined mappings
As a user it's a little jarring when a plugin maps over something I've
already defined.  This patch fixes that problem, by using `<unique>` to
ensure unique mappings.

For more info see `:help <unique>`

Note: This has no effect if the mapping isn't already defined (that is,
NERDTree is defining a unique mapping), so this won't break for normal
users of the plugin.

Note: `:silent!` is needed to ignore the error that occurs when a
mapping is already defined.

Fixes #252
2013-04-25 21:34:36 -05:00
pendulm
6ef67a2d8e Add correspoding close action to cascade open single child dir 2013-04-22 23:39:26 +08:00
pendulm
60683f1cce Fix typo Casade to Cascade 2013-04-22 23:35:15 +08:00
Martin Grenfell
eaf19734e7 move the class files out of the plugin dir
On some new versions of vim these files were being loaded before the
main NERD_tree.vim which was causing errors as dependencies werent
loaded in time. Move the classes into lib - so vim wont try to load them
until we tell it
2013-04-13 20:32:25 +01:00
Martin Grenfell
9a341ec18f fix a bug where the user couldnt override the mapping for <cr> 2013-04-09 10:10:14 +01:00
Martin Grenfell
f93d2c79e5 fix NERDTreeCWD
Closes #233
2013-04-03 13:39:10 +01:00