Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support meta commands (eg to manipulate history etc) #6

Open
timotheecour opened this issue Apr 7, 2018 · 1 comment
Open

support meta commands (eg to manipulate history etc) #6

timotheecour opened this issue Apr 7, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@timotheecour
Copy link
Contributor

timotheecour commented Apr 7, 2018

https://github.com/wheineman/nrpl allows using meta commands, eg:

> :help
:? - print this help
:help - print this help
:history - display history
:clearHist - clear history
:delete n[,m] - delete line or range of lines from history
:load filename - clears history and loads a file into history
:append filename - appends a file into history
:save filename - saves history to file
:run - run what's currently in history
:version - display the current version
:quit - exit REPL
:remove varname - remove variable

this would be quite useful, eg also for enabling #5 via, say, :brace=on or :brace=off

can these be implemented as regular procs?

(and inim would automatically call from inim_special_commands as z import nil)
eg:

z.help()
z.history()
#etc
@Tangdongle
Copy link
Collaborator

If it's possible to get a list of symbols and functions from nimsuggest, I reckon we can implement ipython's behaviour, ie if you define a built in command within ipython, it overrides that builtin command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants