2009年11月10日 星期二

iTerm上的home和end鍵

一直以來iterm上的home和end鍵總是困擾著我,
在一般的鍵盤上總是會有home和end鍵,
但是Macbook系列的鍵盤就是沒有,
所以各個程式都有他自己一套快捷鍵。
但是沒有home和end,打起指令來真的很不舒服,
找了好久總算是有人將各個軟體中home和end的熱鍵整理好了

參考的來源如下:
http://regebro.wordpress.com/2008/11/07/switching-to-os-x-obstacle-3-homeend-buttons-unsolved/

為了備份以便不時之需,我將其截圖貼上來方便說明
其中,綠色是可以使用的熱鍵,紅色是有一些奇怪的作用,跟原本的效果差異很大。
黃色則是有作用但是沒有符合作者要求的功能,但是可預期,白色則是完全沒動作。



Note 1: Normal Mac behaviour, and quite common is for Home/End to move to the top and bottom of the document. Safari does this, and using Shift will even select text as well if you are in a text area. TextEdit will select if you have shift, but not otherwise move.
Note 2: Vi refused to do Home/End with any of the key combinations in both terminals.
Note 3: WingIDE doesn’t map Shift+Ctrl+A and Shift+Ctrl+E correctly by default, but this is easily configurable.

所以,如果要在iTerm上面使用home和end,
可以使用Fn+Arrows和ctrl+A/E,
但是,因為我有時候會使用screen,
screeen會把ctrl+A吃掉,
所以,最後的結論,在筆電上只能使用Fn+Arrows。

沒有留言:

Related Posts Plugin for WordPress, Blogger...