-
Notifications
You must be signed in to change notification settings - Fork 118
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
Autocomplete for Dynamic CLI #126
Comments
Hmm, that would be a nice addon |
Is it like what we have to fetch it from history |
Nops. Not from the history. We have to make patterns according to what user is typing |
@GouravSardana I would like to work on this as a GSSOC contributor. |
Please go ahead @shivankar-p |
@GouravSardana Instead of using xonsh shell. Won't it be a better idea if there is something like a dynamic-cli REPL or shell which gets activated by running some command in bash like |
Can you come up with a design for this before implementing? |
I was planning to take input from the input stream/console for commands instead of getting them from command line. But the console is just in a formatted way like any other REPL. For this maybe I would need to add some new functions for auto-completion and add the input logic like we do while taking input in any other python program. |
This looks good only. I have 2 concern :
|
|
Got it. I mean we were creating sessions or not. I think it’s clear now. We don’t have to worry about the autocomplete after the session |
@GouravSardana I made a pull request. Can you review it? I still need to handle some options/commands properly. |
I would be happy to contribute to the project as I find my skills a good fit for the issue . As a GSSOC 23 member I humbly ask to allow me to contribute to the issue. I firmly believe that I can be a valuable asset. |
We need to autocomplete feature for dynamic to make it easier to use.
For example -
If I type
dynamic
in the terminal it will show a popup like --help, -post, -noSee this -
For implementation of autocomplete in python refer to this - https://python-prompt-toolkit.readthedocs.io/en/master/
This issue is dependent upon #125 . Because to use autocomplete we need a different shell to make our changes visible. That shell can be created by xonsh.
The end goal should be similar to this -
Credit for autocomplete and xosh - gitsome
The text was updated successfully, but these errors were encountered: