make it possible to configure supported filenames for rich workspace
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 659
- Forks
- 133
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 110
Description
Is your feature request related to a problem? Please describe.
the rich workspace feature is awesome, but the list of filename patterns that trigger it is:
- hardcoded in https://github.com/nextcloud/text/blob/62ecb11de6b59bf5f74d6a59b5173a626f8084f2/src/views/RichWorkspace.vue#L54
- english-minded
we use nextcloud in a french context, with no-so-savvy users, and so far provide them readonly shares with a _LISEZMOI.md file (LISEZMOI=README in french) because they:
- understand they have to read it
- and it's the first file in the share, because it starts with an underscore
we were previously using files_markdown/files_texteditor so that they had the markdown rendered when clicking on the files. Since we're switching to the text app, i'm planning to enable the awesome rich workspace feature, because that way the markdown would be displayed straight away when landing in the share. .. but the name doesn't match the patterns, and the patterns are hardcoded.
Describe the solution you'd like
it would be great to be able to override the default list via an occ app:config toggle
Describe alternatives you've considered
mass-renaming all _LISEZMOI.md files, which could lead to user confusion since we've explained them that this file was supposed to be here. and they might not understand README.md either.
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
Start with the hardcoded filename patterns in src/views/RichWorkspace.vue at the linked line. Trace how the rich workspace decides which filenames trigger it, then verify that an occ app:config setting can override the defaults and support names such as _LISEZMOI.md.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100