mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -05:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9310f91476 | ||
|
|
e731b84559 | ||
|
|
7eee457efa |
@@ -5,6 +5,9 @@
|
||||
- **.PATCH**: Pull Request Title (PR Author) [PR Number](Link to PR)
|
||||
-->
|
||||
#### 6.10
|
||||
- **.16**: Fix documentation errors. (lifecrisis) [#1269](https://github.com/preservim/nerdtree/pull/1269)
|
||||
- **.15**: Ensure backward compatible testing of types. (lifecrisis) [#1266](https://github.com/preservim/nerdtree/pull/1266)
|
||||
- **.14**: Replace trim() with a version-compatible alternative. (PhilRunninger) [#1265](https://github.com/preservim/nerdtree/pull/1265)
|
||||
- **.13**: Change highlighting of bookmarks in the tree. (PhilRunninger) [#1261](https://github.com/preservim/nerdtree/pull/1261)
|
||||
- **.12**: Answer the question about accessing files over scp or ftp. (PhilRunninger) [#1259](https://github.com/preservim/nerdtree/pull/1259)
|
||||
- **.11**: Trim filenames created via the fs_menu (elanorigby) [#1243](https://github.com/preservim/nerdtree/pull/1243)
|
||||
|
||||
@@ -112,18 +112,18 @@ function! nerdtree#compareNodePaths(p1, p2) abort
|
||||
" Compare chunks upto common length.
|
||||
" If chunks have different type, the one which has
|
||||
" integer type is the lesser.
|
||||
if type(sortKey1[i]) ==# type(sortKey2[i])
|
||||
if type(sortKey1[i]) == type(sortKey2[i])
|
||||
if sortKey1[i] <# sortKey2[i]
|
||||
return - 1
|
||||
elseif sortKey1[i] ># sortKey2[i]
|
||||
return 1
|
||||
endif
|
||||
elseif type(sortKey1[i]) ==# v:t_number
|
||||
elseif type(sortKey1[i]) == type(0)
|
||||
return -1
|
||||
elseif type(sortKey2[i]) ==# v:t_number
|
||||
elseif type(sortKey2[i]) == type(0)
|
||||
return 1
|
||||
endif
|
||||
let i = i + 1
|
||||
let i += 1
|
||||
endwhile
|
||||
|
||||
" Keys are identical upto common length.
|
||||
|
||||
@@ -1256,10 +1256,10 @@ responsible pull request: https://github.com/preservim/nerdtree/pull/868.
|
||||
The default value of this variable depends on the features compiled into your
|
||||
vim and the values of |NERDTreeDirArrowCollapsible| and
|
||||
|NERDTreeDirArrowExpandable|.
|
||||
* If your vim is compiled with the +conceal feature, it is the "\x07" (BELL)
|
||||
character, and it is hidden by setting 'conceallevel' to 3. If you use
|
||||
autocommands, make sure none of them change that setting in the NERDTree_*
|
||||
buffers.
|
||||
* If your vim is compiled with the +conceal feature, it is the "\x07"
|
||||
(BEL) character, and it is hidden by setting 'conceallevel' to 2. If you
|
||||
use autocommands, make sure none of them change that setting in the
|
||||
NERD_Tree_* buffers.
|
||||
* If your vim does NOT have the +conceal feature and you're using "\u00a0"
|
||||
(non-breaking space) to hide the directory arrows, "\u00b7" (middle dot)
|
||||
is used as the default delimiter.
|
||||
|
||||
@@ -169,7 +169,7 @@ endfunction
|
||||
function! NERDTreeAddNode()
|
||||
let curDirNode = g:NERDTreeDirNode.GetSelected()
|
||||
let prompt = s:inputPrompt('add')
|
||||
let newNodeName = trim(input(prompt, curDirNode.path.str() . nerdtree#slash(), 'file'))
|
||||
let newNodeName = substitute(input(prompt, curDirNode.path.str() . nerdtree#slash(), 'file'), '\(^\s*\|\s*$\)', '', 'g')
|
||||
|
||||
if newNodeName ==# ''
|
||||
call nerdtree#echo('Node Creation Aborted.')
|
||||
@@ -206,7 +206,7 @@ function! NERDTreeMoveNode()
|
||||
let newNodePath = input(prompt, curNode.path.str(), 'file')
|
||||
while filereadable(newNodePath)
|
||||
call nerdtree#echoWarning('This destination already exists. Try again.')
|
||||
let newNodePath = trim(input(prompt, curNode.path.str(), 'file'))
|
||||
let newNodePath = substitute(input(prompt, curNode.path.str(), 'file'), '\(^\s*\|\s*$\)', '', 'g')
|
||||
endwhile
|
||||
|
||||
|
||||
@@ -337,7 +337,7 @@ endfunction
|
||||
function! NERDTreeCopyNode()
|
||||
let currentNode = g:NERDTreeFileNode.GetSelected()
|
||||
let prompt = s:inputPrompt('copy')
|
||||
let newNodePath = trim(input(prompt, currentNode.path.str(), 'file'))
|
||||
let newNodePath = substitute(input(prompt, currentNode.path.str(), 'file'), '\(^\s*\|\s*$\)', '', 'g')
|
||||
|
||||
if newNodePath !=# ''
|
||||
"strip trailing slash
|
||||
|
||||
Reference in New Issue
Block a user