neotree buffer中, 按照文件名的自然数排序

github库中没有解决这个issue

neotree的文件名排序, 没有按照自然数序号排列

Screenshot%20from%202019-05-29%2016-47-42

Is it possible to also get “natural order” sorting?

For example:

1
2
10

Right now we get:

1
10
2

How to order the directory by name in neotree buffer? · Issue #134 · jaypei/emacs-neotree

怎么解决这个问题?

我知道 treemacs 可以自定义排序规则。

(setf treemacs-sorting #'sort-function-name)

不过好像也没有内置你要的这种效果。所以你还是需要自己实现它。

1 个赞

:-O, treemacs太好用了 .

谢谢, 没有一点儿卡顿啊, 闲着没事可以浏览文件目录树玩. lol