Closed tkossak closed 1 year ago
Hi @tkossak.
Good news: It's not a general bug, but an environment-specific issue. Bad news: Cannot reproduced it.
A few questions:
Does this happen with any query string? Ex: j QUERY<TAB>
Does this happen with no query string at all? Ex: j <TAB>
You're using fzf
as TAB completer, isn't? In that case, what's your fzf
version?
Is there some unusual directory name in your jump file (~/.config/clifm/profiles/default/jump.clifm
)?
You could try with a fresh jump file. Create a backup copy of the file, remove the original one, and then launch clifm (browse a bit and try to reproduce the issue).
NOTE: Do this from outside clifm. Otherwise, the jump file will be recreated at exit using the internal database loaded at startup.
I may add that when cursor comes to the next line, I see for fraction of a second part of writing specification: 'dark
and it disappears - maybe it will help to pinpoint the issue.
Also tested some more and it happens only inside tmux (v3.3a, my tmux.conf) for both xonsh
and bash
shells. If I run xonsh/bash outside of tmux, it works perfectly fine.
j QUERY<TAB>
, j anything<TAB>
, etcjump.clifm
file, clifm recreated it with two lines only:
2:1685529173:1685529179:/home/kossak/Downloads
@2400
but it didn't solve the problem.
Maybe I have something wrong with fzf options set for tmux somewhere...
That's good info!
Maybe I have something wrong with fzf options set for tmux somewhere
Quite possible indeed.
For what you've described, maybe this fixes your issue: edit your color scheme file (cs edit
) and change FzfTabOptions="--color='dark,...'
to FzfTabOptions="--color='16,'
. If this doesn't work either, just comment out the whole line. If this fixes the issue, then some setting is just wrong in the FzfTabOptions
line. Otherwise, maybe some invalid fzf option is being set from outside clifm.
changing --color
to 16
only changed what I see in next line (word 16
instead of dark
):
And commenting it out completely.
I'll try to look for fzf options later when I have more time. Thank you for the tips.
At least we know the cause: something is wrong with your fzf options. We just need to figure out whether this invalid setting is coming from within or outside clifm (and of course, which it is).
I cannot find what is causing it, but I found out that:
$CLIFM_SHELL = '/usr/bin/bash'
it solves my problem completely, so I think I will just have to stick with bash inside clifm.Reproduced! I'll see what I can do.
EDIT: The problem is not fzf
-specific: using alternative completers like smenu
or fnf
/fzy
also fails when using xonsh
.
Thank you. For me xonsh + clifm (without tmux) works properly, only when I put them both inside tmux, the problem arises.
We have two issues:
xonsh
doesn't like single quotes. Remove them from the FfzTabOptions
in the color scheme file. This solves the color specification:
error.xonsh
do not dequote query strings: if we pass --query="my query"
to fzf
, xonsh
passes it verbatim (including the quotes). In this case, there's nothing we can do, because we need to quote the query string to prevent it from being split when it contains spaces (word breakers in general). Otherwise, if we pass --query=my query
, the second word will be interpreted by the completer as a new option, which of course is not the case. Maybe there's an option in the xonsh
config file forcing it to dequote strings. I'll take a look at it.EDIT: In case there's no way around this, maybe I could force the use of /bin/sh
(instead of whatever shell set by the user) when running the completer (fzf
or whatever).
Solved. For the time being I took the easier route: force the use of /bin/sh
when running the completer (both issues are solved thus in a single stroke).
It should work now on the tmux + xonsh + clifm
combo. Please let me know if it works for you too.
Works, thank you very much!
Describe the bug Is it only me or there's a bug with TAB completion of
j
arguments? Other commands, likebm
autocompletion, work as they should.To Reproduce Steps to reproduce the behavior:
j a
and press<TAB>
keyExpected behavior I expected to see the list of possible autocompletions
Desktop (please complete the following information):