scout
scout copied to clipboard
editing a note changes the note name and destroys all text formatting
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.