Repository navigation
Replies: 5 comments
|
I would also like an option to change the destination folder directly in the New project dialog, not only a setting for the default root. Suggested flow:
For a desktop client connected to a remote server, the folder picker should browse the selected server’s filesystem, rather than the client machine’s filesystem. For example, using T3 on macOS with a Linux homeserver should let me choose where the repository is created on that homeserver. Keep the existing location as the default, and leave existing projects untouched. A configurable per-server default plus a per-project override would cover both workflows without needing to create a folder separately and then use Add project. |
|
I would also find a per-environment New projects are created in setting useful. It would let users keep new repositories in their preferred location without a symlink or relocating T3's application data. The proposal above covers the request: show the configured destination in the New project dialog, apply it only to newly created projects, and report a clear error if the destination is unavailable. |
|
My use case: T3 runs as a service on a headless Linux server, and I do a meaningful amount of development from the iOS app, including starting new projects. I keep all repositories in one folder on that server so that all dev work has a standard source of truth ( This setting would be useful from T3 desktop too, but I want to add the mobile side: it should be editable from the mobile (iOS) app. It belongs to the server, so any client connected to that environment should be able to view and change it. Then I could set where new projects go and create them from my phone. For now I've symlinked |
|
+1, this would be really useful. I keep all my repositories in one projects folder, and I want New project to create them there instead of under the T3 home, without symlinking or moving the whole T3 home with It looks simple to build: the server already resolves one root for named projects ( If maintainers approve this as a feature, I am happy to write the PR, either by rebasing #18905 (it has merge conflicts and no activity since 13 Oct) or as a fresh, smaller PR, whichever you prefer. |
|
+1 for the setting, plus the per-project choice that @jorgitin02 suggested above. I'd like both.
This keeps New project, Local folder and Clone as separate flows, and keeps "where the browser opens" apart from "where new projects go", as in #14960. Happy to open a PR for the per-project part once a maintainer is OK with the direction. |
Uh oh!
There was an error while loading. Please reload this page.
Problem
New project always creates its folder at
<T3 home>/projects/<slug>(normally~/.t3/projects/<slug>). No setting changes this. If you keep your repositories somewhere else, like a data drive, you end up with projects in two places. The only ways to change the location today are:~/.t3/projects, orT3CODE_HOME/--base-dir, which also moves the database.In #14960 the maintainers agreed that this shouldn't reuse "Add project starts in", since that setting only controls where the folder browser opens. They suggested a separate setting instead. This is that proposal.
Proposal
Add a server-scoped setting, New projects are created in, next to "Add project starts in" in Settings.
<baseDir>/projects. Nothing changes for existing users.<configured dir>/<slug>.How it fits what's already there
ServerConfig.newProjectsRootto clients. The web, desktop and mobile apps already use it for theGoes in <root>/Creates <path>preview. If the server computesnewProjectsRootfrom the setting (falling back to<baseDir>/projects), the clients mostly just need the settings row.namedProjectsRootinManagedProjectFolderswould read the setting instead of hard-codingpath.resolve(config.baseDir, "projects").Edge cases to decide
~/.t3/projectswithout telling you.git init. That's the same reasoning the code comment already gives for~/.t3/projects.Alternatives considered
addProjectBaseDirectory: rejected in Create New Project ignores "Add project starts in" and always uses~/.t3/projects#14960 because it mixes up "where the browser opens" with "where T3 creates repos".~/.t3/projects: works, but it's invisible in the UI and easy to break.Related: #14960, #14527, #14569, #11756
All reactions