为了configure a user binding(2.2.0版本)时,它必须在fish_user_key_bindings
功能:如何在鱼中绑定Ctrl-Enter?
function fish_user_key_bindings
bind \n 'commandline -f accept-autosuggestion execute'
end
这工作得很好。
我想扩大这种结合按Ctrl + 输入,通过使用appropriate modifier:
function fish_user_key_bindings
bind \c\n 'commandline -f accept-autosuggestion execute'
end
这不起作用:输入使用电流(高达光标移动)的建议(这是默认值)但是Ctrl + 输入以及(好像没有考虑修饰符的动作)
不是所有的终端都能区分enter和ctrl-enter。你使用哪个终端应用程序? –
@ridiculous_fish:我在putty/kitty和mobaxterm上都试过 – WoJ