mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -05:00
Added Case Sensitive Move Operation via newly introduced flag NERDTreeCaseSensitiveFS (#1375)
* Added NERDTreeCaseInsensitiveFS option. * check against g:NERDTreeCaseInsensitiveFS with path.equals method * Fixed issues in comments and added nerdtree#runningMac * Using nerdtree#runningMac instead of manual checks for mac * Better implementation * Updated documentation * Added notice about the flag * Updated the documentation * Added support for g:NERDTreeCaseSensitiveFS = 3 * Better comments * Exported caseSensitiveFS check as a function
This commit is contained in:
@@ -673,6 +673,9 @@ the NERDTree. These settings should be set in your vimrc, using `:let`.
|
||||
|
||||
|NERDTreeAutoCenterThreshold| Controls the sensitivity of autocentering.
|
||||
|
||||
|NERDTreeCaseSensitiveFS| Tells the NERDTree whether or not it is
|
||||
running in on a case sensitive file system.
|
||||
|
||||
|NERDTreeCaseSensitiveSort| Tells the NERDTree whether to be case
|
||||
sensitive or not when sorting nodes.
|
||||
|
||||
@@ -808,6 +811,26 @@ Default: 3
|
||||
This setting controls the "sensitivity" of the NERDTree auto centering. See
|
||||
|NERDTreeAutoCenter| for details.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
*NERDTreeCaseSensitiveFS*
|
||||
Values: 0, 1, 2 or 3.
|
||||
Default: 2.
|
||||
|
||||
If set to 0, the NERDTree will interact with the file system without case
|
||||
sensitivity.
|
||||
|
||||
If set to 1, the NERDTree will interact with the file system in a case-sensitive
|
||||
manner.
|
||||
|
||||
If set to 2, the NERDTree assumes its case sensitivity from the OS it is
|
||||
running on. It Will default to case-insensitive on Windows and macOS
|
||||
machines and case-sensitive on everything else. Since it's not a foolproof
|
||||
way of detection, NERDTree won't proceed with any write actions when
|
||||
the destination is ambiguous.
|
||||
|
||||
Setting it to 3 will perform just like 2, but without suppressing write
|
||||
actions.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
*NERDTreeCaseSensitiveSort*
|
||||
Values: 0 or 1.
|
||||
|
||||
Reference in New Issue
Block a user