【发布时间】:2016-05-09 11:08:46
【问题描述】:
为了configure a user binding(版本2.2.0),它必须在fish_user_key_bindings函数中:
function fish_user_key_bindings
bind \n 'commandline -f accept-autosuggestion execute'
end
这很好用。
我想将此绑定扩展为 Ctrl+Enter,使用 appropriate modifier:
function fish_user_key_bindings
bind \c\n 'commandline -f accept-autosuggestion execute'
end
这不起作用:Enter 使用当前(直到光标)建议(这是默认值)但是 Ctrl+Enter 也是(好像没有考虑带有修饰符的操作)
【问题讨论】:
-
并非所有终端都能区分 enter 和 ctrl-enter。您使用的是哪个终端应用程序?
-
@ridiculous_fish:我在 putty/kitty 和 mobaxterm 上都试过这个
标签: fish