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 request: ability to sort the files first #169

Closed
1 task done
sajjathossain opened this issue Sep 3, 2023 · 1 comment
Closed
1 task done

feature request: ability to sort the files first #169

sajjathossain opened this issue Sep 3, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@sajjathossain
Copy link

Did you check existing requests?

  • I have searched the existing issues

Describe the feature

the file tree should list file files first and directories last. it allows easier file access.

Provide background

No response

Additional details

No response

@sajjathossain sajjathossain added the enhancement New feature or request label Sep 3, 2023
kayuxx added a commit to kayuxx/oil.nvim that referenced this issue Sep 6, 2023
@stevearc
Copy link
Owner

stevearc commented Sep 9, 2023

I've added an API for configuring the sort order. In your case you will want

require("oil").setup({
  view_options = {
    sort = {
      { "type", "desc" },
      { "name", "asc" },
    }
  }
})

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