Skip to content

Dispatch Menu Loses default-directory Binding #2046

Description

@kevinjfoley

The new projectile-dispatch command doesn't behave properly when called from projectile-switch-project. After selecting a project, the dispatch menu opens, but commands chosen from the menu run with the current buffer’s default-directory instead of the selected project’s directory.

This appears to happen because the selected project is only available through the temporary default-directory binding in projectile-switch-project-by-name. Since transient suffixes run later, that binding has already unwound by the time a command like projectile-find-file is invoked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions