tommyme / vscode-bookmark-x

Drag-and-drop, grouping, sorting bookmarklet plugin
GNU General Public License v3.0
19 stars 3 forks source link

One feature maybe need to improve. #2

Closed man8266 closed 4 months ago

man8266 commented 4 months ago

As I mentioned in https://github.com/alefragnani/vscode-bookmarks/issues/655, the problem of it sometimes take too much time to show current bookmark label on current line can be avoided if I open Secondary Side Bar which always used to display all current bookmarks.

I feel another feature is very used, when I go through a huge code base, I will add a label such as 755 to current line (here it call function B) in function A. After I checked all code of function B, I go on reading code in function A, then at a later point, A will call function C, now I want bookmark this line (here it call function C) as 755.

In current available feature of Bookmark X, I may need several steps: 1, If I forget the label (here it is 755), I need click this line and display that label first. 2, Then remove the label 755 on that line.

  1. Click the new place which call function C, and add label 755 to here.

If we can change here, add a new command, or change the behavior of toggle Label command, besides it allow us to add a new label, let it also allow us give us another option: whether we want to use the last added label to here (also remove the label to its last line), namely whether we want replace the last added label to this line.

If this can be provided, it will be great.

Anyway, by now, I think Bookmark X is the best bookmark extension in VS code.

Thanks.

tommyme commented 4 months ago

ok, that functionality sounds good, I'll add it in few days

by the way, which version are you using RELEASE version OR BETA version currently, BETA version and RELEASE version are very different because the support of workspace in the future, RELEASE version will be upgraded to support workspace

the new feature will probably add to BETA version

man8266 commented 4 months ago

I think I am using RELEASE version. Because I see: bookmark X v0.1.7. There has an option "switch to Pre-Release version".

More Info: Published 2024-03-09 Last released: 2024-04-06 Last updated: 2024-06-23

tommyme commented 4 months ago

ok,you can stay on release now, I will write a document to introduce how to migrate to beta.

tommyme commented 4 months ago
man8266 commented 4 months ago

I tried this pre-release version. "toggle bookmark force" works. "save bookmarks in workspace" and then "load all workspace state " can get all bookmarks back.

Thanks.