Qownnotes: Feature Request: Ability to duplicate notes

Created on 12 Feb 2020  路  9Comments  路  Source: pbek/QOwnNotes

Expected behaviour

Right click on a note to duplicate it. Then QOwnNotes would create a copy of that note in the same folder.

The use case would be for me to create note templates and then be able to duplicate them whenever I want to create a note with that template.

Actual behaviour

No option to duplicate the note.

Steps to reproduce

  1. Right click on a note.
  2. See how there is no option to duplicate it. :)
Low Scripting Feature

Most helpful comment

@timunrau Added a simple script for creating a duplicate note. It adds a 'Duplicate selected note' entry in the context menu.
The script is called 'Duplicate note'.

All 9 comments

You could easily do that with the scripting engine in a custom action by

  • taking the text of the current note
  • copying it to the clipboard
  • creating a new note
  • selecting the whole text of the (new) current note
  • pasting the text from the clipboard

see: https://docs.qownnotes.org/en/develop/scripting/README.html

Are you up to the challenge? :muscle:

It's actually even easier:

  • taking the text of the current note
  • creating a new note with the text

You can also do it by just doing Ctrl+C and Ctrl+V the note :rofl:

I realize that all three of these options are ways to do this, but they would require more steps than just right clicking on a note to duplicate it.

No, you can create a custom action that can have a menu entry in the note list context menu.

@timunrau Added a simple script for creating a duplicate note. It adds a 'Duplicate selected note' entry in the context menu.
The script is called 'Duplicate note'.

Thank you, @fnkabit! I will close this issue until there is more information.

@timunrau Added a simple script for creating a duplicate note. It adds a 'Duplicate selected note' entry in the context menu.
The script is called 'Duplicate note'.

Thanks @fnkabit, this works great.

@timunrau That's great, thank you for testing it !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

schiessle picture schiessle  路  7Comments

johanson picture johanson  路  5Comments

BlackCanopus picture BlackCanopus  路  6Comments

wiktor2200 picture wiktor2200  路  5Comments

OlivierHobbes picture OlivierHobbes  路  5Comments