23t*_*tux 88 macos terminal keyboard-shortcuts
我知道我可以使用Ctrl+ A和Ctrl+ 跳转到OS X终端内的一行的开头和结尾E.但我已经习惯用编辑器中的Cmd+ Right箭头和Cmd+ Left箭头跳转,我也很乐意将这个快捷方式用于终端.
我还没有在谷歌找到解决方案,所以也许有人可以提供帮助.
更新
在评论中,我尝试了解决方案来自OS X终端中是否有任何方法逐字移动光标?
遗憾的是,终端设置似乎不包含Cmd为修改键,如下所示:
hyg*_*h2k 96
fn + shift + leftArrow = goto beginning of line
fn + shift + rightArrow = goto end of line
Run Code Online (Sandbox Code Playgroud)
这些对我有用
ela*_*ver 29
在最新的Mac OS中,您可以使用shift
+ home
或shift
+end
Aar*_*ine 17
我使用一个名为Karabiner的方便应用程序来执行此操作以及许多其他操作.它是免费和开源的.
它是一个键盘重映射器,有许多方便的预设,可供人们想要做的许多常见重映射.
从截图中可以看出,此重映射包含在Karabiner中作为预设.
希望这可以帮助.快乐重新映射!
小智 14
使用vi在终端中进行设置:
Macbook Pro键盘上的"Home"按钮:Fn +向左箭头.
Macbook Pro键盘上的"结束"按钮:Fn +右箭头.
Kou*_*Das 14
根据苹果官方网站
control + A - Move to the beginning of the line
control + E - move to the end of the line
Run Code Online (Sandbox Code Playgroud)
Abh*_*arn 11
在这里我找到了一个调整,没有任何第三方工具。这将使以下快捷方式起作用:
fn + right: to go to the end of the line.
fn + left: to go to the beginning of the line.
Run Code Online (Sandbox Code Playgroud)
cmd + ,
)。编辑:有关更多见解,请参阅下面@Maurice Gilden 的评论。
小智 9
我不确定这是否适合你(我仍然使用OS 10.8
),但这些适用于我的终端:
home = move cursor to the start of the line
shift+end = move cursor to the end of the line
alt+leftArrow = move one "word" to the left
alt+rightArrow = move one "word" to the right
Run Code Online (Sandbox Code Playgroud)
希望这可以帮助!
Tim*_*ss 7
对于iterm2:
转到配置文件/打开配置文件/密钥
将Cmd + left_arrow_key设置为发送十六进制代码001
将Cmd + right_arrow_key设置为发送十六进制代码005
这允许您使用Cmd + arrow_keys从行的开头到结尾移动.
文本导航快捷方式
\nCommand+Left Arrow
Command+Right Arrow
Option+Left Arrow
Option+Right Arrow
Command+Up Arrow
Command+Down Arrow
文本选择快捷键
\n选择文本到行首 \xe2\x80\x93Shift+Command+Left Arrow
选择到行尾的文本 \xe2\x80\x93Shift+Command+Right Arrow
选择当前单词开头的文本 \xe2\x80\x93Shift+Option+Left Arrow
选择当前单词末尾的文本 \xe2\x80\x93Shift+Option+Right Arrow
选择所有文本开头的文本 \xe2\x80\x93Shift+Command+Up Arrow
选择所有文本末尾的文本 \xe2\x80\x93Shift+Command+Down Arrow
归档时间: |
|
查看次数: |
70460 次 |
最近记录: |