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

Commits on Dec 26, 2023

  1. fix(action): prevent collapse_dirs from trying to open file

    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 committed Dec 26, 2023
    Configuration menu
    Copy the full SHA
    5fe5573 View commit details
    Browse the repository at this point in the history