Un'opzione sarebbe creare ~ / Library / KeyBindings / e salvarlo come DefaultKeyBinding.dict:
{
"@\UF702" = moveWordBackward:;
"@\UF703" = moveWordForward:;
"~\UF702" = moveToBeginningOfLine:;
"~\UF703" = moveToEndOfLine:;
"~$\UF702" = moveToBeginningOfLineAndModifySelection:;
"~$\UF703" = moveToEndOfLineAndModifySelection:;
}
Non puoi cambiare ⇧⌘ ← o ⇧⌘ → però. E non funziona in alcune visualizzazioni di testo o Xcode o Firefox.
Usando KeyRemap4MacBook, puoi aggiungerlo a private.xml :
<autogen>--KeyToKey-- KeyCode::CURSOR_LEFT, VK_OPTION | ModifierFlag::NONE, KeyCode::CURSOR_LEFT, VK_COMMAND</autogen>
<autogen>--KeyToKey-- KeyCode::CURSOR_RIGHT, VK_OPTION | ModifierFlag::NONE, KeyCode::CURSOR_RIGHT, VK_COMMAND</autogen>
<autogen>--KeyToKey-- KeyCode::CURSOR_LEFT, VK_SHIFT | VK_OPTION | ModifierFlag::NONE, KeyCode::CURSOR_LEFT, VK_SHIFT | VK_COMMAND</autogen>
<autogen>--KeyToKey-- KeyCode::CURSOR_RIGHT, VK_SHIFT | VK_OPTION | ModifierFlag::NONE, KeyCode::CURSOR_RIGHT, VK_SHIFT | VK_COMMAND</autogen>
<autogen>--KeyToKey-- KeyCode::CURSOR_LEFT, VK_COMMAND | ModifierFlag::NONE, KeyCode::CURSOR_LEFT, VK_OPTION</autogen>
<autogen>--KeyToKey-- KeyCode::CURSOR_RIGHT, VK_COMMAND | ModifierFlag::NONE, KeyCode::CURSOR_RIGHT, VK_OPTION</autogen>
<autogen>--KeyToKey-- KeyCode::CURSOR_LEFT, VK_COMMAND | VK_SHIFT | ModifierFlag::NONE, KeyCode::CURSOR_LEFT, VK_OPTION | VK_SHIFT</autogen>
<autogen>--KeyToKey-- KeyCode::CURSOR_RIGHT, VK_COMMAND | VK_SHIFT | ModifierFlag::NONE, KeyCode::CURSOR_RIGHT, VK_OPTION | VK_SHIFT</autogen>
Tornerebbe con ⌘ ← e cambiando le schede con ⇧⌘ ← smetti di funzionare comunque.
Vedi la fonte per le costanti del codice chiave e impostazioni predefinite .