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(action): prevent collapse_dirs from trying to open file #351

Merged
merged 1 commit into from
Dec 26, 2023

Conversation

jamestrew
Copy link
Collaborator

@jamestrew jamestrew commented Dec 26, 2023

Previously, opening a directory with one file with collapse_dirs set to true would result in the open_dir action trying to refresh the picker with that file as the new path. This caused fd to error out since a file isn't a valid folder. This was caused by a bad truthy check.

Corrected this behavior to open folders regularly with collapse_dirs if the selected folder only contains one file.

closes #348

@jamestrew jamestrew linked an issue Dec 26, 2023 that may be closed by this pull request
Previously, opening a directory with one file with `collapse_dirs` set
to true would result in the `open_dir` action trying to refresh the
picker with that file as the new path. This caused `fd` to error out
since a file isn't a valid folder. This was caused by a bad truthy
check.

Corrected this behavior to open folders regularly with `collapse_dirs`
if the selected folder only contains one file.

closes #348
@jamestrew jamestrew force-pushed the 348-bug-when-using-collapse_dirs-set-to-true branch from 1566e79 to 5fe5573 Compare December 26, 2023 20:16
@jamestrew jamestrew merged commit 4bd5657 into master Dec 26, 2023
4 checks passed
@jamestrew jamestrew deleted the 348-bug-when-using-collapse_dirs-set-to-true branch December 26, 2023 20:20
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.

Bug when using collapse_dirs set to true
1 participant