Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-4288

Shell multi-line history

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 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)

      { ... 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 Unassigned
            Reporter:
            aharbick Andrew Harbick
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: