Right-click context menu for Mongosh console window in Compass
Hi, Mongo folks,
I've been using the mongosh window in Compass lately (the dark-background ">_MONGOSH" panel at the bottom), and having a bit of inconvenience with text editing.
Because AFAIK, Compass doesn't have a "script editor" window like SSMS or some IDEs where you can edit a file and execute it, I end up doing a lot of copy-and-pasting between Compass's Mongosh pane and external text editors. I also do a lot of scrolling up and down because the JSON output of Mongo queries and operations tends to be long.
This text copy-and-pasting is a little incovenient, because I have to use Ctrl+C and Ctrl+V and the like, and end up switching my hand back and forth between the keyboard, because I'm not a good enough typist to chord Ctrl+C/V with just my left hand. There seems to be no right-click mouse context menu in the Mongosh area where I could click and do Copy/Paste/Select-All and similar text editing operations, like there is in many text editors and console GUI things. When I right-click in the Mongosh console area, nothing happens.
Maybe you could add a right-click context menu to the Mongosh console area so users could do mouse-driven text manipulation? I think that'd be convenient.
Also, it seems like the Select All action (Edit menu > Select All), when done in the Mongosh console area, limits the selection to one result or one section of the console session. Like, when I click and focus on the part where you're typing stuff in, Select All seems to do nothing. And when I select a bit of a result and do Select All, the selection area is pretty limited, like pictured in this attachment. It would be nice to be able to do a Select All to select the entire mongosh console session contents there, so I could copy it out to a script for records, or to a more powerful external text editor for subsetting and navigating through it. A dedicated File > Save Session Contents As... menu option might not be out of place either.
Cheers,
Andrew
![](https://secure.gravatar.com/avatar/55d8c03cf51b4d0655d857cd496b9b2a?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)