relastle / vim-nayvy

:new_moon: Enriching python coding in Vim :snake:
MIT License
66 stars 4 forks source link

some flaky chars in NayvyImportsFzF #16

Closed Shane-XB-Qian closed 1 year ago

Shane-XB-Qian commented 1 year ago

image

  1. the color escape chars looks dup or wrong.
  2. the init I do not understand where is it from.
Shane-XB-Qian commented 1 year ago

there is flaky I when/in NayvyTestGenerateFZF too.

relastle commented 1 year ago

@Shane-XB-Qian

Could you please check whether or not followings fix the problem

Shane-XB-Qian commented 1 year ago
  • If --ansi option is not there, add --ansi in $FZF_DEFAULT_OPTS

ok, thanks, yes, so looks this only recogonize ansi palettes

Shane-XB-Qian commented 1 year ago

2. the init I do not understand where is it from.

how about this one? why there is an init I char?

relastle commented 1 year ago
  • If --ansi option is not there, add --ansi in $FZF_DEFAULT_OPTS

ok, thanks, yes, so looks this only recogonize ansi palettes

umm..., I don't have any idea why. nayvy just prints ansi palettes escape sequences to the standard output and pass thme to fzf.

If colored output is not necessary, just tweks the flag (see following link) will fix the problem.

https://github.com/relastle/vim-nayvy/blob/d5882540779149e499c00fa876bb76170b0f98ec/python3/nayvy_vim_if/importing.py#L199

relastle commented 1 year ago
  1. the init I do not understand where is it from.

how about this one? why there is an init I char?

I cannot reproduce this problem also, and have no idea about it 😢

Shane-XB-Qian commented 1 year ago

image

something like here? it had a strange I ahead. // "autmux/nayvy_import_fzf_scenario.yml" line 30

relastle commented 1 year ago

@Shane-XB-Qian

Unfortunately no, this script is just a configuration file for automatically producing the GIF. And, insertion of I is not repdoducible for me, so this is some environment-specific problem.

Shane-XB-Qian commented 1 year ago

Unfortunately no, this script is just a configuration file for automatically producing the GIF.

i was just doing a guess: maybe similar there some kinds of keystrokes somewhere, it should be an input char but not sure where generated it.

Shane-XB-Qian commented 1 year ago

anyway, it is a problem when/if integ with fzf. let it be..