Commit Graph

1161 Commits

Author SHA1 Message Date
Martin Grenfell
2eff928e7c some cosmetic updates to the class files
* fix the fold markers (they were unnecessarily deep)
* always have one line under each method
* update some of the fold comments -> always use FUNCTION in all caps
* add a modeline to each class file
2013-01-05 12:30:07 +00:00
Martin Grenfell
a7d5b3dbc1 fix the <enter> mapping
It now acts the same as the ActivateNode mapping ('o' by default) again.
This was broken in the big refactor.

Fixes #222
2013-01-05 11:58:36 +00:00
Martin Grenfell
cc0777b792 move KeyMap_Invoke into the autoload file
This will keep the class file cleaner, and may also fix #223
2013-01-05 11:44:48 +00:00
Martin Grenfell
8a984260e7 manually apply #220 to fix NERDTreeFind for hidden dirs 2013-01-05 01:48:13 +00:00
Martin Grenfell
370f180ca0 replace a script level var with a query 2013-01-05 01:47:20 +00:00
Martin Grenfell
fb4a5a116a decompose the giant NERD_tree.vim file
* Move the classes out into `plugin/nerdtree/<classname>`.
* Move the other functions out into `autoload/nerdtree.vim`.

Stuff still to do:

* extract out at least one view class from `autoload/nerdtree` -
  something like NERDTreeWindow
* figure out which functions in autoload/nerdtree should be scoped to
  the script instead of public
2013-01-05 01:08:06 +00:00
Martin Grenfell
1817ccdb57 Merge pull request #219 from felipebueno/master
A question asked by many VIM / NERDTree newcomers
2013-01-02 05:08:06 -08:00
Felipe Bueno
154f7aae7b Added a frequently asked question to README 2012-12-31 16:15:55 -02:00
Martin Grenfell
3a8310a60b Merge pull request #213 from cperl82/fixes
Fix s:Path.Resolve to it handles '/' properly
2012-12-10 12:26:44 -08:00
Chris Perl
bb1390c0c7 Fix s:Path.Resolve to it handles '/' properly 2012-12-10 14:44:01 -05:00
Martin Grenfell
1dc3891f96 Merge pull request #204 from techlivezheng/feature/chrootcwd
Add a NERDTreeCWD command to change tree root to CWD
2012-11-12 02:10:45 -08:00
Martin Grenfell
dff80ff7d0 Merge pull request #203 from techlivezheng/feature/find-in-existing-window
Reveal the current editing file in current NERDTree window instaead initiating a new one
2012-11-12 02:06:22 -08:00
Martin Grenfell
30a770aab0 add Path.isUnixHiddenFile and refactor to use it 2012-11-12 10:01:15 +00:00
Martin Grenfell
36cd8bfea7 Merge pull request #202 from techlivezheng/feature/find-hidden-file
Make NERDTreeFind work on hidden files
2012-11-12 01:57:46 -08:00
Techlive Zheng
072d46880a Add a NERDTreeCWD command to change tree root to CWD 2012-11-05 19:11:44 +08:00
Techlive Zheng
c59ac8fba1 Make NERDTreeFind use an existing NERDTree window 2012-11-05 01:25:11 +08:00
Techlive Zheng
ce6c347f85 Make NERDTreeFind work on hidden files 2012-11-05 01:25:11 +08:00
Martin Grenfell
22de74a45b Merge pull request #200 from hpesoj/master
NERD tree doesn't currently work on Vim 7.2 and below.
2012-10-31 04:02:45 -07:00
Joseph Thomson
16268c9c21 Fix call to globpath() for Vim 7.2 and below.
globpath() takes an extra optional parameter in Vim 7.3, but this
breaks NERD tree on earlier versions.
2012-10-29 16:30:29 +00:00
Martin Grenfell
3e44d4ea5c Merge pull request #191 from ZeusTheTrueGod/master
Improve handling obsolete buffers when renaming or deleting a file via the NERDTree 'm' menu
2012-10-18 01:11:35 -07:00
Martin Grenfell
d62180d0ff Merge pull request #150 from cperl82/issue-144
Replace virtcol() with len() in handleLeftClick().
2012-10-15 05:55:21 -07:00
Martin Grenfell
bf79e223ae Merge pull request #196 from mark-rushakoff/master
Fix typo in copy action
2012-10-03 13:03:09 -07:00
Mark Rushakoff
92a31a6fb2 Fix typo in copy action 2012-10-03 12:39:56 -07:00
ZeusTheTrueGod
6b687977d9 Better handling file renaming and deleting
If you are renaming a file via the mm hotkey and it is already opened then all
tabs and windows containing the old file will be replaced with a
new file. Current tab and windows structure is not changed anymore

