Shell multi-line history

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • Environment:
      Terminal.app on OS X mongo shell version 2.0.1
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Unassigned
            Reporter:
            Andrew Harbick
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: