Read this in other languages: English, 中文.
❗Before using, please conduct some tests first, and make sure to backup your code and notes promptly.(timeline in vscode can also be used to recover content)
see medium for more detailed instruction.
separable notes is a VSCode extension that can manage your inline code note, make your note separable.
It can be applied to scenarios sucmh as:
- keep your note private and not committing to the repository that is maintained by many people.
- outline your code and organize you code note in standalone markdown file(
sepNotes.md
). - Reorganize the content of the notes by category (by defining keyword(\s) shown in
sepNotes_category.md
)(or by define @id and @refid, can easily imbed code in arbitrary markdown file)
It is tested on windows 10.
After installing separable notes, you will be able to manage your inline code note.
- separableNotes detachAll:
- detach all notes in this workspace
- separableNotes attachAll
- attach all notes in this workspace
- separableNotes syncMdWithSrc
- export notes in markdown file(in
.vscode/sepNotes.md
) - exort note by category (in
sepNotes_category.md
) - in generated markdown file, you can go to src file by click ctrl+(left button)
- export notes in markdown file(in
- separableNotes.importNotes
- import note from
sepNotes.md
into code(original note will be replaced)
- import note from
- separableNotes NoteIt
- Add Comment or Remove Comment
- separableNotes openSepNotes
- for quick open sepNotes file
- separableNotes.syncPos
- sync
sepNotes.md
pos with src file and vice versa(both file need to be visible)
- sync
- when you edit src file, content can be synced with sepNotes file and vice versa.
noteId can be configurated to identify the line which should be detached(default is SEPNOTES).
if you change this, you should also change the configuration for todo-tree or other plugins.
- From VS Code by searching separable notes
- From marketplace
TODO Tree or other tag Highlighting vscode plugin.
- add tags and customHighlight for new noteId
"todo-tree.general.tags": [
"SEPNOTES"
],
"todo-tree.highlights.customHighlight": {
"SEPNOTES":{
"icon": "note",
"foreground": "#409EFF",
"gutterIcon": true,
"type": "tag"
}
},
"todo-tree.tree.showCountsInTree": true,
"todo-tree.regex.regexCaseSensitive": false,
"todo-tree.general.statusBar": "current file",
- attach action is not needed anymore when adding first note
- handle situation when src file cannot write
sepNotes.md
can jump to src file in detach mode
- refresh
sepNotes.md
after attach if line number diffs(note refresh while not match) - add quick open for other file(
sepNotes_diff.md
sepNotes_category.md
) - add support for reorganizing note in category(shown in
sepNotes_category.md
) - fix sync bug(sync src file with
sepNotes.md
) - save needrefresh state
separableNotes syncMdWithSrc
Commands now can syncsepNotes_category.md
with src file- add
separableNotes.importNotes
to import notes fromsepNotes.md
into code - backup
sepNotes.md
before refresh content(backup file issepNotes _bak.md
) - change root path to
.vscode/sepNotes/
- limit file sync speed to avoid typing delay
- add hint when note position is not appropriate(code below note is important when rematch is needed)
- add
separableNotes.syncPos
to syncsepNotes.md
pos with src file and vice versa(tow file need to be visible) - fix save state bug(
e.toJSON is not a function
)
- can add user defined content in the begin of
in sepNotes.md
- fix the bug that (cannot adjust note pos when attach)
- remove src and markdown file alignment
- adjust note line when attach file(file may changed in detach status)
- sync notes with standalone markdown file for summarize and easy to view
in sepNotes.md
- this file also record information about file attach status and sync time
- can easily open this file by clicking on the menu
- add @id and @refid to mbed code in arbitrary markdown file
- First working version
- If you have any questions, feel free to ask and I'll get back to you at the weekend.
- adjust note pos
- reorganize note in category
- import notes into workspace
- record note history
Please star ⭐ it if you like it, Thanks.
Thanks to todo-tree