mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 11:53:48 -05:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
89a1a4355b | ||
|
|
62b78de367 | ||
|
|
aef6baf6e2 | ||
|
|
06c9d9c963 |
5
.github/ISSUE_TEMPLATE/bug.md
vendored
5
.github/ISSUE_TEMPLATE/bug.md
vendored
@@ -22,9 +22,8 @@ After reading, and before submitting your issue, please remove this introductory
|
|||||||
|
|
||||||
#### Environment (for bug reports)
|
#### Environment (for bug reports)
|
||||||
- [ ] Operating System:
|
- [ ] Operating System:
|
||||||
- [ ] Vim/Neovim version `:version`:
|
- [ ] Vim/Neovim version `:echo v:version`:
|
||||||
- [ ] NERDTree version `:echo nerdtree#version(0)` or `git rev-parse --short HEAD`:
|
- [ ] NERDTree version, found on 1st line in NERDTree quickhelp `?`:
|
||||||
- [ ] A link to my [vimrc](), or
|
|
||||||
- [ ] vimrc settings
|
- [ ] vimrc settings
|
||||||
- [ ] NERDTree variables
|
- [ ] NERDTree variables
|
||||||
```vim
|
```vim
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
#### 5.2...
|
#### 5.2...
|
||||||
|
- **.4**: When searching for root line num, stop at end of file. (PhilRunninger) #1015
|
||||||
|
- **.3**: Fix `<CR>` key map on the bookmark (lkebin) #1014
|
||||||
|
- **.2**: Make Enter work on the `.. ( up a dir )` line (PhilRunninger) #1013
|
||||||
- **.1**: Fix nerdtree#version() on Windows. (PhilRunninger) N/A
|
- **.1**: Fix nerdtree#version() on Windows. (PhilRunninger) N/A
|
||||||
- **.0**: Expand functionality of `<CR>` mapping. (PhilRunninger) #1011
|
- **.0**: Expand functionality of `<CR>` mapping. (PhilRunninger) #1011
|
||||||
#### 5.1...
|
#### 5.1...
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ function! nerdtree#ui_glue#createDefaultBindings()
|
|||||||
call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapCustomOpen, 'scope':'FileNode', 'callback': s."customOpenFile"})
|
call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapCustomOpen, 'scope':'FileNode', 'callback': s."customOpenFile"})
|
||||||
call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapCustomOpen, 'scope':'DirNode', 'callback': s."customOpenDir"})
|
call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapCustomOpen, 'scope':'DirNode', 'callback': s."customOpenDir"})
|
||||||
call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapCustomOpen, 'scope':'Bookmark', 'callback': s."customOpenBookmark"})
|
call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapCustomOpen, 'scope':'Bookmark', 'callback': s."customOpenBookmark"})
|
||||||
|
call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapCustomOpen, 'scope':'all', 'callback': s."activateAll" })
|
||||||
|
|
||||||
call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapActivateNode, 'scope': "DirNode", 'callback': s."activateDirNode" })
|
call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapActivateNode, 'scope': "DirNode", 'callback': s."activateDirNode" })
|
||||||
call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapActivateNode, 'scope': "FileNode", 'callback': s."activateFileNode" })
|
call NERDTreeAddKeyMap({ 'key': g:NERDTreeMapActivateNode, 'scope': "FileNode", 'callback': s."activateFileNode" })
|
||||||
@@ -94,7 +95,7 @@ endfunction
|
|||||||
"FUNCTION: s:customOpenBookmark() {{{1
|
"FUNCTION: s:customOpenBookmark() {{{1
|
||||||
" Open bookmark node with the "custom" key, initially <CR>.
|
" Open bookmark node with the "custom" key, initially <CR>.
|
||||||
function! s:customOpenBookmark(node)
|
function! s:customOpenBookmark(node)
|
||||||
if node.isDirectory
|
if a:node.path.isDirectory
|
||||||
call a:node.activate(b:NERDTree, s:initCustomOpenArgs().dir)
|
call a:node.activate(b:NERDTree, s:initCustomOpenArgs().dir)
|
||||||
else
|
else
|
||||||
call a:node.activate(b:NERDTree, s:initCustomOpenArgs().file)
|
call a:node.activate(b:NERDTree, s:initCustomOpenArgs().file)
|
||||||
|
|||||||
@@ -254,7 +254,7 @@ endfunction
|
|||||||
" gets the line number of the root node
|
" gets the line number of the root node
|
||||||
function! s:UI.getRootLineNum()
|
function! s:UI.getRootLineNum()
|
||||||
let rootLine = 1
|
let rootLine = 1
|
||||||
while getline(rootLine) !~# '^\(/\|<\)'
|
while rootLine <= line('$') && getline(rootLine) !~# '^\(/\|<\)'
|
||||||
let rootLine = rootLine + 1
|
let rootLine = rootLine + 1
|
||||||
endwhile
|
endwhile
|
||||||
return rootLine
|
return rootLine
|
||||||
|
|||||||
Reference in New Issue
Block a user