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 162 forks source link

Support sorting (Label/Line Preview, Path…) #217

Open 919Studios opened 5 years ago

919Studios commented 5 years ago

Check out the screenshot. I was wondering if you would be able to add a sorting option like this to bookmarks settings: can_this_be_added_to_bookmarks_feature_request Bookmarks is really helpful. Thank you for all your work on it!

alefragnani commented 5 years ago

Hi @919Studios,

First of all, thank you for your kind words. I'm glad to know you like the extension! 👍

Right now, the bookmarks are sorted only by Line Number and grouped by File and Workspace. Support sorting by Name(label / line preview) and Path should be straightforward (grouped or not), but Recent, on the other hand, is not. There is no such info in its engine, and I'm not sure the easiest way to do that, but I'll take a look.

Thank you for your suggestion.

fabb commented 4 years ago

Being used to the Bookmark feature of IntelliJ, I really miss bookmarks being sorted by "Recent" by default (most recently added on the top). Always when I open the bookmark list, I am very confused on where the bookmark went I just added, and I need to go through all of them one by one, which defeats the purpose of the bookmarks extension saving time. This feature would improve this great extension a lot.

alefragnani commented 4 years ago

Hi @fabb ,

I never used IntelliJ itself, just Rider recently, but I guess both share the same Bookmarks functionality. Honestly I don't remember how it works, but I'll try to revisit it.

Personally, I don't miss any sorting at all, because in my workflow, when I'm finding bookmarks, I prefere to type the content that I'm looking for (instead of visually look for the bookmarks), filtering the results. But I totally understand the need 👍.

To me, the Recent sorting is more like a Stacked Bookmark, present in some other editors. Just like I commented above, it needs reengineering ..

Hope this helps

fabb commented 4 years ago

Yeah, should be the same in Rider, it‘s also the same in AppCode. For me it‘s like a clipboard history which is also sorted chronologically, fits like how I work with it.

penguin020 commented 2 years ago

Sort by label should be simple to implement, and at least we could order things by labeling our bookmarks as a, b, c, et cetera.

I use bookmarks when I have a bunch of related code across files that I need to access in some type of order..

Thanks for the great product, and everyone who can should donate!

liushichuan commented 2 years ago

Hi, bookmarks are great and very useful, I use them to help read c++ source code, if the tags can be sorted according to the time of creation, it will be a great tool for sorting out the code flow

B0J1 commented 2 years ago

Another extension https://github.com/alefragnani/vscode-numbered-bookmarks is what I want. But how about merging it to this extension?

alefragnani commented 2 years ago

HI @B0J1 ,

No intention. Both extensions shares some features (that makes sense), but have two different objectives.

The Numbered Bookmarks extension was created to mimic the Delphi experience I loved throughout the years, and I'm keeping it simpler. This one, on the other hand, is a more featured experience with Side Bar, Selection, Customizations, Tags, etc. And plans to evolve it even more.

DeathPoem commented 1 year ago

what if someone provide this feature and make a merge request ?

yurymann commented 1 week ago

Just wanted to bump this request as it seems to be stale. I'm another former IntelliJ user who is missing the most-recently-used sorting. Even though this is the best vscode bookmarks extension I've found, I almost stopped using bookmarks because it's often quicker to find the file or symbol again than visually scan the Bookmarks view. In IntelliJ, I used bookmarks all the time: it's very efficient to open the Bookmarks window and select between last 2 or 3 bookmarks with a couple of key presses, without deleting the other 10 bookmarks which may still be useful.