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

Add a way to go up a directory with Return #496

Closed
lambdalisue opened this issue Mar 16, 2024 · 2 comments
Closed

Add a way to go up a directory with Return #496

lambdalisue opened this issue Mar 16, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@lambdalisue
Copy link
Owner

image

Pretty much every “graphical” file explorer has a graphical option to go one level-up and there is a reason why: for people who use arrows to move between files/folders and hit Enter to get into a folder it would be natural by continuity to stay in the setup arrow+enter also to go one level up. They don’t have to change position on the keyboard and the brain avoid a context switch which is very good. Having a mechanism to go into a folder and be forced to switch mechanics to go out is in general not a good idea.

#119 (comment)

Personally, I thought it was unnecessary, but after the explanation above, I understand. I probably will make it so that it can be displayed with some kind of option.

@lambdalisue lambdalisue added the enhancement New feature or request label Mar 16, 2024
@lambdalisue lambdalisue changed the title Add an option to show .. up a dir line Add a way to go up a directory with Return Mar 16, 2024
@lambdalisue
Copy link
Owner Author

Adding a .. up a dir line is a bit tricky because all lines in the fern window are derived from the directory structure, and all renderers assume that the first line is the root. So we may need to add an option to change the behavior of Enter on the root node (e.g., reload to go up a directory).

@lambdalisue
Copy link
Owner Author

Closed by #119

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

Successfully merging a pull request may close this issue.

1 participant