KristofferC / OhMyREPL.jl

Syntax highlighting and other enhancements for the Julia REPL
https://kristofferc.github.io/OhMyREPL.jl/latest/
Other
746 stars 57 forks source link

fzf + unicode autocompletion #331

Open haakon-e opened 9 months ago

haakon-e commented 9 months ago

I recently discovered this package, and so far I'm really enjoying the new REPL experience, so thanks!

A small question (I wasn't able to find relevant opened or closed issues). If I'm in fzf search mode and would like to search for expressions containing (e.g.) the unicode character for omega (ω); what is the correct way to do this? While in search mode, if I type \omega [TAB], instead of converting to ω, I select a line (correctly so, according to the docs). Is there any combination of keys I can press (e.g. CTRL+TAB, ...) which would instead autocomplete that unicode character?

Thanks!

(ps: of course, I can copy ω from REPL mode and paste it in during fzf-mode, but that's rather cumbersome, imo)

Moelf commented 9 months ago

the way it works is when you trigger fuzzy search, we simply send new-line separate text file to fzf and subsequent interaction are not inside Julia at all, which is why things like \omega [TAB] doesn't work -- fzf is handling your stdin input at that point

haakon-e commented 9 months ago

I see, thanks for your response. The benefits of fzf so far outdo this quirk for me, but I thought I'd put up the issue for others to be aware and perhaps someone finds some neat workarounds in the future..!