-
Notifications
You must be signed in to change notification settings - Fork 33
fzf window closes immediatly on x11 #15
Comments
Hm. That's weird, because I shouldn't fail if no highlighter is installed. Because it fallbacks to |
@TeddyDD does |
buffer and cd works. I checked if this might be terminal related but both kitty and xst gives me the same result |
I've found the issue. Please try with latest master |
No. Actually not. The problem is that the size calculation isn't happening. |
I've pushed modified version, in which |
I've pushed |
It doesn't close terminal window so you probably fixed it :) Problem is apparently fzf uses diff --git i/rc/fzf.kak w/rc/fzf.kak
index a038c9..ec160c 100644
--- i/rc/fzf.kak
+++ w/rc/fzf.kak
@@ -334,7 +334,7 @@ define-command -hidden fzf -params 2..3 %{ evaluate-commands %sh{
elif [ ! -z "${kak_opt_termcmd}" ]; then
path=$(pwd)
additional_flags=$(echo $additional_flags | sed "s:\$pos:\\\\\$pos:")
- cmd="$kak_opt_termcmd \"sh -c \\\"cd $path && $preview_pos $items_command | fzf --expect ctrl-q $additional_flags > $tmp\\\"\""
+ cmd="$kak_opt_termcmd \"sh -c \\\"SHELL=/bin/sh; export SHELL; cd $path && $preview_pos $items_command | fzf --expect ctrl-q $additional_flags > $tmp\\\"\""
else
echo "fail termcmd option is not set"
exit Not sure if this patch is correct way to do this, but after applying it, it works for me. |
|
@TeddyDD can you please try the latest |
It doesn't work, terminal shows up for split of a second and closes. |
Weird. It works for me. I suspect that we have single thing that doesn't work on your setup and works on my. I'll try to use fish |
I tried to run Kakoune with bash and sh on fix_preview branch. I'm getting |
Thats exactly what I've been fixing all the time, and strangely enough it works for me |
fish doesn't support |
yeah, but that shoudn't matter since Kakoune uses posix shell in expansions, right? |
yeah, but I pass shell command to terminal via |
@TeddyDD with latest changes, still doesn't work? |
um, you haven't pushed anything new to fix_preview |
Oh. Sorry. I didn't noticed that my connection was off. I've pushed the changes |
nope, still blinking terminal |
Can I ask you to try with another login shell? Althoughit works for me in KDE and Mate, with bash, zsh, and fish as a login shells... |
sure, I'll try and report back |
I've installed kitty, and now it isn't working for me too. I'm testing this mainly with termite. So I thought that other terminals should work. Turns out that that's not always true. Mate terminal brokes too. |
I tried with bash as login shell, it doesn't help. I tried it under st and kitty |
I've noticed that this doesn't work with kitty, and alacritty when they set as |
I see. Seems likse |
Ok now I know where to dig. Expect a fix in couple of hours :) |
@TeddyDD should work now. I've tested with all possible at the moment terminals |
it works, awesome job! |
issue solved exactly in 30 comments. I'll merge this into master now |
Problem description
Running
anyfile related command from fzf mode results in new terminal window blinking for a split of a second. It closes immediately after that. Info box stays open. I did bisect on changes since v0.1.2 and first bad commit is 8ae03b1Buffer selector, change directory and buffer search works fine.
Steps to reproduce
Environment information
Kakoune version: v2018.09.04
OS version: Void 4.18.13_1 x86_64 GenuineIntel uptodate rFFFFFFFF
sh
executable version: dash-0.5.10.2fzf version: 0.17.5
Edit:
It seems that
fzf_preview
was true by default, disabling it fixes the problem.Okay, I don't have any compatible highlighter installed so it fails because
fzf_preview
is true by default.The text was updated successfully, but these errors were encountered: