romkatv / zsh4humans

A turnkey configuration for Zsh
MIT License
1.68k stars 109 forks source link

Alt or option key in macOS not working #323

Open ciscohack opened 1 week ago

ciscohack commented 1 week ago

Hi Roman,

Looking for your expert advise. In my macbook alt/option key is not working in zsh4human shell with tmux integration. default key binding to access history which is alt+down not working and also various inbuild word jumb feature of iterm2 also not working.

in iterm2 if we press alt+left/right arrow it helps to jump the word that is also broken. need your help to fix this issue.

one of most useful feature of accessing history in quick time via alt+down keybinding is broken in macOS. if i rebind the key to shift + down key then i lost quick directory navigation which currently i am doing via shift + down key.

romkatv commented 1 week ago

Perhaps this iTerm2 FAQ entry will help:

Q: How do I make the option/alt key act like Meta or send escape codes?

A: Go to Preferences > Profiles tab. Select your profile on the left, and then open the Keyboard tab. At the bottom is a set of buttons that lets you select the behavior of the Option key. For most users, Esc+ will be the best choice.

ciscohack commented 1 week ago

Perhaps this iTerm2 FAQ entry will help:

Q: How do I make the option/alt key act like Meta or send escape codes? A: Go to Preferences > Profiles tab. Select your profile on the left, and then open the Keyboard tab. At the bottom is a set of buttons that lets you select the behavior of the Option key. For most users, Esc+ will be the best choice.

@romkatv Thanks for quick response. I already tried all this before knocking your doorstep. Here is my config snippet of iterm2 for ref but that didn't help

image
romkatv commented 1 week ago

Then I don't know. If you find a solution, please post an update.