Commit Graph

890 Commits

Author SHA1 Message Date
Martin Grenfell
e671e403dd don't touch @o and @h registers when rendering
This just isn't needed, and leaves traces as it turns out:
http://stackoverflow.com/questions/42455953/ho-automatically-writes-vim-registers

Thanks @romainl
2017-02-25 15:23:12 +00:00
Phil Runninger
281701021c Merge pull request #649 from alegen/master
fix bug with files and directories that have dollar sign in name
2017-01-02 08:34:15 -05:00
Alex Geana
9c73a19f56 fix bug with files and directories that have dollar sign in name 2016-12-29 23:22:48 +01:00
Martin Grenfell
eee431dbd4 really fix the previous buffer issue when closing a tree win
So :bprev was failing to jump back to the right buffer. I dont fully
understand this yet, but I'm fairly sure this is because there is a
magic <directory> buffer that we delete when creating a wintree :-/

Anyway, we are explicitly storing the prev buffer again - and updating
it when reusing treewins. It's worky, but there may be a superior way...
2016-10-21 14:48:05 +01:00
Martin Grenfell
48df6bfd6e Revert "remove NERDTree.previousBuf() and related code"
This reverts commit 2027ae03db.
2016-10-21 14:40:18 +01:00
Martin Grenfell
513bf64555 update changelog 2016-10-19 14:11:40 +01:00
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
Phil Runninger
334fb0e687 Update CHANGELOG 2016-10-13 16:10:27 -04:00
Phil Runninger
25ec8b47c6 Merge pull request #630 from Leeiio/patch-1
Update NERDTreeOpenable and NERDTreeClosable color
2016-10-13 15:33:05 -04:00
瓜牛
32186f1660 Update NERDTreeOpenable and NERDTreeClosable color
It is more comfortable
2016-10-13 13:38:36 +08:00
Phil Runninger
b9b53d814b Update CHANGELOG 2016-10-10 15:18:14 -04:00
Phil Runninger
10ac799808 Update README.markdown
Adjusted the wording of one of the tips, and added a sentence about the type of NERDTree window that is displayed. See pull reqest #628.
2016-10-10 15:16:00 -04:00
Phil Runninger
148e8570df Merge pull request #628 from ggicci/master
Add note in README: trick to open NERDTree as a window on startup.
2016-10-10 15:06:53 -04:00
Ggicci
a229d8bb61 Remove a similar tip in README file. 2016-10-11 00:02:29 +08:00
Ggicci
b78fa83373 Fix opening current directory in NERDTree tab. 2016-10-09 20:28:33 +08:00
Ggicci
1c0d9efe6c Update readme, trick to open NERDTree as a tab window. 2016-10-09 15:26:48 +08:00
Ggicci
4cb9762999 Update readme, trick to avoid hiding nerdtree after first file open. 2016-10-09 15:11:27 +08:00
Phil Runninger
f26eaf8355 Merge pull request #625 from scrooloose/revert-546-master
Revert "changed arrows for NERDTreeDirArrowExpandable and NERDTreeDirArrowCol…"
2016-10-04 17:52:49 -04:00
Phil Runninger
408f7a572c Revert "changed arrows for NERDTreeDirArrowExpandable and NERDTreeDirArrowCol…" 2016-10-04 17:52:12 -04:00
Martin Grenfell
08773e1e74 Merge pull request #623 from dschaub/rename-typo
Fix typo in argument usage in promptToRenameBuffer
2016-10-04 09:50:13 +01:00
Dan Schaub
682a7b64db Fix typo in argument usage in promptToRenameBuffer 2016-10-03 18:04:50 -04:00
Phil Runninger
af64474ebd Update CHANGELOG 2016-09-23 16:08:02 -04:00
Phil Runninger
26b40d162c Update CHANGELOG 2016-09-22 16:56:23 -04:00
Phil Runninger
f640646f2c Change confirmation prompt when deleting non-empty directory. 2016-09-22 16:42:17 -04:00
Phil Runninger
1a6c502f19 Merge pull request #530 from mikeperri/delete-empty-directory
Don't require user to type 'yes' to delete an empty directory
2016-09-22 16:40:25 -04:00
Phil Runninger
5d7bc3b0b8 Merge pull request #533 from devm33/fix_e_on_dir
update api call to open directory tree in window
2016-09-22 15:54:39 -04:00
Phil Runninger
f173f62c9a Merge pull request #546 from gwilk/master
changed arrows for NERDTreeDirArrowExpandable and NERDTreeDirArrowCol…
2016-09-22 15:43:19 -04:00
Phil Runninger
1993700bef Merge pull request #584 from zwhitchcox/patch-1
Save people time
2016-09-22 15:28:14 -04:00
Phil Runninger
a536498601 Merge pull request #593 from therealplato/docs/boot-other-window
[docs] faq: how to start with open nerdtree but main window focused
2016-09-22 15:27:39 -04:00
Phil Runninger
fa57b8128d Merge pull request #595 from zacharyvoase/fix_quote_file_name
Use fnameescape to quote filenames for :badd.
2016-09-22 11:22:21 -04:00
Phil Runninger
4ebd7de207 Update CHANGELOG 2016-09-22 11:19:58 -04:00
Phil Runninger
d34f3a257f Merge pull request #619 from curran/patch-1
Correct broken helptags command in docs.
2016-09-22 11:18:50 -04:00
Phil Runninger
b9ad20c0b1 Update CHANGELOG 2016-09-21 22:36:58 -04:00
Phil Runninger
9ff2096b04 Merge pull request #548 from adityanatraj/master
Issue #537: Fix dir arrows not functioning properly
2016-09-21 22:32:13 -04:00
Curran Kelleher
9aae0be318 Correct broken helptags command in docs. 2016-09-17 15:27:19 +05:30
Phil Runninger
29cf96e45b Update change log. 2016-09-08 01:57:38 -04:00
Phil Runninger
d2f8bb8e8a Merge branch 'juanibiapina-disable-cascade' 2016-09-08 01:21:07 -04:00
Phil Runninger
ac2d3b077a Merge branch 'disable-cascade' of git://github.com/juanibiapina/nerdtree into juanibiapina-disable-cascade 2016-09-08 01:02:17 -04:00
Phil Runninger
4428aba2a2 Replace strchars() with a backward compatible workaround. 2016-08-26 08:59:25 -04:00
Phil Runninger
0b73db9368 Simplify some statements. Don't convert path WinToUnix. 2016-08-26 01:32:04 -04:00
Skyler
7730c8731a Quick syntax issue fix 2016-08-25 18:20:32 -07:00
Skyler Lipthay
b5519197e9 Added support for the copy command for both file and directory nodes on Windows systems 2016-08-25 18:19:38 -07:00
Phil Runninger
40993e9010 Corrected case of :Helptags to :helptags 2016-08-25 08:23:02 -04:00
Zachary Voase
916f6b8f8f Use fnameescape to quote filenames for :badd. 2016-06-30 16:21:13 -07:00
Isaac Rogers
0ef5b6be4f Add FAQ: how to unfocus nerdtree window on start 2016-06-27 19:11:07 -04:00
Mike Perri
d2509d279e Don't require user to type 'yes' to delete an empty directory 2016-06-27 11:28:47 -05:00
Martin Grenfell
2e2b649232 Merge pull request #591 from czak/cascade-close-fix
Fix upward traversal when closing a cascade
2016-06-23 13:37:52 +01:00
Łukasz Adamczak
2924ab2071 Verify we haven't reached root when traversing cascade 2016-06-22 13:59:49 +02:00