Nerdtree: May be NERDTree need natural sort for files, or sub-folders

Created on 22 Jul 2019  路  4Comments  路  Source: preservim/nerdtree

Description

Seem like NERDTree doesn't support natural sort for files in a folder, or sub folders...

Is there a way i can change it. Or can we make it a feature for NERDTree ?

Screen Shot 2019-07-22 at 21 43 55

Thank you you all for such a great plugin :heart:

feature request

Most helpful comment

I may have been premature in labeling this a bug. I tried confirming it as such this morning, and all seems to be working well. I was prepared to make changes, thinking perhaps the period was causing issues, but that doesn't appear to be the case either. The only thing I can think of is your settings. Do you have

let NERDTreeNaturalSort = 1

in your vimrc? That will turn on natural sorting, and it works with both files and folders.

All 4 comments

I'm going to call this one a bug, and I'll look into it soon.

I may have been premature in labeling this a bug. I tried confirming it as such this morning, and all seems to be working well. I was prepared to make changes, thinking perhaps the period was causing issues, but that doesn't appear to be the case either. The only thing I can think of is your settings. Do you have

let NERDTreeNaturalSort = 1

in your vimrc? That will turn on natural sorting, and it works with both files and folders.

Yep, thanks @PhilRunninger. It work perfectly. Btw i think it should be in the doc too.

See :h NERDTreeNaturalSort. It's already there.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PinheiroCosta picture PinheiroCosta  路  4Comments

masylum picture masylum  路  7Comments

sunnyguan picture sunnyguan  路  4Comments

fncll picture fncll  路  4Comments

jordwalke picture jordwalke  路  4Comments