<rockorager>
dnkl: vim is using kitty keyboard now??
<rockorager>
For example, both alacritty and foot output CSI 5;5~ but in vim only foot can do ctrl+pgup/ctrl+pgdn to change tabs
<rockorager>
open vim, :tabnew and you can see how it works
<rockorager>
And if you do :set termcap you can see foot has different entries than alaacritty
<rockorager>
But nothing in terminfo shows why this would be...
<rockorager>
And neither are special cased in vim_is_xterm
<dnkl>
not sure about vim and alacritty, but suspect foot works thanks to the kitty keyboard protocol.
<dnkl>
I have a vague memory of vim being very limited unless the terminal supports either kitty, or xterm's extended keyboard protocol
<dnkl>
which alacritty does not
<rockorager>
dnkl: TERM=foot and alacritty works...
<rockorager>
It's so bizarre
<rockorager>
I can't reason why that would work
<dnkl>
I think vim defaults to a very simple mode, where it simply chooses to ignore certain combinations, unless it knows the terminal is smarter. Alacritty doesn't support any extended keyboard protocols, and as a result, some key combos it _does_ support, are ignored by vim
<dnkl>
by setting TERM=foot, you're tricking vim into believing it supports the kitty keyboard protocol
<dnkl>
since the escapes for page up/down are the same, it "works"
<rockorager>
but how is it knowing it supports the protocol?
<rockorager>
Something in TERM=foot?
<rockorager>
I don't see any hardcoded things for foot in vim source code
<rockorager>
If it's querying...it shoudln't be getting a response since alacritty wouldn't respond
chomwitt has joined #foot
<dnkl>
rockorager: there's a thing in optiondefs.h, where foot is listed. Guessing it matches TERM against that
<rockorager>
ah i see it
<rockorager>
Yeah that's definitely it
<rockorager>
not sure how my grepping missed that one, thanks for looking
an3223 has quit [Ping timeout: 252 seconds]
erectus has quit [Ping timeout: 252 seconds]
an3223 has joined #foot
erectus has joined #foot
vyryls has joined #foot
primalmotion has quit [Ping timeout: 245 seconds]
primalmotion has joined #foot
urosm has quit [Ping timeout: 272 seconds]
urosm has joined #foot
chomwitt has quit [Ping timeout: 272 seconds]
urosm has quit [Ping timeout: 272 seconds]
ayushnix has joined #foot
urosm has joined #foot
chomwitt has joined #foot
urosm has quit [Ping timeout: 255 seconds]
vyryls has quit [Quit: WeeChat 4.0.4]
Ordoviz has joined #foot
h-erectus has joined #foot
h-erectus has quit [Quit: h-erectus]
<WhyNotHugo>
When using --hold, can I somehow configure so that pressing any key exits?
urosm has joined #foot
urosm has quit [Ping timeout: 260 seconds]
chomwitt has quit [Ping timeout: 260 seconds]
chomwitt has joined #foot
<dnkl>
WhyNotHugo: no, that's not possible
urosm has joined #foot
<sewn>
dnkl: off-topic to this channel, but are you ever going to review wbg prs #8 and #7
<dnkl>
sewn: thanks for reminding me. I had forgotten them. I will review them, but it'll likely be a while. I don't have much free time right now
<sewn>
oh okay thats fine, just great to hear a reasoning