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

"bl" needs to call twice #4

Open
Grueslayer opened this issue Dec 1, 2024 · 1 comment
Open

"bl" needs to call twice #4

Grueslayer opened this issue Dec 1, 2024 · 1 comment

Comments

@Grueslayer
Copy link

Grueslayer commented Dec 1, 2024

I've a plain new YAZI installation with nothing more than this plugin installed and configured as described.

When opening yazi, dual pane is activated and only one tab is available.

  • loading last configuration with b l does nothing until called twice.
  • after that the left pane is sorted by name insensitive and dir/file mixed. if you switch to right pane and left pane back, the left pane gets sorted by dir-first.
  • when copying with F5 files where added to the end of the list and only sorted after activating the pane

How to

  • load saved config at startup
  • start with two directories from cmdline like vifm /path/left/dir /path/right/dir
@dawsers
Copy link
Owner

dawsers commented Dec 1, 2024

You shouldn't need to call bl twice, I don't have to. I would need to see your configuration to see what's happening. Please, provide your ~/.config/yazi/init.lua and ~/.config/yazi/keymap.toml.

As for the other two issues:

  1. There is no way to load the configuration during initialization (init.lua). I can start dual pane mode using the enable = true option, but when yazi calls init.lua there is still no context, so if I cannot load anything there. It is a current limitation of yazi and how it works. So for now, you will always have to call bl if you want to recover your last configuration (but only once!)
  2. The file ordering problems you see when reading a directory or copying files is a bug in yazi. I submitted an issue for it #1852. I am currently running my own fork of yazi to work around them.

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

No branches or pull requests

2 participants