Open jaraco opened 6 years ago
I think this may be an unintended side effect of the async tab-completion in prompt_toolkit 2. Maybe there is a way to either wait for or cancel tab-completions when the user invokes the command.
Otherwise, we can try to make tab-completion blocking again.
Weird, thanks for reporting @jaraco!
Today I experienced this even after the prompt had rendered (and thus profile loaded):
~ $ cd ~/yg/public/velociraptor/
cd: no such file or directory: /Users/jaraco/yg/public/vel
this may be an unintended side effect of the async tab-completion in prompt_toolkit
You're probably right. I don't remember encountering this issue before I installed prompt toolkit about two weeks ago.
@jonathanslenders - is there a way to cancel tab-completion once the user has hit enter?
xonfig
jaraco.functools master $ xonfig
Expected Behavior
Tab completion should happen before the command is processed for invocation.
Current Behavior
I started a new xonsh session, and before the session finished processing my .profile, I typed my command
cd ~/m/jaraco.func^t^n
. In the terminal, I see the following:You can see where xonsh did expand the command fully, but because I hit enter before the tab completion had processed, the command was invoked with that partial command-line.
For community
⬇️ Please click the 👍 reaction instead of leaving a
+1
or 👍 comment