If you are deleting a file via the md hotkey and it is already open, i.e.
presents in buffer lists then a buffer will be removed but a window and tab
will be kept with a ':enew' file
2012-08-26 13:23:06 +00:00
ZeusTheTrueGod
0a16b24268 Better flow for renaming and deleting files
Previously when you delete or moved a file via
md or mm commands the NERDTree was asking you about what to do
with the remaining buffer of the just deleted or moved file. I
always press 'y' in this cases so I've decided to add a new parameter,
NERDTreeAutoDeleteBuffer which you can set to 1 in order to skip
this confirmation.
2012-08-26 11:56:45 +00:00
Martin Grenfell
a1433c485e update the doc for NERDTreeCasadeOpenSingleChildDir 2012-07-05 15:56:11 +01:00
Martin Grenfell
b64f4428c1 default NERDTreeCasadeOpenSingleChildDir to 1 2012-07-05 15:51:13 +01:00
Martin Grenfell
e7b663fe94 Merge pull request #180 from pendulm/master
For recusive open single directory child
2012-07-05 07:40:19 -07:00
pendulm
29e687978b add option NERDTreeCasadeOpenSingleChildDir and function
TreeDirNode.openAlong for Issues #179.
2012-07-05 22:26:57 +08:00
Martin Grenfell
dbeb1947ea Merge pull request #172 from stephenprater/master
Files matching wildignore patterns are not shown in NERDTree
2012-06-30 01:59:22 -07:00
Martin Grenfell
cdb31d423c Merge pull request #178 from franksort/master
Fixed a typo. changing s:clearBoomarks to s:clearBookmarks in plugin/NERD_tree.vim.
2012-06-30 01:57:34 -07:00
Frank S
87208d210b Fixed typo. changing s:clearBoomarks to s:clearBookmarks. 2012-06-27 20:07:52 -07:00
A.G. Russell Knives
121607b351 ignore wildignore setting 2012-06-14 09:57:24 -05:00
Martin Grenfell
2cb0fc78fb add autocmds for fugitive integration
Add 2 autocmds - NERDTreeInit and NERDTreeNewRoot. These are called when
a tree is created and when the root is changed. The goal is to give the
fugitive plugin something to listen for so it can add the G* commands to
nerdtree buffers in git repo dirs.
2012-04-02 14:51:19 +01:00
Chris Perl
94b2db2de6 Replace virtcol() with len() in handleLeftClick().
When 'virtualedit' is set, the column where the cursor resides can no longer be
relied on for determining the number of elements in the 'line' list for
iterating.  Replacing virtcol() with len() seems to work correctly and not
result in E684 errors.  Fixes Issue #144
2012-03-17 09:36:47 -04:00
Martin Grenfell
678bb28168 add NERDTreeFocus command - calls the NERDTreeFocus() function 2012-02-17 15:31:37 +00:00
Martin Grenfell
aa1e7d642f fix previewing of directory nodes
Previously if we used the gi/gs mappings on a dir node/bookmark the
cursor would end up in the new window. Now it stays in the current
window as expected
2012-02-16 16:31:50 +00:00
Martin Grenfell
7e7e761d7f Merge pull request #122 from cperl82/fixes
Add calls to NERDTreeAddKeyMap for previewing Bookmarks
2012-02-16 08:16:51 -08:00
Martin Grenfell
0b3b8f7833 add NERDTreeFocus function 2012-02-16 16:11:44 +00:00
Martin Grenfell
c8b54dc91a Merge pull request #137 from AndrewRadev/double-edit-fix
Double edit fix
2012-02-14 02:59:49 -08:00
Andrew Radev
71465f79b1 Don't output a message on opening a file node 2012-02-14 12:38:52 +02:00
Andrew Radev
ff0816979c Remove second "edit" from Opener 2012-02-14 12:38:23 +02:00
Martin Grenfell
2a0578227e Merge pull request #127 from cperl82/keymap-leader-fix2
Make handling of '<>' notation more robust.
2012-01-27 01:15:48 -08:00
Chris Perl
30cc73d6ed Make handling of '<>' notation more robust.
Previous case could fail with something like '<Tab><Tab>'.  Cases like
that should be handled correctly now.
2012-01-27 00:12:33 -05:00
Martin Grenfell
7fbb77c067 fix the ctrl-j/ctrl-k mappings 2012-01-26 23:59:07 +00:00
Martin Grenfell
185e087c40 Merge pull request #126 from cperl82/keymap-leader-fix
Escape mappings that use '<>' notation.
2012-01-26 15:53:34 -08:00
Chris Perl
f29d6a4f0f Escape mappings that use '<>' notation.
KeyMap.bind() does not gracefully handle use of '<>' notation.  For
example, trying to call NERDTreeAddKeyMap() with a 'key' argument of
'<Leader>e'.  There were some workarounds KeyMap.bind() to help with
this by specifically allowing you to leave off the '<>' parts for
'<C-...>', '<M-...>' and mouse mappings and it would add them back for
you before creating the mapping.  This commit reverts some of that logic
and simply says that if the key starts with '<', replace it with <lt>.
2012-01-26 17:06:42 -05:00
Chris Perl
597cccce0f Add calls to NERDTreeAddKeyMap for previewing Bookmarks
These calls to NERDTreeAddKeyMap use the same callback as when these
keys are mapped with a 'scope' of "Node."  This should not pose a
problem though as s:previewNodeCurrent, s:previewNodeHSplit and
s:previewNodeVSplit all just call the passed in node's open() method,
which gets passed on to an Opener object.
2012-01-25 15:57:41 -05:00
Martin Grenfell
eced5f98a0 Merge pull request #110 from cperl82/fixes
Symlinks Not Showing as Symlinks
2012-01-11 12:19:41 -08:00
Martin Grenfell
20f7ab8ade map <cr> to the default o mapping (again)
this was broken in one of the recent "epic refactor" commits
2012-01-11 20:03:56 +00:00