-
Notifications
You must be signed in to change notification settings - Fork 148
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 for "~" does not work #28
Comments
Yeah, debugging injection itself involves a few steps. I'll also add some info to the README.md file about how to debug injection. But once it's injected, debugging is pretty easy: just attach the debugger to the CMD.exe process, and set a breakpoint in some Clink code. For example for tab completion Regarding tilde completion, can you expand on "is not working"? From the Readline docs:
|
I can reproduce the problem. I think the v1.x match pipeline rewrite may be missing tilde support. I'll look into it. |
to be clear, the command I'm testing this with is typing |
Ohhh! Yes, that won't work as-is. Because cd, md, and rd are handled by argmatcher lua scripts, not by Readline. Tilde support is implemented in Readline, not in Clink per se. Try just about any command other than those, and tildes should work. Probably the best solution is to make Clink's Lua APIs for file/dir globbing handle tilde internally, but maybe with a flag to allow a script to disable tilde support if the script has some reason. Clink's match pipeline collects matches at the beginning of entering a word, rather than when invoking a completion command. The Also, the Readline code uses an unusual formatting style: indent width 2, hard tab width 8. I think very few text editors can detect that style and render the files properly without some configuration help from the user (and e.g. VSCode simply doesn't support that style, period). That might make Readline code look especially messy, if the editor isn't configured for it. |
e32a23a adds tilde completion support in the Also some new Lua functions have been added to make it easy for any matcher to support tilde completion (though it's rare for an argmatcher to want/need tilde completion). |
New 1.1.6 (pre) release is available with the more complete fixes that include |
On the current 1.1.4 release and on the current master, tab completion for "~" is not working. Tested in both Cmder and vanilla, and on a clean VM.
I had tried to debug this to figure out what was happening, but
LOG()
andERR()
were not outputting any messages in the logs when I put them inrl_module.cpp
, and I have no idea how to set this up in a debugger since it's a program that injects a dll into a running process. Just out of curiosity, how do you have this set up for debugging?The text was updated successfully, but these errors were encountered: