Closed dbedrenko closed 10 months ago
Hi! I introduced this feature many months ago. But I thought someone else had fixed the issues with vi bindings. Will review. It is simple enough to revert the feature in vi mode.
Thank you, and thank you for such a handy application!
In the mean time I found a workaround: pasting '<' and '>' from clipboard does not trigger the prettify feature.
Indeed the bindings were removed in #1089; it seems we are just overdue for a release.
Ah I see, that's too bad :( I think I will stick with the current version to keep the vi bindings as it's too much of a pain editing input in the other modes. Thanks for looking into it anyway.
Sorry, I meant that the <
issue is fixed and will propagate out if we do a release today.
https://github.com/dbcli/mycli/releases/tag/v1.27.0
1.27.0 is on PyPi now, and includes the primitive fix of just disabling the prettify functionality in vi-mode. Later we should find someone who understand vi bindings well enough to enable it the right way. Sorry this went unreleased for a while.
Works great now! Big thank you!
Version: 1.26.1 Steps to reproduce:
key_bindings = vi
mycli
and press<
This is the error I get:
Actually in vi insert mode pressing '<' seems to execute some sort of "prettify" library on the input, e.g. if you have this on your prompt with the cursor after
having
and press<
:Instead of inserting a
<
it says on the status line" Unprettify failed to parse statement Right-arrow to complete suggestion".
So in summary, I can't insert a
<
nor>
.