-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[RFC]: add command to display command history in the REPL #2071
Copy link
Copy link
Open
Labels
EnhancementIssue or pull request for enhancing existing functionality.Issue or pull request for enhancing existing functionality.JavaScriptIssue involves or relates to JavaScript.Issue involves or relates to JavaScript.Needs DiscussionNeeds further discussion.Needs further discussion.REPLIssue or pull request specific to the project REPL.Issue or pull request specific to the project REPL.RFCRequest for comments. Feature requests and proposed changes.Request for comments. Feature requests and proposed changes.difficulty: 3Likely to be challenging but manageable.Likely to be challenging but manageable.priority: NormalNormal priority concern or feature request.Normal priority concern or feature request.
Metadata
Metadata
Assignees
Labels
EnhancementIssue or pull request for enhancing existing functionality.Issue or pull request for enhancing existing functionality.JavaScriptIssue involves or relates to JavaScript.Issue involves or relates to JavaScript.Needs DiscussionNeeds further discussion.Needs further discussion.REPLIssue or pull request specific to the project REPL.Issue or pull request specific to the project REPL.RFCRequest for comments. Feature requests and proposed changes.Request for comments. Feature requests and proposed changes.difficulty: 3Likely to be challenging but manageable.Likely to be challenging but manageable.priority: NormalNormal priority concern or feature request.Normal priority concern or feature request.
Description
This RFC proposes adding support for displaying command history in the REPL. The behavior would be similar to that in IPython: https://ipython.readthedocs.io/en/stable/interactive/magics.html?highlight=magic#magic-history
Potential command signature:
with the ability to
n[start, stop]and options to
successoption)-noption in IPython)poption in IPython, but where one can provide, say,In [%d]:to allow restarting the line numbers, which may be useful when printing REPL examples, etc)Related Issues
No.
Questions
Other
No.
Checklist
RFC:.