[SERVER-3484] Linenoise support for bash-like functionality Created: 26/Jul/11  Updated: 29/May/12  Resolved: 17/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: Kristina Chodorow (Inactive) Assignee: Tad Marshall
Resolution: Duplicate Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-4312 Add "key" missing readline/bash (EMAC... Closed
Participants:

 Description   

ctrl-y for paste
ctrl-r for a history search
unmatched paren highlight
ctrl-c cancels multiline not mongo (*nix only)
no more awkward line prints due to passing by a (



 Comments   
Comment by Tad Marshall [ 05/Jan/12 ]

Yank (ctrl-Y) and incremental history search (ctrl-R) are in and ctrl-C will cancel multiline without exiting the shell. I'm not sure what "no more awkward line prints due to passing by a (" means.

Comment by Tad Marshall [ 17/Nov/11 ]

Closing as a duplicate (after linking to master ticket).

Comment by Tad Marshall [ 17/Nov/11 ]

Folding all readline/bash/linenoise command line editing related tickets into SERVER-4312.

Comment by Guanqun Lu [ 18/Sep/11 ]

Sorry for the noises... I've found another fix already hanging around on github(https://github.com/mongodb/mongo/pull/64), so please ignore my comments above.

Comment by Guanqun Lu [ 16/Sep/11 ]

I agree that Ctrl+C should just cancel the multiline mode instead of mongo itself. I've done a simple fix, here's the commit:
https://github.com/guanqun/mongo/commit/17eb4924712bafba00e3cc437d29eee68d57c176
here's the pull request:
https://github.com/mongodb/mongo/pull/85

Bother to accept this fix?

Thanks!

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