Giter Club home page Giter Club logo

defaultkeybindings.dict's Introduction

About DefaultKeybindings.dict

I got the original code from the internet in 2010. The file said it had been compiled by Jacob Rus. Since then, I have been using many Emacs keybindings in many applications running in MacOS, especially those based on Cocoa. The functionality is very limited (or nil) on Applications not based on Cocoa, such as Firefox.

Installation

When I got a new Mac in 2019 (still Intel base), I had a lot of trubble installing my Default Keybindings dictionary. Not only did I chmod'd it to make it executable, I had to do something (I don't remember exactly what, sorry, other than having to restart my Mac with some security turned off, and turning it back on after installing the dictionary) to override MacOS's then new security features, apparently aimed at preventing users from fiddling with and potentially ruining their OS.

I might have had to create the new KeyBindings folder inside my home ~/Library/ directory, but, let me insist, that was the easy part.

More tweaks

I took advantage of the operation to add the ability to yank different segments of text (up to four) from the kill ring by hitting C-y repeatedly. I set this in the Terminal with defaults write -g NSTextKillRingSize -int 4 though it could be 8 or a different number.

According to Apple's "Cocoa Event Handling Guide", "If you set this to a value larger than one, you also need to rebind Control-Y to yankAndSelect: instead of yank: for things to work properly".

Not perfect, but couldn't live without it

Not everything works as hoped for, but it does to a large extent. I like it so much that I've been tempted to move from Firefox to Safari only to be able to use my Emacs-like keybindings.

There's a lot of hype about Karabiner Elements now. I should give it a try.

defaultkeybindings.dict's People

Contributors

plgx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.