Is there a way to make alt-f and alt-b jump word forward and backward instead of printing ƒ and ∫ on Mac?

后端 未结 7 1559
渐次进展
渐次进展 2021-01-31 02:03

I understand that Mac has some Emacs keybindings enabled by default (e.g. Ctrl+A move to beginning of line etc.). If I open TextEdit for example I can navi

7条回答
  •  猫巷女王i
    2021-01-31 02:53

    Maybe one of these helps? (I don't use OSX myself, so I can't test anything).

    • http://blog.sensible.io/2012/10/19/mac-os-x-emacs-style-keybindings-everywhere.html
    • http://aufflick.com/blog/2006/01/10/emacs-keybindings-everywhere

    Summary from first URL:

    Create file ~/Library/Keybindings/DefaultKeyBinding.dict with the following content and restart all apps.

    { "~d" = "deleteWordForward:"; "^w" = "deleteWordBackward:"; "~f" = "moveWordForward:"; "~b" = "moveWordBackward:"; }

提交回复
热议问题