Confirmation
The tool/kit where the error occurred
joplin-vscode-plugin
Describe the bug
When using a #
in first line of note break the note title after saving.
Steps to reproduce the behavior
- Create a note in joplin
- Name it "Good name"
- Rigth "# Bad name" on the first line of the note
- Open the note in VSCode
- Save the note
- Congratulation, the name of the note break.
log file
{"level":"info","message":"command execute: joplinNote.openNote","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote start, id: 1e2d666a0aa24508be600efc055b51b0, title: Bad Name","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote write tempFile: /home/administrateur/.config/Code/User/globalStorage/rxliuli.joplin-vscode-plugin/.tempNote/Bad Name.md","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote open tempFile","pluginVersion":"0.7.9"}
{"level":"info","message":"command execute: joplinNote.openNote","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote start, id: c7f12ff25eed4942b8116c051aa000c8, title: Good name","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote write tempFile: /home/administrateur/.config/Code/User/globalStorage/rxliuli.joplin-vscode-plugin/.tempNote/Good name.md","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote open tempFile","pluginVersion":"0.7.9"}
{"level":"info","message":"command execute: joplinNote.openNote","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote start, id: 1e2d666a0aa24508be600efc055b51b0, title: Bad Name","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote write tempFile: /home/administrateur/.config/Code/User/globalStorage/rxliuli.joplin-vscode-plugin/.tempNote/Bad Name.md","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote open tempFile","pluginVersion":"0.7.9"}
{"level":"info","message":"command execute: joplinNote.openNote","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote start, id: c7f12ff25eed4942b8116c051aa000c8, title: Good name","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote write tempFile: /home/administrateur/.config/Code/User/globalStorage/rxliuli.joplin-vscode-plugin/.tempNote/Good name.md","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote open tempFile","pluginVersion":"0.7.9"}
{"level":"info","message":"command execute: joplinNote.openNote","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote start, id: 1e2d666a0aa24508be600efc055b51b0, title: Bad Name","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote write tempFile: /home/administrateur/.config/Code/User/globalStorage/rxliuli.joplin-vscode-plugin/.tempNote/Bad Name.md","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote open tempFile","pluginVersion":"0.7.9"}
{"level":"info","message":"command execute: joplinNote.openNote","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote start, id: c7f12ff25eed4942b8116c051aa000c8, title: Good name","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote write tempFile: /home/administrateur/.config/Code/User/globalStorage/rxliuli.joplin-vscode-plugin/.tempNote/Good name.md","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote open tempFile","pluginVersion":"0.7.9"}
{"level":"info","message":"command execute: joplinNote.openNote","pluginVersion":"0.7.9"}
{"level":"info","message":"openNote start, id: 1e2d666a0aa24508be600efc055b51b0, title: Bad content","pluginVersion":"0.7.9"}
{"level":"info","message":"command execute: joplinNote.showLogFileDir","pluginVersion":"0.7.9"}
Additional context
It seems that the plugin display the note name on the first line as "# Title".
If note already contain a "#Content" on the first line, it skip the adding of the true title.
Then, when saving using the "#Content" as title and rename the note with the wronf name.