posit-dev / posit-dev/positron
Improve handling of long paths in workspace switcher dropdown
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 184
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 195
Description
Originally posted by @ariebh in https://github.com/posit-dev/positron/discussions/5287:
It can be difficult to identify projects in the recently used section of the project menu when it is stored at a location with a long path. The width of the menu restricts how much of the path can be displayed, cutting of the project's enclosing folder.
I'll often see something like this C:\Users\Username\Documents\a\very\long\path\to\the... when attemting to access a project at C:\Users\Username\Documents\a\very\long\path\to\the\project\project-name. Truncating the path from the start rather than the end would improve this. ...\path\to\the\project\project-name
Preferred behaviour would be closer to that of the project menu in RStudio. In RStudio, recent items are displayed using project names, with paths shown only if there is a naming conflict in menu.
I'm unsure if this has already been discussed, or if I should create an issue for this.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is named. Start by locating the workspace switcher dropdown and its recently used project rendering, then compare the current path display with the requested behavior. Done means long paths preserve the project name and recent projects use project names unless a naming conflict requires paths.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100