dendron
dendron copied to clipboard
Recent Dendron Workspaces: Remove deleted workspaces
Please select if your request is either something new or an enhancement
- [x] Enhancement of an existing Feature.
- [ ] Request of a new feature.
Please select the area your request applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)
- [ ] Workspace - VSCode workspace, vaults, Intellisense/autocomplete, Dendron settings
- [ ] Lookup - Dendron's Lookup Command
- [x] Views - Dendron Preview, Tree View, Side Panels in the UI
- [ ] Schema - Dendron Schemas
- [ ] Pod - Data import from / export to Dendron
- [ ] Publish - External Site Publish
- [ ] Markdown - Markdown features, such as syntax support and features
Is your feature request related to a problem? Please describe
A user on Discord had problems with leftover Dendron workspaces showing up in the RECENT DENDRON WORKSPACES
view in the side panel. It seems like they were using new VSCode instances every time they wanted to pick a Dendron workspace.
Describe the solution you'd like
Remove workspace from list when cllicking a deleted WS
Describe alternatives you've considered
Manual edit of ~/.dendron/meta.json
. But the location is not abvious and editing it can break the json. Making it more convenient does not hurt.
Additional context
Enhancement of feature #3052
Example (manual edit, ignore that it is more than 5):
I don't think this is a very common use case, but if the changes are minimal it might be worth looking into. Also I can imagine several scenarios where the list of workspaces might become longer and longer over time or where a user creates 5+ test workspaces and then can't find the original workspace anymore.
Thanks for enhancement request @wookiefriseur. Your suggestion makes sense. We will ping here when this gets implemented.
Has this problem been resolved?
No, as of v0.124.0
. The pre-release version v0.124.31
looks the same there.
Dendron is not being actively developed at the moment, but I'm sure PRs may still be accepted.
If it is a major issue for you, you could use a shell script to automatically clean non existing workspaces. For instance jq
in bash or ConvertFrom-Json + ConvertTo-Json
in powershell to edit ~/.dendron/meta.json
or $ENV:USERPROFILE\.dendron\meta.json
.