nextcloud / nextcloud/files_mindmap
[Feature] Name exported files according to the *.km file
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 197
- Forks
- 52
- Avg merge
- 22h 14m
- Merged PRs (30d)
- 13
Description
Currently the exported file is always named "export.png" or pdf accordingly.
It would be better to have a more describing name. Using the mindmaps filename seems logical here.
So opening the file fancy_notes.km and exporting as png saves a file fancy_notes.png
In the console I can get the current Name with window.parent.OCA.FilesMindMap._file.name.split('.').slice(0, -1).join('.')+".png"
Thank you!
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 by tracing the export flow from the JavaScript entry point exposed as window.parent.OCA.FilesMindMap._file. Check how the current export.png or PDF filename is chosen and use the opened .km file's basename with the selected export extension. Done means fancy_notes.km exports as fancy_notes.png or fancy_notes.pdf.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100