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

Add Tracking of Project Root #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Talia-12
Copy link

This adds a cog which determines which directory should be the project root (which is then where the .helix directory is placed), currently based on searching for existing .helix directories, then .jj directories, then .git directories, saving the project root as the first in the current directories parents that contains a .helix, and then if none do the first containing a .jj, ect. If none are found it uses the helix config folder instead of a .helix folder, which will help prevent .helix folders appearing everywhere. There are also functions provided to allow the user to set the project root and helix paths directly.

IMPORTANT: This relies on the parent-name function in my fork of steel, which I've already made a PR adding to steel. (Also this kind of feels like something that should be determined by helix itself rather than a plugin, but it isn't currently so here we are.)

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 this pull request may close these issues.

1 participant