Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: Default sorting method (Defined for each component) #1123

Open
1 task done
tmummert opened this issue Aug 27, 2023 · 1 comment
Open
1 task done

FEATURE: Default sorting method (Defined for each component) #1123

tmummert opened this issue Aug 27, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@tmummert
Copy link

Did you check the docs?

  • I have read all the docs.

Is your feature request related to a problem? Please describe.

With versions 3.4/3.5 a number of sorting commands were released, which are described in Announcements 1120.

Based on this, I would like to suggest adding options for default sorting methods for each component.

Describe the solution you'd like.

These could be added to the configuration as follows:

require("neo-tree").setup({
    sources = {
        "filesystem",
        "buffers",
        "git_status",
    },
    filesystem = {
        default_sort = "order_by_git_status",
    },
    buffers = {
        default_sort = "order_by_diagnostics",
    },
    git_status = {
        default_sort = "order_by_modified",
    },
})

Describe alternatives you've considered.

No response

Additional Context

No response

@tmummert tmummert added the enhancement New feature or request label Aug 27, 2023
@bigzhu
Copy link

bigzhu commented Sep 10, 2023

Need same FEATURE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants