Commit Graph

974 Commits

Author SHA1 Message Date
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
Łukasz Adamczak
c99312442b Fix upward traversal when closing a cascade 2016-06-22 13:32:44 +02:00
Martin Grenfell
d280b15ba9 Merge pull request #544 from brookhong/master
Fix #520 E716: Key not present in Dictionary: setShowHidden
2016-06-10 12:40:20 +01:00
Zane Hitchcox
1ac98de88a Update README.markdown 2016-05-23 10:59:07 -05:00
Martin Grenfell
15445be5fb remove unneeded exec
As @mkoskar pointed out at:
https://github.com/scrooloose/nerdtree/pull/576#issuecomment-218470556
2016-05-11 16:28:34 +01:00
Martin Grenfell
5294593b14 Merge pull request #576 from mike-zueff/read-only_files_opening_fix
Read-only files opening fix
2016-05-11 16:02:01 +01:00
Greg Hurrell
35b04fa3df Suppress autocmds less aggressively
This is the counterpart to a PR I just submitted to undotree
(https://github.com/mbbill/undotree/pull/61).

I noticed that my statusline doesn't update properly when using NERDTree to move
between revisions of a file with `go` or `gi`
(https://github.com/wincent/wincent/issues/16). I established that this was
because it was using `'eventignore'` to suppress all autocmds, which in turn
prevents the statusline from updating.

Commenting out the `set eventignore=all` line makes the failure to update go
away, at the cost of firing more autocmds.

I considered adding an option for opting out of this behavior (eg. `let
g:NERDTreeEventignore=0` or something), or rearchitecting my statusline to use
an approach like vim-airline does based on CursorMoved autocmds (see
https://github.com/vim-airline/vim-airline/issues/82; see also
30f078daf5/plugin/airline.vim (L36-L50)
for current implementation), but then realized that a simpler fix is to have
NERDTree just disable only the autocmds that it uses instead of disabling all of
them.

This is probably not enough to unbreak every bit of code in the world that
depends on those autocmds, but it does at least unbreak my use case, because it
allows my `WinLeave` autocmd to run and update the statusline.
2016-05-05 09:35:16 -07:00
Mike Zueff
5458680265 Fixed read-only files opening. 2016-04-30 04:08:18 +03:00
Martin Grenfell
35c859179d update initialization of default value for g:NERDTreeCreatePrefix
Init it with the rest of the option defaults - rather than specify the
default at point of use. For consistency.

See #550.
2016-04-26 09:17:03 +01:00
Martin Grenfell
0cb999c070 Merge pull request #550 from wincent/keepalt
Make window creation command configurable
2016-04-26 09:05:57 +01:00
Martin Grenfell
7954eac006 Merge pull request #556 from acarlson1029/readonly-glyph
Allow user-defined read-only indicator.
2016-04-26 08:58:18 +01:00
Martin Grenfell
2ec9b3dd9d Merge pull request #559 from Noah-Huppert/patch-1
Added horizontal rules to FAQ section in readme
2016-04-26 08:57:04 +01:00
d.chernyatiev
1a55a93788 Remove empty segments 2016-04-25 19:05:17 +04:00
Noah Huppert
0e4c270d19 Added horizontal rules to FAQ section in readme 2016-03-05 17:03:23 -05:00
Juan Ibiapina
b2bbed41fa Add option to disable collapsing of diretory names 2016-03-05 14:20:04 -03:00
Juan Ibiapina
88946e9832 Rewrite getCascade recursively 2016-03-05 13:59:27 -03:00
Juan Ibiapina
7f6c608a35 Remove extra whitespace at the end of the line 2016-03-05 13:35:41 -03:00
Alex Carlson
dfb9111786 Allow user-defined RO indicator.
(inspired by overwriting g:NERDTreeDirArrowCollapsible/Expandable)

Replace instances of the RO string with a variable that the user can
override. Useful for custom unicode glyphs, i.e. Font Awesome.

* Initialize variable g:NERDTreeGlyphReadOnly = "RO".
   -> plugin/NERD_tree.vim
* Replace instances of 'RO' with g:NERDTreeGlyphReadOnly
2016-02-26 17:57:40 -08:00
Greg Hurrell
9843fd3686 Make window creation command configurable
This commit adds a `NERDTreeCreatePrefix` setting that can be used to
prefix the `:edit` command that is used to create the NERDTree tree
window. Defaults to "silent", meaning that out of the box the window
will be created with "silent edit".

Users may wish to configure this to produce other effects. For example,
`NERDTreeCreatePrefix` can be set to "silent keepalt keepjumps" in order
to make NERDTree create its window with "silent keepalt keepjumps edit".

This can be used to create an effect analogous to the `g:netrw_altfile`
setting in netrw. An example of why you might want to do this is
described here:

    https://github.com/tpope/vim-vinegar/issues/25

I'm not using vim-vinegar myself, but I am using something like it here:

    https://github.com/wincent/wincent/blob/3efaa8fa50895/roles/dotfiles/files/.vim/plugin/mappings.vim#L60

And having `NERDTreeCreatePrefix` enables me to map "-" to show the
current file in context, and `^-6` to jump back to it.
2016-02-09 00:17:46 -08:00
Aditya Natraj
68dce4f994 Issue #537: Fix dir arrows not functioning properly
added characters that are special when within character
classes in a regular expression to the `escape(...)` call
when building `s:dirArrows`.

this does not fix when `' '` or `''` are your `dirArrows` and you
can't open up subdirs. i think that's an issue with how nerdtree
distinguishes things to traverse in the filetree.
2016-02-06 18:11:52 -05:00