Open bashfulrobot opened 1 year ago
I get the same bug with kitty version 0.27.1, on Debian 11
I have replicated the same issue on wezterm. I will adjust the title to reflect for future searches.
do you know if you're using Wayland? If so, you may need to adjust the evdev_modifier_delay
config option, as noted in the documentation
I am not using Wayland on this system. π
I was afraid you'd say that π
So, I've taken a closer look at your report, and I think it's actually 2 separate issues:
Your first example is below the default clipboard_threshold
, which is 100 characters. Below that threshold, expansions are inserted with SendKeys; above, it they are pasted using the clipboard. I'm pretty sure that explains the 2 different behaviors you're seeing: incorrect keys being sent in the first example, and incorrect paste shortcut in the second example.
I'm not positive how to fix the first one; increasing the inject_delay
or key_delay
settings may help. You could also try disable_x11_fast_inject
though based on the notes in the docs, I suspect that even if it works, you won't like it.
For the second example, I think that creating an App-specific configuration with paste_shortcut
set to whatever Wezterm and Kitty expect will fix it (probably SHIFT+INSERT
)
So let me ask you this, why would it work on some terminals? IE - gnome-terminal, tilix, etc? I suspect it is something the terminals are setting. π€
Yeah, no clue. It's got to be something that the terminals are doing differently, but I'm in no way qualified to guess at what.
Possibly relevant: #1088 ?
I think this is related to #1288, where several users reported that "v" was being pasted instead of the actual snippet. Most users seem to be running MacOS, with one reporting this would take place in Kitty but not in Alactritty, whereas the other reported this also taking place in Alacritty. I'm running Kitty on Manjaro Linux, latest updates as of today, and it happens only in Kitty but not in Alactritty.
I have a bit more info from testing.
Using backend: Clipboard
:espanso
results
v
Using Inject or Auto
:espanso
results
Hi there!
YET!
Using backend: Clipboard (Kitty Arch-linux)
ttime
results
v
Using backend: Inject or Auto (Kitty Arch-linux)
ttime
results
09;45
expected and configured result should be and is everywhere else
09:45
Many of these problems can now be resolved by testing force_mode:
for individual triggers (often hinting at required changes in the backend:
globally or in app-specific configurations), and occasionally with other options.
Have you tried those?
I can reproduce the same errors as @snuffop on kitty.
@smeech the force_mode
does not solve the issue because no backend gives the correct output (one outputs v
while the other outputs 09;45
instead of 09:45
).
I've made it work by setting the disable_x11_fast_inject: true
configuration, but it's quite sloppy so I'd rather not use it.
Describe the bug
To Reproduce Steps to reproduce the behavior:
example 1
:test
triggerexample 2
:t2
triggerExpected behavior
Logs If possible, run
espanso log
in a terminal after the bug has occurred, then post the output here so that we can better diagnose the problemSetup information
espanso --version
inside a terminal)I suspect it might be the way escaping is handled. Either in Espanso or Kitty? (Total guess).
Thank you so much!