mongodb-js / vscode

Connect to MongoDB and Atlas and directly from your VS Code environment, navigate your databases and collections, inspect your schema and use playgrounds to prototype queries and aggregations.
https://marketplace.visualstudio.com/items?itemName=mongodb.mongodb-vscode
Apache License 2.0
326 stars 58 forks source link

Feature Request - "Copy Document" option in context menu #144

Closed jcgerhard closed 1 year ago

jcgerhard commented 4 years ago

Feature Request

Having a "Copy Document" option in a documents' context menu

Detailed Description

To get a more fluent way of working with a mongo instance, it would be nice to have this additional option in the mouse context menu of a document entry. Sometimes I need to duplicate documents to fill a collection with dummy data. This feature would make it way more easy to do this.

Context

I have been working with the extension solely for a few weeks now. I really love it beacause there is no need to left VS Code to work on a database anymore. I would like to replace my mongodb client completely with this extension. This feature would make it way more comfortable to use while working the hole day with it.

Possible Implementation

mongo-vscode-document-copy

Anemy commented 4 years ago

@jcgerhard Thanks for the solid suggestions! Happy to hear you're enjoying the extension and finding it useful.

We're doing some improvements to the tree view currently (the next version will have indexes!). I'm not sure if we'll be touching the document context menus just yet, one of the reasons we aren't jumping on it yet is because it's a bit hard to infer which document you're interacting with just based on _id. Probably once we look into https://github.com/mongodb-js/vscode/issues/139 we can do this.

🤔 Maybe we can also have a Duplicate Document option to make the flow you're looking for a bit smoother.

We'll comment here once we've got something in progress or live. Thanks again.

jcgerhard commented 4 years ago

A Duplicate Document option would be really fine! I try to use the extension solely during the last weeks. It's really a pleasure to stay in VS Code all the time. I am collection all the things I personally missing and will report them here as issues. But: it's a great tool just yet! Please keep up the development! I could imagine a complete client replacement.

Anemy commented 2 years ago

Pr open from a community contributor! 🥳 https://github.com/mongodb-js/vscode/pull/419

Anemy commented 1 year ago

This is released in the new 0.10.0 version. Thanks for opening the issue! https://github.com/mongodb-js/vscode/releases

jcgerhard commented 1 year ago

That's great! I thought this project has died. I will test it. Keep up!