t3code icon indicating copy to clipboard operation
t3code copied to clipboard

feat: allow manual directory path entry when adding projects

Open eggfriedrice24 opened this issue 8 months ago • 4 comments

Problem

On Wayland (Linux), GTK file picker dialogs have known issues that can make folder selection unreliable or broken entirely. This makes adding projects through the native file picker frustrating or impossible for some users.

Right now I literally can't select folders to test stuff because the GTK picker just doesn't cooperate on Wayland.

Proposal

Bring back the ability to manually type/paste a directory path when adding a project, as an alternative to the native file picker dialog. A text input alongside the existing "Browse" button would be great.

Why

  • GTK file picker on Wayland is buggy for folder selection in Electron apps
  • Power users often prefer pasting paths directly anyway
  • Low effort fallback that unblocks users on broken desktop environments

cc @juliusmarminge @t3dotgg

eggfriedrice24 avatar Mar 12 '26 08:03 eggfriedrice24

Happy to work on a PR for this. If you have a better UX in mind than how it was before let me know. Could also add tab autocomplete for the path input, server returns matching directories for a partial path and Tab fills in the completion, with a dropdown when there are multiple matches. Would feel pretty natural.

eggfriedrice24 avatar Mar 12 '26 08:03 eggfriedrice24

This is kind of high priority for me since it completely blocks adding projects on Wayland right now. Can't really test or contribute much without it.

eggfriedrice24 avatar Mar 12 '26 08:03 eggfriedrice24

@juliusmarminge @t3dotgg ping when you have time please consider this

eggfriedrice24 avatar Mar 13 '26 20:03 eggfriedrice24

You can add the web behavior to Linux. For Mac and Windows we got feedback that there's just extra clicks when the input/browse buttons showed up instead of opening dialog directly

juliusmarminge avatar Mar 14 '26 00:03 juliusmarminge