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

ToggleSelectionByPath not working? #295

Closed
fedoranvar opened this issue Jul 4, 2021 · 0 comments · Fixed by #296
Closed

ToggleSelectionByPath not working? #295

fedoranvar opened this issue Jul 4, 2021 · 0 comments · Fixed by #296

Comments

@fedoranvar
Copy link

fedoranvar commented Jul 4, 2021

I have a snippet for selecting nodes with fzf:

    xplr.config.modes.custom.fzxplr.key_bindings.on_key["v"] = {
        help = "fzf toggle selection",
        messages = {
            {
                BashExec = [===[
                PTHS=$(fd --hidden --no-ignore -d 1 . | zsh $DIR_USER_SCRIPTS/fzf/jump )
                while IFS= read -r PTH; do
                    echo ToggleSelectionByPath: "'"${PWD:?}/${PTH:?}"'" >> "${XPLR_PIPE_MSG_IN:?}"
                done <<< "$PTHS"
                ]===]
            },
            "PopMode",
        },
    }

but it's not selecting anything, but it works with SelectPath

Thank you!

sayanarijit added a commit that referenced this issue Jul 5, 2021
sayanarijit added a commit that referenced this issue Jul 5, 2021
sayanarijit added a commit that referenced this issue Jul 5, 2021
sayanarijit added a commit that referenced this issue Jul 5, 2021
sayanarijit added a commit that referenced this issue Jul 5, 2021
sayanarijit added a commit that referenced this issue Jul 5, 2021
sayanarijit added a commit that referenced this issue Jul 5, 2021
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 a pull request may close this issue.

1 participant