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

:Yazi toggle entered the previously hovered directory #735

Closed
alohaia opened this issue Feb 4, 2025 · 10 comments
Closed

:Yazi toggle entered the previously hovered directory #735

alohaia opened this issue Feb 4, 2025 · 10 comments
Labels

Comments

@alohaia
Copy link

alohaia commented Feb 4, 2025

For instance, say I have this dirs:

0
├── 1
│   └── 2
│       └── 3
├── 11
└── 111

When I use :Yazi toggle to open yazi.nvim and hover on 1, then press q to quit. Then use :Yazi toggle to open again, now I'm in 1 and hovering on 2.

Is this a bug? How could I disable the behaviour to enter the previously hovered dir?

@alohaia alohaia changed the title Yazi toggle entered the previously hovered directory :Yazi toggle entered the previously hovered directory Feb 4, 2025
@mikavilpas
Copy link
Owner

:Yazi toggle will hover the most recent file or directory.

You can also use :Yazi to hover the current file. Maybe this is what you want to do?

@alohaia
Copy link
Author

alohaia commented Feb 7, 2025

:Yazi toggle will hover the most recent file or directory.

In my case, :Yazi toggle doesn't just hover the most recent file or directory. If I hovered a directory last time, it will enter the directory the next time I use :Yazi toggle.

I have checked again with only yazi.nvim and plenary.nvim enabled, and with default Yazi configuration.

Please tell me if you need any additional information.

@mikavilpas
Copy link
Owner

Can you post your :checkhealth yazi? Here is mine:

Image

@alohaia
Copy link
Author

alohaia commented Feb 7, 2025

Image

@alohaia
Copy link
Author

alohaia commented Feb 7, 2025

Maybe I could help check the problem. Can you tell me where are the functions related to the hovering behaviour?

@mikavilpas
Copy link
Owner

That's a good idea. I think you can get a practical overview by enabling logging, see the instructions here https://github.com/mikavilpas/yazi.nvim/blob/main/documentation/reproducing-issues.md#enabling-logging

@mikavilpas
Copy link
Owner

I just remembered there is this upcoming feature that I have enabled, see here https://github.com/mikavilpas/dotfiles/blob/6852877bcecc6f63d076af786e2e7f29278c564f/.config/nvim/lua/plugins/my-file-manager.lua?plain=1#L29-L31

Could you try if that changes the behaviour for you? I'm guessing it might be fixed but only if you have enabled that upcoming feature.

@alohaia
Copy link
Author

alohaia commented Feb 7, 2025

👌I'll try these later.

Copy link
Contributor

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Mar 10, 2025
@alohaia
Copy link
Author

alohaia commented Mar 16, 2025

This issue seems to have resolved itself for some reason, so I will close it now.

@alohaia alohaia closed this as completed Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants