Martin Grenfell
2027ae03db
remove NERDTree.previousBuf() and related code
...
We were using this when closing a wintree - to go to the previous
buffer. Not sure why we weren't just using `:bprev` ...
2016-10-19 13:28:44 +01:00
Phil Runninger
4477078170
Unlet! the nt variable before letting it.
...
Some will have a "NERDTree" buffer variable and others will not. In the
ones that do, getbufvar will return a dictionary. getbufvar will return
an empty string from the other buffers. When looping through the buffers,
let will throw an error if nt already exists and is a different type than
what is trying to be put into it. This easily can be illustrated by these
two statements:
:let x = ""
:let x = {}
E706: Variable type mismatch for: x
This commit gets rid of the variable before setting it so that the
mismatch cannot occur.
2016-10-17 10:30:33 -04:00
Martin Grenfell
84e7a77a7e
reuse win trees when editing the same dir again
...
If you do
```
:edit some/dir/
```
then do the same thing at a later point, then the same nerdtree buffer
will be loaded/shown the second time.
2016-10-14 16:34:08 +01:00
Łukasz Adamczak
2924ab2071
Verify we haven't reached root when traversing cascade
2016-06-22 13:59:49 +02:00
Łukasz Adamczak
c99312442b
Fix upward traversal when closing a cascade
2016-06-22 13:32:44 +02:00
brook hong
e2bbedff09
Fix #520 E716: Key not present in Dictionary: setShowHidden
2016-02-02 22:31:17 +08:00
Martin Grenfell
4ebbb533c3
silence bookmark errors on startup
...
Just disable the warning for now. The bookmark system will be replaced
with the project system soon - so no sense putting much effort into
this.
Closes #168
2015-12-02 21:17:22 +00:00
Martin Grenfell
665f326577
remove dependency on b:NERDTree from classes that dont need it
...
Inject it where needed.
2015-11-20 01:44:12 +00:00
Martin Grenfell
cedb40b4f5
move TreeFileNode.makeRoot() to NERDTree.changeRoot(node)
2015-11-16 13:17:59 +00:00
Martin Grenfell
d36b793656
dont use b:NERDTreeRoot internally, but leave the var there for compat
...
Use b:NERDTree.root instead. I will eventually remove b:NERDTreeRoot
altogether - but this will break some other plugins so leave it for now.
2015-11-16 11:28:24 +00:00
Martin Grenfell
0b966aa23a
refactor TreeDirNode.reveal slightly
2015-11-16 09:35:31 +00:00
Martin Grenfell
83d108894e
move a bunch of b:NERDTree.*
vars into the b:NERDTree.ui obj
2015-11-15 00:45:57 +00:00
Martin Grenfell
4d8a0c90cb
move b:NERDTreePreviousBuf into NERDTree class
2015-11-14 13:10:08 +00:00
Martin Grenfell
5c20274761
move b:NERDTreeType into the NERDTree class and add some query methods
2015-11-14 12:01:55 +00:00
Martin Grenfell
848857d18b
rename "primary" and "secondary" trees to "tab" and "window" trees
...
This is much more accurate and descriptive.
2015-11-14 11:50:01 +00:00
Martin Grenfell
4dada8c04f
update version number to 5.0.0
2015-11-13 16:57:21 +00:00
Igor Tatarintsev
dc29ec2db3
Added global variables for changing default arrows
...
g:NERDTreeDirArrowExpandable
g:NERDTreeDirArrowCollapsable
2015-09-11 23:52:37 +06:00
Igor Tatarintsev
188bd92658
Added global variables for changing default arrows
2015-09-11 23:44:06 +06:00
toiffel
93c9726c6d
Fixed case-sensitive sorting of tree nodes when 'ignorecase' option is on
2015-07-13 03:03:14 +06:00
Vincent Tsang
80e184df56
Refactor code to use getSortKey() and replace regular expression with
...
simple string comparison in tree_dir_node.vim
2015-05-11 11:56:08 +08:00
Vincent Tsang
57d5bd7731
Speed up sortChildren() by using sorting token
...
This improves the sorting functions from 12 seconds to 0.66 seconds for
~4000 objects
2015-05-09 22:47:33 +08:00
Martin Grenfell
a87b1bf3c5
Merge branch 'update_reuse_option'
2015-05-06 21:42:03 +01:00
Martin Grenfell
8b189cb263
move some rendering and cursor moving functions out of autoload
2015-05-02 15:24:59 +01:00
Martin Grenfell
b0114d202b
move dumpHelp out of autoload
2015-05-02 15:05:28 +01:00
Martin Grenfell
53d2de86eb
move the closeTree functions out of autoload
...
Remove `closeTreeIfOpen` and just make `closeTree` fail silently.
2015-05-02 15:03:54 +01:00
Martin Grenfell
0d88ce946f
move isTreeOpen() out of autoload
2015-05-02 14:44:32 +01:00
Martin Grenfell
8270b6d717
move nerdtree#getTreeWinNum out of autoload
2015-05-02 14:32:21 +01:00
Martin Grenfell
973c9906f8
refactor 3 more functions out of the monolithic autoload file
2015-05-02 14:17:52 +01:00
Martin Grenfell
f8499462c5
Revert "Use different arrow characters for compatibility."
...
This reverts commit f6cad7e957
.
2015-05-02 11:29:43 +01:00
Martin Grenfell
186f817f5a
Revert "fix one of the old style arrows"
...
This reverts commit b3281cc63e
.
2015-05-02 11:28:54 +01:00
Martin Grenfell
b3281cc63e
fix one of the old style arrows
...
See here: 1cbd52aa77
2015-05-01 16:01:26 +01:00
Martin Grenfell
87b27802b5
allow control over whether to reuse windows in different tabs
...
When opening a file we will "reuse" a window if the buffer is already
open somewhere.
Add an option to NERDTreeOpener to configure it to not reuse windows
across tabs.
2015-05-01 15:33:06 +01:00
Curtiss Howard
f6cad7e957
Use different arrow characters for compatibility.
2015-04-17 17:36:23 -04:00
Martin Grenfell
c2dd750860
move nerdtree#treeExists.* methods into the NERDTree class
2014-07-17 20:31:17 +01:00
Martin Grenfell
fd14757c04
add proper events and make the notifier class generic
...
Expand the event system to have explicit Event objects and potentially
many Notifiers. Previously they was only one notifier and one (implied)
event.
A lot of this is stolen from #358 .
2014-07-17 20:18:09 +01:00
Martin Grenfell
0c045d85ea
fix a bug from recent refactoring RE some NERDTreeCWD
2014-07-14 09:43:45 +01:00
Martin Grenfell
9f351de594
Merge branch 'master' into expt_add_path_flags_and_git
2014-07-09 09:26:17 +01:00
Martin Grenfell
1e0d1cbc8f
move some more view code into the UI class
2014-07-09 09:25:25 +01:00
Martin Grenfell
2f59cc2080
Merge branch 'master' into expt_add_path_flags_and_git
2014-07-08 09:47:38 +01:00
Martin Grenfell
eaa66aaf63
fix the NERDTreeFind command - broken in recent refactoring
2014-07-08 09:45:24 +01:00
Martin Grenfell
8644622000
Merge branch 'master' into expt_add_path_flags_and_git
...
Conflicts:
autoload/nerdtree.vim
lib/nerdtree/creator.vim
2014-07-08 09:38:43 +01:00
Martin Grenfell
23dfc6d818
continue breaking down the epic autoload module
...
Add 2 new classes and move code into them from autoload:
* NERDTree. Each nerdtree buffer now has a NERDTree object that holds
the root node and will old other util functions
* UI. Each NERDTree object holds a UI object which is responsible for
rendering, getting the current node, etc
Still a fair few methods to sort through in autoload (many of which will
end up in the above classes) - need sleep though.
2014-07-07 22:59:28 +01:00
Martin Grenfell
f982f61e8a
continue breaking up the autoload/nerdtree god module
2014-07-07 21:34:57 +01:00
Martin Grenfell
86488b1aa0
move ui functions out into their own autoload
...
All of the autoload shit needs to be cleaned up... break it out first
2014-07-07 19:36:34 +01:00
Martin Grenfell
32cf3ee62d
allow flags to be scoped to a plugin
...
Add new FlagSet class and init each Path with one.
Call Path.flagSet.addFlag(scope, flag) instead of Path.addFlag(flag)
2014-07-05 20:51:21 +01:00
Martin Grenfell
a7428eba38
add proof of concept for path flags API and add git modified flags
2014-07-05 00:29:45 +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
pendulm
6ef67a2d8e
Add correspoding close action to cascade open single child dir
2013-04-22 23:39:26 +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
f93d2c79e5
fix NERDTreeCWD
...
Closes #233
2013-04-03 13:39:10 +01:00