Jason Franklin
0b65089122
Reimplement the bookmark comparison method
...
Sorting the list of user bookmarks requires care to ensure that Vim's
builtin sort function is called correctly. Previously, this function was
called incorrectly. This is why the sorting of bookmarks never worked.
The offending functions have been removed here and replaced with
"s:Bookmark.CompareBookmarksByName". To understand the necessity for
this change, read ":h sort()" for the requirements of the function
reference argument (esp., note that it must return -1, 0, or 1).
In addition to fixing this problem, the new comparison function will
inspect the "g:NERDTreeBookmarksSort" setting to determine whether
case-sensitivity is preferred in the sort. The documentation has been
modified to accurately reflect this adjustment. The change is also made
in such a way as not to break any existing configurations.
Fixes #361 ("My bookmarks aren't sorted").
2017-05-26 13:23:05 -04:00
Jason Franklin
5aec5ecfef
Rename the class method for sorting bookmarks
...
A more intention-revealing name was chosen for the script-local sorting
function. The function comment was also rewritten.
2017-05-26 08:48:38 -04:00
Jason Franklin
519436ad20
Apply consistent spacing before fold markers
...
The trailing fold markers in "bookmark.vim" varied in how far they were
from the end of the line. This created an unpleasant visual effect when
folding was in use.
2017-05-26 08:27:14 -04:00
Phil Runninger
66e00e61a2
Merge pull request #695 from scrooloose/revert-626-win32unix
...
Revert "Determine if we're running in Cygwin on Windows."
2017-05-23 07:16:53 -04:00
Phil Runninger
d99967cadd
Revert "Determine if we're running in Cygwin on Windows."
2017-05-23 07:15:35 -04:00
Phil Runninger
0b84d458d6
Merge pull request #648 from cntoplolicon/master
...
correct NERDTreeIgnore pattern in doc
2017-05-20 03:26:05 -04:00
Phil Runninger
fce10d1b10
Merge pull request #626 from scrooloose/win32unix
...
Determine if we're running in Cygwin on Windows.
2017-05-20 03:25:38 -04:00
Phil Runninger
925627536e
Merge pull request #574 from sooth-sayer/master
...
Remove empty segments
2017-05-20 03:07:36 -04:00
Phil Runninger
23ba97d263
Merge pull request #691 from wincent/patch-1
...
Update stale comments
2017-05-18 12:33:11 -04:00
Greg Hurrell
0c0bde3106
Update stale comments
...
@lifecrisis pointed out this stale comment here:
https://github.com/scrooloose/nerdtree/pull/578#issuecomment-302392831
Closes : #640
2017-05-18 07:02:02 -07:00
Jason Cheatham
0caa466854
Use relative path with globpath
...
Wildignore rules that involve directories aren't handled properly (or at
least as one might expect) when globpath uses absolute paths. For
example, when wildignore contains `src/*.js`, `globpath("src", "*")`
works as expected, while `globpath("/home/user/project/src", "*")`
doesn't.
2017-04-19 10:17:45 -04:00
Phil Runninger
45f4d61f04
Merge pull request #578 from wincent/eventignore
...
Suppress autocmds less aggressively
2017-04-12 09:50:28 -04:00
Phil Runninger (mac)
97d2d70f6c
Add an Issue template to ask for more information up front.
2017-03-29 11:27:04 -04:00
Phil Runninger
649d31384c
Merge pull request #676 from josephfrazier/patch-1
...
Fix headers in readme
2017-03-27 09:39:22 -04:00
Joseph Frazier
bf193320f8
Fix headers in readme
2017-03-26 14:51:09 -04:00
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
cntoplolicon
dee152d08f
correct NERDTreeIgnore pattern in doc
2016-12-23 17:51:36 +08: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
a9a5aec9c0
Determine if we're running in Cygwin on Windows.
2016-10-06 17:51:22 -04: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