vscode-bookmarks icon indicating copy to clipboard operation
vscode-bookmarks copied to clipboard

Support sorting (Label/Line Preview, Path…)

Open 919Studios opened this issue 5 years ago • 10 comments

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!

919Studios avatar Jun 12 '19 01:06 919Studios

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.

alefragnani avatar Jun 24 '19 23:06 alefragnani

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.

fabb avatar Dec 05 '19 08:12 fabb

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

alefragnani avatar Dec 07 '19 19:12 alefragnani

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.

fabb avatar Dec 07 '19 21:12 fabb

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!

penguin020 avatar Jan 27 '22 15:01 penguin020

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

liushichuan avatar Mar 04 '22 16:03 liushichuan

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

B0J1 avatar Apr 15 '22 19:04 B0J1

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.

alefragnani avatar Jun 21 '22 00:06 alefragnani

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

DeathPoem avatar Oct 20 '22 13:10 DeathPoem