Skip to content

Fix projectile-find-file-in-directory when in a subdir of projectile-project-root #1488

Closed
@loysollivier

Description

Expected behavior

When using projectile-find-file-in-directory it should open the file in the selected directory.

Actual behavior

It opens the selected file at the projectile-project-root which ends up creating a new file.

Steps to reproduce the problem

Go to a subdir of a projectile-project and run the command projectile-find-file-in-directory select the given subdir. Then select a file in the folder.
File path is incorrect, it corresponds to projectile-project-root + filename when it should be directory + filename.

Projectile version information

Projectile 20191216.2105

Checked and the problem is still in the latest master.

Emacs version

Emacs 26.3

Operating system

Ubuntu 18.04

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