-
-
Notifications
You must be signed in to change notification settings - Fork 346
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
Implement smart CLI autocompletion #2174
Comments
To see how autocompletion is implemented, take a look in The problem with doing this for CKAN is that getting the list of available mods requires parsing
There would be a 2+ second delay every time I pressed tab. I see a big potential upside in storing the mod database in a more random-access queryable format. |
We do actually have a plan to reduce the size of the registry. @techman83 has done some of the work in KSP-CKAN/NetKAN-bot#58 The idea is to create different repo downloads split up according to a config file (based on KSP versions), which we can then allow the users to select in the CKAN Settings dialog. The client functionality is mostly there, I think it's just a question of setting the default repo differently and adding the other repos to the list (which is a config file in CKAN-meta) |
I would note that if #2161 is implemented, this feature would be definitely possible within the repl/shell as it's all under CKAN's control. |
Closing in favour of #2161, which is a better starting point. |
I think this was a duplicate of #888, which even has a comment with a (slow) sample implementation. |
That issue is similar to this original issue, but it is less than #2161 which would include tab completion internal to the CKAN CLI, not through bash. I'm partial to my request, of course, but I do think having this inside CKAN is superior because it allows all shell users to benefit, whether Windows Powershell or Linux tcsh (ptui) or anything in between. |
Agreed, #2161 is not a duplicate. |
It would be nice if the CLI would autocomplete commands and options and mod identifiers when the user presses tab, or show a list of things matching the text entered so far.
For example, If I type
It could fill in SomeMod, searching the list of mods that can be updated
The challenge here is that in Mac & Linux we are actually entering a "mono" command rather than going directly calling ckan.exe. Not sure how easily we could work around that. This may not be feasible at all.
The text was updated successfully, but these errors were encountered: