Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Feature]: Rename Project #1370

Closedtarwin(GitHub profile, opens in a new tab) opened this issue 2 comments

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I am describing a concrete problem or use case, not just a vague idea.

Area

apps/desktop

Problem or use case

Being able to rename threads is great, but you cannot rename projects without changing the underlying directory name.

This image shows an example where this may be confusing.

Image

Proposed solution

Right-click on a project to "Rename project".

Why this matters

We could have multiple projects with the same name. For example we might have directories called backend or server for multiple different things we are working on.

Smallest useful scope

I think this is as small as possible.

Alternatives considered

No response

Risks or tradeoffs

No response

Examples or references

No response

Contribution

  • I would be open to helping implement this.
  1. tarwin(GitHub profile, opens in a new tab) added labelsenhancement

  2. tarwin(GitHub profile, opens in a new tab) added labelsneeds-triage

  3. Maybe we can clarify if it is actually that simple by some sample images. Because I see two options for this to actually work and not destroy existing functionality.

    Option Context menu

    Image

    Just right click. Select what you want to do rename project or change directory.

    Image Image

    Option interactive surfaces

    A little more intuitive it could be to click on

    • the folder icon to change directory,
    • the name to rename the project,
    • the arrow to expand/collapse chats or
    • the pen and paper to add a chat

    But this would fragment the project header into quite a substantial number of small parts. It needs to be made sure that every part has enough space to be reliably clickable.

    Conclusion

    I like both options combined to keep it accessible for everybody to be hones.

    In my short test this would result roughly in a change of Sidebar.tsx of around 260 lines of code regarding project rename (double-click + context menu), change directory (inline path bar + context menu), favicon click handler. This did not take into account a reduction of the clickable area for collapsing/expanding which I did not implement.

    If you want the code changes let me know. I won't clutter this otherwise.

  4. +1 on this one. I would love to have this

  5. juliusmarminge closed this

Sign in to join this conversation.