Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Favoritise files in the CWD in the file picker #1452

Closed
poliorcetics opened this issue Jan 6, 2022 · 1 comment
Closed

Favoritise files in the CWD in the file picker #1452

poliorcetics opened this issue Jan 6, 2022 · 1 comment
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements

Comments

@poliorcetics
Copy link
Contributor

Describe your feature request

Example situation:

  • A Rust workspace with multiple crates, like this repo
  • Enter the folder for one crate, e.g. helix-lsp
  • Open a file, like src/lib.rs
  • Press Space+f to open the file picker
  • The files are randomly ordered

I would like for the files in the current working directory (helix-lsp) to come first, especially since helix does not have a tree view (and I don't really want one).

Additionally, it would be nice to order the files next to the current one (helix-lsp/src/lib.rs) and in subdirectories to be ordered even higher.

So, to clarify, I would like the following order:

  1. Files directly next to the opened one and in direct subdirectories that are next to the opened file
  2. Files in the current working directory if if is more precise than the root one (e.g, inside a specific crate of a cargo workspace)
  3. Files in the root directory (e.g. those in the whole cargo workspace)

If you think this is relatively simple to do, I'm ok to work on it to make my first contrib to helix :)

@poliorcetics poliorcetics added the C-enhancement Category: Improvements label Jan 6, 2022
@Triton171
Copy link
Contributor

I've already implemented the first part in this PR. We could do the same for files that are next to the currently opened file but in my opinion they shouldn't be prioritized too much.

@kirawi kirawi added the A-helix-term Area: Helix term improvements label Jan 7, 2022
@helix-editor helix-editor locked and limited conversation to collaborators Apr 25, 2024
@pascalkuthe pascalkuthe converted this issue into discussion #10596 Apr 25, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

3 participants