-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"edit" command polluted with ASCII color codes #13
Comments
Good catch, thanks. |
Wonder if @tadmarshall would have any input on how to get that working. I would like to fix this as well because I use the edit command heavily. |
Hi, thanks for the great work. Any update on this issue? I really like the work but without edit it's not really practical for me, since I use edit a lot. Or any quick fix would also be good. |
It's harder than it looks. Two ideas: We can make a shim for the Or possibly make it so the invocation of tojson passes additional params that indicate it was invoked from edit: // Convert "whatToEdit" to JavaScript (JSON) text
if ( !shellMainScope->exec( "__jsout__ = tojson(" + whatToEdit + ")", "tojs", false, false, false ) )
return; // Error already printed |
@TylerBrock I have a hacky fix which seems to work (and doesn't require modifying the With some experimentation it seems like NB: the changes in my commit are continuing from #107 (not current master). |
That could work. I like it. I'm going to merge #107 right now let me think about this one a bit more and see if there is anything else we could do. Will let you know this week. |
+1. stennie/mongo-hacker@910abec works nicely for me too. |
@stennie lets put up a PR for those changes whenever you get a chance. I'd like to have that work for everyone even if it is hacky. |
+1 would love to be able to use edit |
Sorry about this. I'd like to take a look at this but don't have the time at the moment. I would, of course, be willing to accept a pull request if you wanted to take a stab at it. |
Ooh! Forgot about this as I've been happily using on my local. I'll rebase and make a PR :) |
You've got a patch @stennie?! Hooray! |
Reverted Fix #13 which interferes with ReplSetTest() command
obj = db.mycollection.find().pretty()
edit obj
The text was updated successfully, but these errors were encountered: