scout icon indicating copy to clipboard operation
scout copied to clipboard

editing a note changes the note name and destroys all text formatting

Open lelutin opened this issue 3 years ago • 2 comments

I've just tried using the edit subcommand with gnote and was surprised by the result:

  • the note was renamed to "note name (system:notebook:thenameofthenotebook"
  • all text formatting disappeared

Both of those details are linked to what the following returns:

old_content = self.interface.get_note_content(notes[0])

In the Scout.get_note_content method, the two things are visible:

https://github.com/lelutin/scout/blob/master/src/scout/core.py#L153

the comment on that line mentions that bullet points disappear when splitting lines.

there's probably more to it though since there can be bold text, striked out text and other forms of formatting which will probably be completely invisible to the terminal.

The only way this could be fixed is if the dbus API provided some way to get the note contents with all markup for the formatting. Then we could use the version with markup for the edit action.

lelutin avatar Dec 10 '20 20:12 lelutin