diff --git a/CHANGELOG.md b/CHANGELOG.md index 5381e59f..ef25435a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,14 @@ . - Pull Request Title n (PR Author) [PR Number](Link to PR) --> +#### 7.1 +- **.1**: + - fix: change default binding of filelines to `FL`. (rzvxa) [#1400](https://github.com/preservim/nerdtree/pull/1400) + - fix: toggle zoom resizing. (ds2606) [#1395](https://github.com/preservim/nerdtree/pull/1395) +- **.0**: + - fix: typo in the docs. (bl4kraven) [#1390](https://github.com/preservim/nerdtree/pull/1390) + - feat: add NERDTreeExplore command. (msibal6) [#1389](https://github.com/preservim/nerdtree/pull/1389) + - fix: mapping description in NERDTree.txt. (roccomao) [#1393](https://github.com/preservim/nerdtree/pull/1393) #### 7.0 - **.1**: - Fix NERDTreeFind to handle directory case sensitivity. (dangibson) [#1387](https://github.com/preservim/nerdtree/pull/1387) diff --git a/doc/NERDTree.txt b/doc/NERDTree.txt index 9b8b6ba8..5c0344a7 100644 --- a/doc/NERDTree.txt +++ b/doc/NERDTree.txt @@ -287,7 +287,7 @@ I........Toggle whether hidden files displayed......................|NERDTree-I| f........Toggle whether the file filters are used...................|NERDTree-f| F........Toggle whether files are displayed.........................|NERDTree-F| B........Toggle whether the bookmark table is displayed.............|NERDTree-B| -L........Toggle whether the number of lines in files is displayed...|NERDTree-L| +L........Toggle whether the number of lines in files is displayed..|NERDTree-FL| q........Close the NERDTree window..................................|NERDTree-q| A........Zoom (maximize/minimize) the NERDTree window...............|NERDTree-A| @@ -603,8 +603,8 @@ Applies to: no restrictions. Toggles whether the bookmarks table is displayed. ------------------------------------------------------------------------------ - *NERDTree-L* -Default key: L + *NERDTree-FL* +Default key: FL Map setting: *NERDTreeMapToggleFileLines* Applies to: no restrictions. @@ -1080,7 +1080,7 @@ Default: 0. If this setting is set to 1 then the NERDTree shows number of lines for each file. -This setting can be toggled dynamically, per tree, with the |NERDTree-L| +This setting can be toggled dynamically, per tree, with the |NERDTree-FL| mapping. Use one of the follow lines for this setting: > let NERDTreeShowFilesLines=0 diff --git a/lib/nerdtree/ui.vim b/lib/nerdtree/ui.vim index 1b6fdf3d..867e04b1 100644 --- a/lib/nerdtree/ui.vim +++ b/lib/nerdtree/ui.vim @@ -539,6 +539,9 @@ endfunction " zoom (maximize/minimize) the NERDTree window function! s:UI.toggleZoom() if exists('b:NERDTreeZoomed') && b:NERDTreeZoomed + setlocal nowinfixwidth + wincmd = + setlocal winfixwidth call nerdtree#exec('silent vertical resize '. g:NERDTreeWinSize, 1) let b:NERDTreeZoomed = 0 else diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 5eea0070..4f24d4e6 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -132,7 +132,7 @@ let g:NERDTreeMapToggleBookmarks = get(g:, 'NERDTreeMapToggleBookmarks', 'B') let g:NERDTreeMapToggleFiles = get(g:, 'NERDTreeMapToggleFiles', 'F') let g:NERDTreeMapToggleFilters = get(g:, 'NERDTreeMapToggleFilters', 'f') let g:NERDTreeMapToggleHidden = get(g:, 'NERDTreeMapToggleHidden', 'I') -let g:NERDTreeMapToggleFileLines = get(g:, 'NERDTreeMapToggleFileLines', 'L') +let g:NERDTreeMapToggleFileLines = get(g:, 'NERDTreeMapToggleFileLines', 'FL') let g:NERDTreeMapToggleZoom = get(g:, 'NERDTreeMapToggleZoom', 'A') let g:NERDTreeMapUpdir = get(g:, 'NERDTreeMapUpdir', 'u') let g:NERDTreeMapUpdirKeepOpen = get(g:, 'NERDTreeMapUpdirKeepOpen', 'U')