You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
I'm trying to map a key to send-text. But when invoking the key I get the following error:
remote_control mapping failed
'NoneType' object has no attribute 'partition'
Steps to reproduce the behavior:
map ctrl+enter remote_control send-text hi
Observe the error shown above.
The text hi should appear in the active window.
OS: Mac OS 10.15.7
$ kitty --debug-config --config kitty.conf
kitty 0.19.2 created by Kovid Goyal
Darwin felix-mbp-2089.local 19.6.0 Darwin Kernel Version 19.6.0: Thu Oct 29 22:56:45 PDT 2020; root:xnu-618.104.22.168~1/RELEASE_X86_64 x86_64
ProductName: Mac OS X ProductVersion: 10.15.7 BuildVersion: 19H15
Loaded config files: kitty.conf
Config options different from defaults:
control+enter KeyAction(func='remote_control', args=['set-spacing', 'margin=30'])
I can reproduce the issue kitty --config kitty.conf that contains only the 2 lines of config shown above.
This issue seems to be specific to send-text. The following config works as expected:
Thanks for the fast response @kovidgoyal! That fixes the example in this issue.
However, I had simplified the example to make the issue easier to understand. I'm actually trying to send this text to a specific window, i.e. --match num:1. I'm unable to figure out how to make this work via send_text (it's different from the remote control send-text, right?).
Edit: For the sake of completeness, my final goal is to send "up arrow + enter" to window 1 (essentially letting me re-run the last bash command). So the full config I was going for is this:
@kovidgoyal thank you so much for the fix, I'll try it when the next release comes out. And thank you even more for showing me how to use the combine feature! I was able to make my shortcut work like this:
# repeat last command executed in second window by sending <arrow up> + <enter>
map ctrl+enter combine : second_window : send_text all \x1b\x5b\x41\n : previous_window