码迷,mamicode.com
首页 > 移动开发 > 详细

mac item2自定义光标移动快捷键,移动行首行尾,按单词跳转

时间:2020-02-06 12:47:35      阅读:92      评论:0      收藏:0      [点我收藏+]

标签:for   get   short   pen   pre   stack   lines   ref   hex   

To jump between words and start/end of lines in iTerm2 follow these steps:

  • iTerm2 -> Preferences (? + ,)
  • Open the “Keys” tab
  • Add the following Global Shortcut Keys

Move cursor one word left

  • Keyboard Combination: ? + 
  • Action: Send Hex Code
  • Code: 0x1b 0x62

Move cursor one word right

  • Keyboard Combination: ? + 
  • Action: Send Hex Code
  • Code: 0x1b 0x66

Move cursor to beginning of line

  • Keyboard Combination: ? + 
  • Action: Send Hex Code
  • Code: 0x01

Move cursor to end of line

  • Keyboard Combination: ? + 
  • Action: Send Hex Code
  • Code: 0x05

Delete word

  • Keyboard Combination: ? + ←Delete
  • Action: Send Hex Code
  • Code: 0x1b 0x08

Delete line

  • Keyboard Combination: ? + ←Delete
  • Action: Send Hex Code
  • Code: 0x15

Undo

  • Keyboard Combination: ? + z
  • Action: Send Hex Code
  • Code: 0x1f

Don‘t forget to remove the previous bindings:

  • Open the “Profiles” tab
  • Click the sub-tab ”Keys”
  • Remove the mappings for key combinations ? +  and ? + 

参考文档: https://stackoverflow.com/questions/6205157/iterm-2-how-to-set-keyboard-shortcuts-to-jump-to-beginning-end-of-line

mac item2自定义光标移动快捷键,移动行首行尾,按单词跳转

标签:for   get   short   pen   pre   stack   lines   ref   hex   

原文地址:https://www.cnblogs.com/chenkeyu/p/12268165.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!