Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to turn off directory arrows #1085

Merged
merged 9 commits into from
Feb 6, 2020
Merged

Add the ability to turn off directory arrows #1085

merged 9 commits into from
Feb 6, 2020

Conversation

PhilRunninger
Copy link
Member

@PhilRunninger PhilRunninger commented Feb 3, 2020

Description of Changes

Closes #1064

Directory arrows can now be turned off. Formerly it was possible to turn the arrows into a non-breaking space, but this is different in that the entire tree is shifted to the left two character positions by removing the arrow and the space that follows it.


New Version Info

Author's Instructions

  • Derive a new MAJOR.MINOR.PATCH version number. Increment the:
    • MAJOR version when you make incompatible API changes
    • MINOR version when you add functionality in a backwards-compatible manner
    • PATCH version when you make backwards-compatible bug fixes
  • Update CHANGELOG.md, following the established pattern.

Collaborator's Instructions

  • Review CHANGELOG.md, suggesting a different version number if necessary.
  • After merge, tag the merge commit, e.g. git tag -a 3.1.4 -m "v3.1.4" && git push origin --tags

Phil Runninger added 2 commits February 3, 2020 01:58
Also improved some highlighting to make use of g:NERDTreeNodeDelimiter,
which directly surrounds the filename. More of this to come as errors
are tracked down and fixed in this file.
let l:symbol = g:NERDTreeDirArrowExpandable
endif

let l:padding = g:NERDTreeDirArrowExpandable == '' ? '' : ' '
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[vint] reported by reviewdog 🐶
Use robust operators ==# or ==? instead of == (see Google VimScript Style Guide (Matching))


if !self.path.isDirectory
let treeParts = treeParts . ' '
if !self.path.isDirectory && g:NERDTreeDirArrowExpandable != ''
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[vint] reported by reviewdog 🐶
Use robust operators !=# or !=? instead of != (see Google VimScript Style Guide (Matching))

exec 'syn match NERDTreeDir #[^'.s:dirArrows.' ].*/#'
syn match NERDTreeExecFile '^ .*\*\($\| \)' contains=NERDTreeRO,NERDTreeBookmark
exec 'syn match NERDTreeFile #^[^"\.'.s:dirArrows.'] *[^'.s:dirArrows.']*# contains=NERDTreeLink,NERDTreeRO,NERDTreeBookmark,NERDTreeExecFile'
if g:NERDTreeDirArrowExpandable != ''
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[vint] reported by reviewdog 🐶
Use robust operators !=# or !=? instead of != (see Google VimScript Style Guide (Matching))

PhilRunninger pushed a commit to PhilRunninger/nerdtree-buffer-ops that referenced this pull request Feb 5, 2020
@PhilRunninger PhilRunninger marked this pull request as ready for review February 6, 2020 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to remove/disable DIR arrows (space)
1 participant