-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
[django] Django bash-completion breaks on blesh #395
Comments
Thank you for the detailed report, which was sufficient to reproduce the problem. I added an adjustment in commit 0cf0383. I haven't tested with the actual Django command, so could you update ble.sh by running BackgroundsActually, the original behavior was a part of the intentional behavior change by ble.sh to improve the completion, but I haven't assumed cases where the completion that applies to the relative-path commands (such as For more context, the programmable completion of plain Bash doesn't support the cases where the command names are quoted, such as For the provided case of Django, even though the actual command seems to be called by |
@akinomyoga Updated, works now (the behavior now is the same as pure bash). Thanks. |
It shouldn't have worked before either.
I think these are sufficient. Thank you! |
@akinomyoga the issue is still present if I try to execute the file indirectly (as an argument to the interpreter):
|
Sorry for the delay. Now some issues are stacking, so it will still take some time. Hopefully, I can look at this next week. |
The issue is caused by blesh trying to complete arguments to file
manage.py
created bydjango-admin startproject ah_project .
:Same without autocompletion on TAB:
Without blesh, completion works as expected:
./manage.py mig
->./manage.py migrate
,./manage.py m
->Removing only
/usr/share/bash-completion/completions/manage.py
"fixes" in on both blesh and pure bash, completion just reverts to file completion. FYI, this is just a symlink to/usr/share/bash-completion/completions/django-admin.py
Here's the files (renamed because of github): manage.py.txt django-admin.py.txt
The text was updated successfully, but these errors were encountered: