contacts icon indicating copy to clipboard operation
contacts copied to clipboard

Save Contact notes to Notes app

Open sunjam opened this issue 6 years ago • 7 comments
trafficstars

This casual request is for Contact notes to be accessible for viewing and editing within the Notes app.

sunjam avatar Oct 04 '19 03:10 sunjam

@korelstar, is there an easy way? :) Is there an api for this? Ref the bookmark thread here: #1272

skjnldsv avatar Oct 04 '19 04:10 skjnldsv

It depends on where the actual note should be saved. I see the following possibilities (see also https://github.com/nextcloud/notes/issues/389#issuecomment-541391749):

use existing attribute field in contact

Currently, the notes app uses files in order to save notes. This has to be extended by another storage-backend for notes in a contact. Such notes could be shown in a special category (e.g. "Contacts"). Creating notes in that category from the notes app can't be possible due to the missing contact.

This approach requires some major changes in the notes app. Furthermore, the impact on the REST-API has to be evaluated.

link external note from contact

In this approach, the note is saved using existing means (I.e. a file in the file system). The notes app needs to provide an URI for creating and opening a new note (should be easy). But the contacts app has to manage the link from contact to the actual note. This could be done by saving the note's id in the contact's note field together with a special marker that indicates, that the note is saved externally.

Issues have to be solved for use-cases like deleting a contact (linked note should be deleted, too) and opening the linked contact from notes app. Furthermore, the note's content is not editable anymore from another contacts app (e.g. the contacts app on your smartphone).

edit in text-app instead

Another possibility would be to not connect contacts app and notes app, but open contact's notes in the new text editor. The notes app will also use that editor in the future, so you will have the same markdown editor across apps. This should be the easiest approach. However, you don't have your contacts' notes directly in the notes app.

korelstar avatar Oct 13 '19 06:10 korelstar

I think what OP wish is a way to export a note from a contact and directly open the notes app with the already filled text ?

skjnldsv avatar Oct 13 '19 07:10 skjnldsv

Oh, then please clarify this issue, @sunjam !

korelstar avatar Oct 13 '19 08:10 korelstar

Just like for "Save contact website" let’s keep it simple :) ( https://github.com/nextcloud/contacts/issues/1272#issuecomment-570118890 )

Design-wise:

  • Instead of the delete icon, we show a 3-dot menu with "Save to Notes" and "Delete" (of course only when Notes is installed)
  • "Save to Notes" simply saves it into the root Notes folder, no category or anything
  • Gives tooltip feedback saying "Saved to Notes [ Edit ]" in case people want to edit it.

That’s a simple first implementation. :)

jancborchardt avatar Jan 02 '20 05:01 jancborchardt

The count of very closely related discussions is becoming unmanageable, indicating a clear need to consolidate specific requests into general discussions. In the present case, the author of this issue has already created a more general discussion of the same flavor as the current one.

I strongly suggest closing this issue, as well as any others that are redundant or special cases of open, productive discussions.

brainchild0 avatar May 01 '20 08:05 brainchild0

@brainchild0 I will not close this. It is doubtful specific app devs will be kept aware of what is going on if the issue is closed in their repos. The fact that they've been so responsive shows they obviously care; hopefully they can figure out what they want to do to better streamline communication. :heart:

Any discussion we continue should move to the forums.

sunjam avatar May 01 '20 18:05 sunjam