Closed dssgabriel closed 2 years ago
Sorry for the delayed reply.
I don't use Kitty, so I can't really help here, but the error shows me that the terminal-tab
command is not defined.
Can you use terminal-tab
outside of fzf.kak? Maye something with kitty.kak not being loaded?
Hi!
It indeed seems to be that kitty.kak
is not loaded, as none of the commands defined in this file work/are recognized by Kakoune when run outside of fzf.kak.
I'm not sure what the fix is though? How can I manually load the missing kitty.kak
on Kakoune's startup?
I believe it is loaded by the https://github.com/mawww/kakoune/blob/021da117cf90bf25b65e3344fa8e43ab4262b714/rc/windowing/detection.kak script. However, it will load only one of these modules, so I guess you'll have to manually specify that you're running Kitty.
I think its a question for upstream why kitty.kak is not loaded, but my wild guess would be that you have some other terminal that is found by the script above.
Perhaps something to do with this check:
evaluate-commands %sh{ [ -z "${kak_opt_windowing_modules}" ] || [ "$TERM" = "xterm-kitty" ] || echo 'fail Kitty not detected' }
Check what your TERM env. variable is set to
Perhaps something to do with this check:
evaluate-commands %sh{ [ -z "${kak_opt_windowing_modules}" ] || [ "$TERM" = "xterm-kitty" ] || echo 'fail Kitty not detected' }
Check what your TERM env. variable is set to
Sorry for the delayed reply, I haven't had much time to look further into this.
It indeed seems that this issue is related with upstream, so I'm closing this one.
From what I could test though, even when launching Kakoune with TERM=xterm-kitty kak
, the check above fails. I don't know what's causing this. It seems that the windowing detection scripts aren't even called by Kakoune, as none of the alternatives defined in that module seem to be run.
Thanks anyway!
Problem description
Hi! I've been trying to find a solution to this issue for weeks now and cannot figure it out... When trying to open a file within
fzf
mode, no window/tab/buffer with the file picker opens. The following error is thrown in the debug buffer:Here is my (minimal)
kakrc
configuration:I am not using Tmux and my terminal emulator is Kitty. From what I read in the documentation for this plugin and in the closed issues,
terminal-tab
, defined in thefzf
module, is the command to use when running Kakoune in the Kitty terminal and not running Tmux. I have tried with theterminal
command as well, without success. I don't know what am I missing to make this work...Steps to reproduce
Given the above
kakrc
configuration:space
(leader) to enter user-mode;f
to enter fzf-mode;f
again to open files;What should happen
Kakoune should open the fzf file picker.
What happens instead
An error saying that the
terminal-tab
command does not exist is thrown in the debug buffer. However, the info box for the fzf-file mode still shows up.Environment information
Kakoune version: v2021.11.08 OS version: Arch Linux 5.17.9-arch1-1
sh
executable version: fish, version 3.4.1 fzf version: v0.30.0 (2093667)find
version: v4.9.0fd
version: v8.3.2ag
version: -rg
version: v13.0.0fg
version: -git
version: v2.36.1ctags
version: -