alefragnani / vscode-bookmarks

Bookmarks Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks
GNU General Public License v3.0
1.65k stars 161 forks source link

[FEATURE] - Bookmarks sorted in the order they were added #694

Closed xstar2091 closed 2 months ago

xstar2091 commented 4 months ago

Currently, bookmarks are added in order of line number. For example 1 add bookmark 'a' 2 3 add bookmark 'c' 4 5 add bookmark 'b' I add bookmakr 'a' at line 1, and then add bookmark 'b' at line 5, and then add the last bookmark 'c' The bookmakrs shown in the explorer is 'a' (Ln 1, Col 1) 'c' (Ln 3, Col 1) 'b' (Ln 5, Col 1) Will you please sort bookmarks in order of line number? In this case, the bookmarks shown in explorer is ‘a' (Ln 1, Col 1) 'b' (Ln 5, Col 1) 'c' (Ln 3, Col 1)

alefragnani commented 3 months ago

Hi @xstar2091 ,

Are you asking to sort bookmarks by the order they were added (using a timestamp approach), or is it by its label (a, b and c)?

If it is the order they were added, the request is similar to #183, which asks for a stack bekavior and requires reengineering in the engine. On the other hand, if you are asking a sort by label approach, issue #217 asks for the same.

Could you confirm your request is a duplicate of any of these?

Thank you

alefragnani commented 2 months ago

I'm closing this issue because no new comments has been added since my last question, and the requests seems to be duplicates. Feel free to reopen/comment providing more details, if you think it is not a duplicate.

Thanks for your understanding

xstar2091 commented 3 weeks ago

Is the "Stack sorting/jumping behavior"(#183) supported? I need this feature, but not find how to use it in bookmarks plugin. I do not find how to support stack sorting behavior in google.