nextcloud / nextcloud/richdocuments

Add option to overwrite in export to PDF dialog

Open
#4,771 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement
Dominant language
JavaScript
Stars
453
Forks
147
Avg merge
14h 54m
Merged PRs (30d)
83

Description

Is your feature request related to a problem? Please describe.
When I export a document (typically would be odt to pdf), and the document already exists, an increasing integer number is added as suffix to the exported document name.

Describe the solution you'd like
When I export a document (typically would be odt to pdf), I'd like to be offered the option to overwrite the document if it already exists.

Describe alternatives you've considered
Delete the existing document before re-exporting.

Additional context
Multiple copies of the same file makes the working environment harder to work with. If I delete the existing document, I need to go to trash if I have to recover it. Nextcloud has a good versioning system that elegantly solves the situation in which I need to restore a previous version of the file that makes useless the rename action that happens now.

I'm not sure however, if this request belongs here or it is best to move it in the Collabora Online repo.

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 locating the export-to-PDF dialog in this repository and determine whether the requested behavior belongs in richdocuments or Collabora Online. Trace how an existing destination is renamed, then define completion as offering overwrite when the exported document already exists without creating a suffixed copy.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.