worktrunk icon indicating copy to clipboard operation
worktrunk copied to clipboard

Support wt.toml at project root

Open tobeycodes opened this issue 8 months ago • 2 comments

In my opinion we should support wt.toml at the root of the repository and the .config folder. I personally do not know other tools that use project specific configs within the .config folder working on rust and typescript projects. It would be nice to not have to use a .config folder for only one file and keep the config with other config files I have at the root of my project.

tobeycodes avatar Mar 30 '26 03:03 tobeycodes

Thanks for the suggestion! I searched the codebase and confirmed that project config is currently only loaded from .config/wt.toml — there's no fallback to a root-level wt.toml.

The config resolution path is in src/git/repository/config.rs (project_config_path()), which always constructs the path as <worktree_root>/.config/wt.toml.

I'll leave it for a maintainer to evaluate and prioritize.

worktrunk-bot avatar Mar 30 '26 04:03 worktrunk-bot

I hear you, but I don't think it's worthwhile to have multiple places.

I hope more tools move to .config to free up the root! worktrunk isn't the first, hopefully won't be the last...

max-sixty avatar Mar 30 '26 06:03 max-sixty