[SERVER-4288] Shell multi-line history Created: 15/Nov/11  Updated: 15/Nov/11  Resolved: 15/Nov/11

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Andrew Harbick Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Terminal.app on OS X mongo shell version 2.0.1


Participants:

 Description   

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)

{ ... print(e.timestamp); ... }

... )

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.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 15/Nov/11 ]

See SERVER-3470

Generated at Thu Feb 08 03:05:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.