nextcloud / nextcloud/files_mindmap

[Feature] Name exported files according to the *.km file

Open
#147 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.