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] built-in tree-mode file browser #1702

Closed
xialvjun opened this issue Feb 23, 2022 · 2 comments
Closed

[Feature Request] built-in tree-mode file browser #1702

xialvjun opened this issue Feb 23, 2022 · 2 comments
Labels
C-enhancement Category: Improvements R-duplicate Duplicated issue: please refer to the linked issue

Comments

@xialvjun
Copy link

xialvjun commented Feb 23, 2022

Describe your feature request

I don't know if this has been implemented but not documented, or it should be a feature request.

At this version ([email protected]), we can open a directory with hx my-project-dir and then it will show a flat file list

image

We can type to search a file, we can navigate the list with up and down( ↑↓ ) and press Enter to select a file to open.

Besides, in the image above, the project has a node_modules directory, it doesn't show in it, that's good. But what's the rule? And the file list order is weird.

But after we opened a file, it seems we can never go to the flat file list view anymore. I hope :open with no arguments can go to that view.

And more, why it's a flat file list? Why not a tree file list? If it's a tree file list, we can navigate it with ↑↓←→ . No need to explain ↑↓, → is to expand and ← is to collapse.

@xialvjun xialvjun added the C-enhancement Category: Improvements label Feb 23, 2022
@sudormrfbin
Copy link
Member

But after we opened a file, it seems we can never go to the flat file list view anymore.

space + f opens the file picker again (The keymap docs have an overview of all keybindings).

Besides, in the image above, the project has a node_modules directory, it doesn't show in it, that's good. But what's the rule?

The file picker respects gitignore, so any files specified in it is automatically not shown. There's also a configurable option that sets whether to show hidden directories.

And the file list order is weird.

Files are sorted by last access time.

Why not a tree file list?

#200

@kirawi
Copy link
Member

kirawi commented Feb 24, 2022

I think this can be closed as a duplicate of #200?

@kirawi kirawi closed this as completed Feb 24, 2022
@kirawi kirawi added the R-duplicate Duplicated issue: please refer to the linked issue label Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements R-duplicate Duplicated issue: please refer to the linked issue
Projects
None yet
Development

No branches or pull requests

3 participants