Martin Grenfell
c800aa27e2
fix a bug with C mapping
...
Closes #512
2015-11-26 09:27:44 +00:00
Martin Grenfell
a60bd34a33
add NERDTree.getroot()
...
Eventually 'root' will become a "private" instance var '_root'
2015-11-20 16:16:12 +00:00
Martin Grenfell
c4f8681b77
add NERDTree.getRoot() and NERDTree.ForCurrentTab()
2015-11-20 01:52:38 +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
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
64a9579c11
add a path filter API
...
Add an API to allow custom "path filter callbacks" to be added.
Previously we allowed one path filtering function to exist called
`NERDTreeCustomIgnoreFilter`. This has been removed and replaced with an
API to allow any number of such functions to exist - via the new
`NERDTreeAddPathFilter()`
2015-05-02 22:21:41 +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
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
c2dd750860
move nerdtree#treeExists.* methods into the NERDTree class
2014-07-17 20:31:17 +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