Drag-and-drop, grouping, sorting bookmarklet plugin
If you encounter any problems with the plugin, feel free to raise an issue on my github to help me make it better! and feel free to suggest improvements to the code implementation
- there is no default key map, define yourself.
- there many useful commands defined in vscode command palette, if you are not familiar with it, I suggest you read this document, it will greatly improve your efficiency in using vscode.
- Run command from the command palette by pressing (
Ctrl+Shift+P
orCmd+Shift+P
on Mac) and typebookmark_x ...
- drag and drop
- customized bookmark svg icon(set in settings)
- nested group
- activate group(new bookmarks'll be added here)
- bookmark count(shown on badge)
toggle bookmark
: toggle bookmark on current linetoggle lable bookmark
: toggle bookmark and input labeladd group
: add a groupclear data
: clear all data in extensionload bookmarks in workspace
: load bookmarks in{your_workspace}/.vscode/bookmark_x.json
save bookmarks in workspace
: save bookmarks in{your_workspace}/.vscode/bookmark_x.json
reveal bookmark in current line
: show the bookmark on current line
- multi drag and drop support
- save customized svg bookmark icon in extension for select and switch
- better performance
- reveal bookmark in tree view
- bookmark search
- pin bookmark/group
- when using alt + up/down to move line, you need to pay attension to the bookmarks of the rows you are moving.
- If two adjacent lines have bookmarks, deleting from the beginning of the next line to merge the two lines will cause the bookmarks to merge, and the merging of bookmarks cannot be undone.
- when using git or svn to pull code from repo, If there are bookmarks in the updated file, it is not possible to anticipate changes to bookmarks. bookmarks in other files are unaffected.
- Formatter large changes to the document may also cause bookmarks to be misplaced
Commonly used object relation figure is shown below.
graph LR
controller --> tree_data_provider
controller --> root_group
tree_data_provider --> controller
tree_data_provider --> root_group
treeview --> controller
tree_data_provider --> treeview
- Bookmark Movement Logic
bookmark x 0.1 and 0.2 are using different data strcture to store bookmark data.
if your bookmark x is upgraded to 0.2 and there is no bookmark data, don't worry, your data is safe.
you can switch to old version bookmark x and use command >save bookmarks in workspace
in command palette to save your bookmarks in project with json format