hauke96 / GeoNotes

A simple app to create georeferences notes.
GNU General Public License v3.0
55 stars 10 forks source link

Copy and paste of notes #53

Open hauke96 opened 2 years ago

hauke96 commented 2 years ago
  1. Add copy-button to note popup
  2. Add paste button when note is new

1. Copy button

Add a copy button to the note-popup. The button should copy the content and location of the note to the normal clipboard. When I paste the note in any text field outside of GeoNotes (e.g. in my favorite instant messaging app), the pasted content should look something like this:

description: My great note content
location: lat:12.34 lon:23.45
view online: https://www.openstreetmap.org/?mlat=12.34&mlon=23.45

Ideas: Maybe create another popup to select the kind of thing to copy: Whole note, note text, note coordinate, attachment, etc. But maybe this is another feature to "share" a note with other apps.

2. Paste button

When creating a note and a copied note is currently in the clipboard, then a paste-button should be in the note popup instead of a copy button. When pressing this button, the description from the copied note should be pasted into the new note. The location of the copied note should be ignored.