alefragnani / vscode-bookmarks

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

[FEATURE] - drag & reorder in side bar #378

Closed LighghtEeloo closed 3 years ago

LighghtEeloo commented 3 years ago

Drag the side bar files and reorder as in the vscode explorer.

Possible implementation: read from the json file, find the src index, find des index, pop and insert.

Significance: This is very convenient for sorting out the bookmarks.

alefragnani commented 3 years ago

Hi @LighghtEeloo ,

Unfortunately, there is no API available for drag and drop. There is an open issue asking for this on VSCode repo https://github.com/microsoft/vscode/issues/32592, but no ETA.

Hope this helps

LighghtEeloo commented 3 years ago

Thank you @alefragnani .

Sorry I didn't expect it to be such an impossible task. >_<
I guess we'll have to wait then.

But this extension is still very helpful, I've been enjoying it. Thanks!

alefragnani commented 3 years ago

No need to be sorry. I agree it is an unexpected limitation, but I think it would be available somewhere in the future.

I’m glad to know you like the extension. It’s one of my favorites 😬

Thank you

alefragnani commented 3 years ago

Hi @LighghtEeloo ,

Instead of drag and drop, wouldn’t sorting (#435 ) or grouping (#159 ) be alternatives?

LighghtEeloo commented 3 years ago

I agree. That can be a solution.

Tired of waiting for vscode team to get the drag and drop done, I think the alternatives aren't bad.

Feel free to close. If anything new happens to the API, I'll consider open again. Thank you :-)

alefragnani commented 3 years ago

That's great! I'm planning both features for upcoming releases.

Stay tuned.