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

Toggle a persistent Yazi panel ? #358

Open
uwla opened this issue Aug 10, 2024 · 4 comments
Open

Toggle a persistent Yazi panel ? #358

uwla opened this issue Aug 10, 2024 · 4 comments
Labels
enhancement New feature or request stale

Comments

@uwla
Copy link

uwla commented Aug 10, 2024

Hello thanks for the awesome plugin!

Is there a way to toggle an Yazi panel such that it persists the state after close? For example, I open an Yazi panel (may be at the current buffer directory or at the VCS root) and I navigate to a subdir, open some tabs, and so on, ..., and then I'd like to reopen that same Yazi panel instead of starting a fresh new one

@mikavilpas
Copy link
Owner

Hi, glad you're enjoying it! I think I'll add support for this in the future.

For now, you can try :Yazi toggle which is a "dumb" implementation. It simply reopens yazi where it was closed previously.

It's not perfect but in some cases it can be useful. Let's keep this open until a fancier solution is available 🙂

@uwla
Copy link
Author

uwla commented Aug 14, 2024

@mikavilpas I saw you were discussing getting persistent yazi with toggleterm, which is another excellent plugin. I have toggleterm configured to launch an yazi instance, but the problem is when editing files it creates nested nvim sessions. Then I came accross nvim-remote which could potentially solve this issue: changes the EDITOR to nvim remote which will forward the file to the original nvim session, via a socket address. Thay way, we would have persistent yazi using toggleterm. If I can get it to work I'll post it here.

@mikavilpas mikavilpas added the enhancement New feature or request label Aug 27, 2024
@chenxin-yan
Copy link
Contributor

In shell, Yazi can be suspended with built in keymap <c-z>, and brought back with fg command. I will take a look latter, maybe we can find a way to integrate it with Yazi.nvim.

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 Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
None yet
Development

No branches or pull requests

3 participants