Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alt keybindings not working on Mac OS #331

Open
5 of 10 tasks
ryanpagel opened this issue Jan 7, 2024 · 6 comments
Open
5 of 10 tasks

Alt keybindings not working on Mac OS #331

ryanpagel opened this issue Jan 7, 2024 · 6 comments
Assignees

Comments

@ryanpagel
Copy link

Check list

  • I have read through the README
  • I have the latest version of forgit
  • I have searched through the existing issues

Environment info

  • OS
    • Linux
    • Mac OS X
    • Windows
    • Others:
  • Shell
    • bash
    • zsh
    • fish

Problem / Steps to reproduce

First of all, thank you this tool, I love using it!

The keybindings that use Alt do not work for me. Technically on Mac there is not Alt key there is only option. I've tried with multiple keyboards including the built-in Apple MacBook keyboard as well as an external Logitech keyboard. Here is an example of pressing option+e on a file, it just produces a tick character.

image

Any guidance would be much appreciated or if this is a new feature request it would also be appreciated. I would especially like to make use of the Alt - e and Alt - J and Alt - K options. Thank you.

@cjappl
Copy link
Collaborator

cjappl commented Jan 7, 2024

Hi! Thanks for the bug report.

This is working for me, using option as the modifier key (tested option+e option+J and option+k, all work as intended on my machine). Can you tell me what terminal emulator you use? I think I remember some configuration-foo you have to do on iTerm, I'll see if I can find it for you.

@cjappl cjappl self-assigned this Jan 7, 2024
@cjappl
Copy link
Collaborator

cjappl commented Jan 7, 2024

Here's my note from my "provision a new machine" script:

echo "Allow left option to scroll in forgit: Iterm Preferences->Profile->Keys->Below the window->Left Option Key = Esc+"

@ryanpagel
Copy link
Author

I'm using the default Mac Terminal and the VSCode integrated terminal.

@cjappl
Copy link
Collaborator

cjappl commented Jan 8, 2024

Does something like this work for Terminal?

https://osxdaily.com/2013/02/01/use-option-as-meta-key-in-mac-os-x-terminal/

For vscode I'm seeing suggestions to enable the option

'terminal.integrated.macOptionIsMeta'

@cjappl
Copy link
Collaborator

cjappl commented Feb 1, 2024

@ryanpagel can you confirm if either of these solutions work for you?

@cjappl cjappl assigned ryanpagel and unassigned cjappl Feb 1, 2024
@MingChen91
Copy link

Hey @ryanpagel, came across this thread as I having the same problem using iterm2. I found putting option as Esc+ seemed to have fixed it for me. Hope you have found the fix!

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants