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

fix: opening directories in splits and tabs opening empty buffers #421

Merged
merged 1 commit into from
Sep 1, 2024

Conversation

mikavilpas
Copy link
Owner

In yazi.nvim, it's possible to open files in new splits (horizontal and vertical) and tabs.

Issue: when opening a directory in a split or tab, and when the setting open_for_directories is set to true, the directory would be opened in a new floating yazi window, and a useless split or tab would be opened with the currently open buffer.

Solution: check if the chosen file is a directory before opening it in a split or tab. If it's a directory, don't open it in a split or tab (do nothing).

In yazi.nvim, it's possible to open files in new splits (horizontal and
vertical) and tabs.

Issue: when opening a directory in a split or tab, and when the setting
open_for_directories is set to true, the directory would be opened in a
new floating yazi window, and a useless split or tab would be opened
with the currently open buffer.

Solution: check if the chosen file is a directory before opening it in a
split or tab. If it's a directory, don't open it in a split or tab (do
nothing).
@mikavilpas mikavilpas enabled auto-merge (squash) September 1, 2024 18:08
@mikavilpas mikavilpas merged commit 88cb633 into main Sep 1, 2024
14 checks passed
@mikavilpas mikavilpas deleted the dont-open-extra-splits branch September 1, 2024 18:11
This was referenced Jan 23, 2025
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

Successfully merging this pull request may close these issues.

1 participant