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

Open file with same button with enter directory #438

Closed
1 task
og900aero opened this issue Dec 7, 2023 · 4 comments
Closed
1 task

Open file with same button with enter directory #438

og900aero opened this issue Dec 7, 2023 · 4 comments

Comments

@og900aero
Copy link

Is your feature request related to a problem? Please describe

No response

Will you be willing to contribute this feature?

  • Yes, I'll give it a shot

Describe the solution you'd like

Enter the children's directory and the file opening key (Right arrow) should also be used so that if you are standing on a file, it will be opened and standing directory, then enter the directory (aka lf file manager, vifm etc)

Describe alternatives you've considered

No response

Additional context

No response

@og900aero og900aero added the feature New feature request label Dec 7, 2023
@og900aero og900aero changed the title Open file with same button Open file with same button with enter directory Dec 7, 2023
@sxyazi
Copy link
Owner

sxyazi commented Dec 8, 2023

See https://yazi-rs.github.io/docs/faq#why-cant-open-and-enter-be-a-single-command

When the plugin system is available (should be soon, #401), for users who truly don't need it, it will be easy to implement with just a few lines of code.

@sxyazi sxyazi closed this as not planned Won't fix, can't repro, duplicate, stale Dec 8, 2023
@sxyazi sxyazi removed the feature New feature request label Dec 8, 2023
@og900aero
Copy link
Author

Okay. It would be good if we could change it in the framework of a plugin. In any case, opening compressed files does not exclude the need to select them separately. In the lf file manager, for example, the option to change or open the directory with the right button is enabled by default, but it is possible to run the following line of code if the file is a compressed file (I can use a bash script for plug in. I use the archivemount package):

mntdir="$f-archivemount"
if [ ! -d "$mntdir" ]; then
mkdir "$mntdir"
archivemount "$f" "$mntdir"

So thx your works. Yazi is very impressive file manager, I love it.

Copy link

github-actions bot commented Jan 8, 2024

I'm going to lock this issue because it has been closed for 30 days. ⏳ This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 8, 2024
@sxyazi
Copy link
Owner

sxyazi commented Jan 9, 2024

We've supported it now, see this tip https://yazi-rs.github.io/docs/tips/#smart-enter-enter-for-directory-open-for-file.

Note that Yazi main branch is currently required.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants