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
a0de028688
wipeout "stale" nerdtree bufs
...
When :NERDTree is called several times and &hidden is set, stale
nerdtree bufs will exist. Wipe them out.
2015-11-19 23:44:39 +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
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
47c20c4b64
Merge pull request #378 from Xuyuanp/up/master
...
fix #363
2015-11-12 14:29:12 +00: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
xiaodili
6dfbcd660a
Return early if exception was thrown in pathForString
2014-12-21 17:44:41 +00:00
Xuyuan Pang
8e06723c04
fix #363
2014-09-01 17:32:59 +08:00
Martin Grenfell
c2dd750860
move nerdtree#treeExists.* methods into the NERDTree class
2014-07-17 20:31:17 +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
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
Lucas Caton
1784de15dd
Updating creator.vim file (this fixes #352 )
2014-07-08 10:57:39 +10: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
a7428eba38
add proof of concept for path flags API and add git modified flags
2014-07-05 00:29:45 +01:00
Martin Grenfell
0ee888ee17
simplify the <cr> mapping definition
2014-07-02 20:25:17 +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
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
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