Repository navigation
Backlog
Description
Problem The Desktop session header shows the project name, and never the directory path. At a glance the header cannot answer the one question asked most often while working: which directory is this session in. Two clones of the same repository in different parent folders look identical. The full path exists, but it is behind a menu: the app offers "Copy working directory" and "Copy Session ID" as actions, so the data is there while the header stays silent. The CLI already answers it in one line: its status line has a cwd item ("Current directory") rendered through tildifyCwd, which rewrites the home prefix as ~. ### Proposal Use the empty middle of the header — the gap between the project chip, the title and the actions — to show the session's path next to the existing chip rather than replacing it: 1. Path abbreviated the way the CLI does it (~ for home), truncated from the left so the last one or two segments stay whole and the parents shrink. 2. Muted colour at the chip's size, reading as secondary and not competing with the title. 3. Clicking the path opens a context menu: Copy full path, Open in Explorer (Finder on macOS), Open in terminal. The first already exists as "Copy working directory"; the terminal entry only has to focus the existing terminal tab, which already starts in the session's directory. 4. Hovering shows the full value in a tooltip. 5. Updates in place when the session moves. 6. When the header gets narrow, drop the path before the title collapses. One caveat worth designing around. The middle of the header is the window drag region on platforms with a hidden titlebar, and Chromium only recomputes drag regions on layout, so a region inside the scrolling header stays behind on scroll. Text that has to be selectable and clickable must be an interactive island excluded from the drag region, not a label painted into it. Optional: make it a header setting, default on, so the minimal header stays available. ### Acceptance criteria - A session opened in D:\work\project-a shows a left-truncated ~\…\project-a-style path. - Clicking it offers copy, reveal and terminal entries; copy puts the full absolute path on the clipboard. - Resizing the window narrows the path before the title. ### Environment Command Code Desktop 0.1.63, Windows 10 (build 19045) x64.
Metadata
Metadata
Assignees
Labels
No labels
Activity