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

[Question] How to use 'project_dir_pattern' #21

Open
steakhutzeee opened this issue Apr 12, 2024 · 1 comment
Open

[Question] How to use 'project_dir_pattern' #21

steakhutzeee opened this issue Apr 12, 2024 · 1 comment

Comments

@steakhutzeee
Copy link

Hi,

could you please clarify the use of the following configuration?

-- this controls the behaviour of `CdProjectAdd` command about how to get the project directory
project_dir_pattern = { ".git", ".gitignore", "Cargo.toml", "package.json", "go.mod" },

From the description it's not clear what it does.

Thank you.

@vague2k
Copy link
Contributor

vague2k commented Apr 12, 2024

The comment sums up nicely what the config option is supposed to do. If the directory you're trying to add doesn't have any of those files/dir in them, It shouldn't be added to you JSON file.

Although... while testing it, it seems like it's not working as intended, I'll look into this soon.

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

No branches or pull requests

2 participants