-
Type: New Feature
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Shell
-
Labels:None
-
Environment:Terminal.app on OS X mongo shell version 2.0.1
I don't think this is a readline vs. linenoise different...
It would be nice to consider an entire query/command to be the history entry (instead of the lines of the query). For example consider this current output:
> db.events.find(
... {timestamp: {$gte: new Date().getTime() - 10000000}}
... ).forEach(function(event)
... )
If after running that query you hit the up arrow the only thing in your history is:
> db.events.find(
It would be awesome if you could see the whole multi-line command and then be able to edit it in place.