-
Notifications
You must be signed in to change notification settings - Fork 169
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
Tab completion does not work with C-Shell #3163
Comments
Possible Solution: Move tab complete logic from /etc/conda/activate.d/env_vars.csh to it's own script inside the isis3 repo scripts and call it from the env_vars.csh. (Repeat same for bash, but logic needs to be re-written for bash.) |
As most users are moved/moving to bash, does it make sense to complete this for bash as well and rename this ticket? |
@SgStapleton If they get worked on at the same time, I think that's good |
Getting tcsh tab completion going is trivial (a few minutes), Jesse has already done this by hand using my script, so we know what it will take. Getting it working for bash will be significantly more work (hours). The syntax for bash is completely different than the existing tcsh syntax, and will have to be learned before work can begin. There is some overlap though, the simple changes for tcsh will also need to be done for bash. |
@scsides I've manually added your script, but we need to make it automatic or a part of the isis3VarInit script. |
Thanks, I clarified it |
Sorry I have not been updating on this ticket. I have one simple question for the tcsh process: It looks like the isis3VarInit.py script is writing the bash files for activate and deactivate, but I can't seem to figure out where the .tcsh files are being written? All the other logic should be in place for tcsh to call a script in $CONDA_PREFIX/scripts. It WAS very simple. The bash is another story entirely. I have been looking into the complete and compgen commands in bash and it is going to need to be handled ENTIRELY different. I have been playing around with it getting some ideas of what can be done, but this is going to be a much bigger time sink. |
Once this PR is merged, I will be closing this ticket as there already exists a ticket for bash tab completion: #1599 |
ISIS version(s) affected: 3.6.2
Description
Using 3.6.2 and the conda environment installation, tab completion does not work for application parameters and files.
How to reproduce
cam2map
and then tabcam2map from=
and then tabAdditional context
more info from @lwellerastro and possible solution from @scsides here
Related to #1599
The text was updated successfully, but these errors were encountered: