如何 select 在 fish shell 中使用方向键输入文本
How to select text with arrow keys in fish shell
我是 windows 用户。我正在尝试通过 WSL-2 Ubuntu。我正在努力 select 在 fish shell 中使用箭头键输入文本。我尝试了很多地方来回答这个问题,但没有人给我合适的解决方案。在文档中,他们写了关于 begin-selection
的绑定。但是执行此操作的默认方法是什么?
begin-selection
是一个键绑定,但默认情况下在标准键绑定中未启用。
您需要设置一些键绑定以开始和结束 selecting 文本。例如:
bind \e, begin-selection
bind \e. end-selection
将 Alt-< 和 Alt-> 分别设置为开始和结束 select 模式。这些可以与默认的 Ctrl-X 剪贴板复制功能一起使用。
Fish 不支持您想要的文本选择样式。 begin-selection
和 end-selection
命令用于 VI 模式下的 VI-style 选择。
请参阅 this feature request, this question on superuser and daleeidd/natural-selection 以尝试实施 shift-select。
我是 windows 用户。我正在尝试通过 WSL-2 Ubuntu。我正在努力 select 在 fish shell 中使用箭头键输入文本。我尝试了很多地方来回答这个问题,但没有人给我合适的解决方案。在文档中,他们写了关于 begin-selection
的绑定。但是执行此操作的默认方法是什么?
begin-selection
是一个键绑定,但默认情况下在标准键绑定中未启用。
您需要设置一些键绑定以开始和结束 selecting 文本。例如:
bind \e, begin-selection
bind \e. end-selection
将 Alt-< 和 Alt-> 分别设置为开始和结束 select 模式。这些可以与默认的 Ctrl-X 剪贴板复制功能一起使用。
Fish 不支持您想要的文本选择样式。 begin-selection
和 end-selection
命令用于 VI 模式下的 VI-style 选择。
请参阅 this feature request, this question on superuser and daleeidd/natural-selection 以尝试实施 shift-select。