Code Monkey home page Code Monkey logo

iterm2-macos-dynamic-profile's Introduction

Fix iterm2 MacOS keys

Build Status

iTerm2 has terrible defaults concerning option + arrow, cmd + arrow + backspace or delete. Here's a fixed dynamic profile to fix that.

Refer to iTerm 2: How to set keyboard shortcuts to jump to beginning/end of line? Answer.

I followed instructions, took the first suggestion each time and generated this iTerm2 profile.

How to import dynamic profile

git clone https://github.com/GabLeRoux/iterm2-macos-dynamic-profile.git
cd iterm2-macos-dynamic-profile

# copy the json profile to dynamic profiles folder
cp ./fix-iterm2-keys-profile.json ~/Library/Application\ Support/iTerm2/DynamicProfiles

# or create a symlink for easier updates
ln -s $(pwd)/fix-iterm2-keys-profile.json ~/Library/Application\ Support/iTerm2/DynamicProfiles/
  • Open iTerm2 Preferences -> Profiles
  • Select the new dynamic profile from the list
  • Click Other Actions -> Bulk Copy from Selected Profile...
  • Check Keys checkbox
  • Select your profile
  • Hit Copy button
  • Enjoy a much better life with your keyboard

Bulk Copy from Selected Profile...

Copy Keys to your profile

ZSH bindkey fix + redo

As explained in iTerm 2: How to set keyboard shortcuts to jump to beginning/end of line? Answer:

See ./fix_zsh_keys.sh

# Copy fixed keys to your dotfiles
mkdir ~/dotfiles/
cp ./fix_zsh_keys.sh ~/dotfiles/

# Add entry to your ~/.zshrc
echo 'source ~/dotfiles/fix_zsh_keys.sh' >> ~/.zshrc

# Reload your .zshrc for changes to take effect
source ~/.zshrc

Related documentation

See iterm2 dynamic profiles documentation for more details.

License

MIT © Gabriel Le Breton

iterm2-macos-dynamic-profile's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

iterm2-macos-dynamic-profile's Issues

Delete one word to the right of cursor

I think the code for "Delete one word to the right of the cursor" is missing from the JSON file. Specifically: ⌥+fn←Delete or ⌥+Delete→ Send Hex Codes: 0x1b 0x64.

Adding this to the JSON file works for me:

        "0xf728-0x80000" : {
          "Action" : 11,
          "Text" : "0x1b 0x64"
        }

Thanks for this resource.

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.