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

[ENHANCEMENT] Add auto-completion to the friendly REPL #48

Closed
mardukbp opened this issue Oct 10, 2022 · 2 comments
Closed

[ENHANCEMENT] Add auto-completion to the friendly REPL #48

mardukbp opened this issue Oct 10, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@mardukbp
Copy link

Is your feature request related to a problem? Please describe.
Not having auto-completion is unfriendly.

Describe the solution you'd like
The friendly REPL should autocomplete its own commands as well as functions from the modules currently loaded.

Describe alternatives you've considered
None

Additional context
ipython has awesome autocompletion. Could it be possible to reuse it?

@mardukbp mardukbp added the enhancement New feature or request label Oct 10, 2022
@aroberge
Copy link
Contributor

This is out of scope. Instead of adding IPython to friendly, friendly can be added to IPython. Simple type

from friendly.ipython import *

after starting an IPython repl and you get all the nice feature of IPython enhanced by friendly. This approach makes it possible in theory for other "nice REPL" (ptpython, bpython, etc.) to use friendly, so that friendly does not have to worry about trying to have the best REPL with all desired features.

Furthermore, this avoids increasing significantly the number of dependencies, and the problems that come with ensuring compatibilities with all versions.

@mardukbp
Copy link
Author

Perfect! Thanks! You are absolutely right.

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

2 participants