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

Shell multi-line history

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Shell
    • None
    • Terminal.app on OS X mongo shell version 2.0.1

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: