Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

keybindings macos #178

Closed
1 of 5 tasks
urielz opened this issue Oct 11, 2019 · 9 comments
Closed
1 of 5 tasks

keybindings macos #178

urielz opened this issue Oct 11, 2019 · 9 comments
Labels
bug Something isn't working

Comments

@urielz
Copy link

urielz commented Oct 11, 2019

How have you installed cordless

  • Arch User Repository
  • Snap
  • scoop
  • brew
  • go get

What happened

All keybindings of the form Alt + ? do no work (Ctrl + ? do work, so it's not a problem with all shortcuts).

System information

macos 10.13.6

@Bios-Marcel
Copy link
Owner

Which terminal emulator are you using? Sounds like your terminal emulator is capturing the keystrokes before corldess can evaluate them. There isn't really a fix for this, since it's not a bug. But maybe there could be different sets of default keybindings depending on the terminals TERM environment variable.

@Bios-Marcel
Copy link
Owner

As for a workaround, currently the shortcut changer is on Shift + Alt + S, therefore you probably can't change any shortcuts either ... in that case you'll probably have to manually edit the shortcuts.json file or use a different terminal emulator to change the shortcuts and then swap back to your old one.

@urielz
Copy link
Author

urielz commented Oct 11, 2019

Thanks for the answer. I'm using iTerm2, but I also try with the vanilla terminal packed in macos.

Sounds like your terminal emulator is capturing the keystrokes before corldess can evaluate them

If this is the case, I find surprising that Ctrl+I and Ctrl+O are working... ?

I'll take a look at the json file. Thank you.

@Bios-Marcel
Copy link
Owner

According to @sumpunk on discord it's because Mac OS uses the Alt key to alternate between different characters, so it's different from Windows and Linux and might not be related to the terminal emulator after all 🤷‍♂️

@Bios-Marcel Bios-Marcel added the bug Something isn't working label Oct 12, 2019
@Bios-Marcel
Copy link
Owner

Bios-Marcel commented Oct 29, 2019

I have kinda neglect this issue since i didn't find a good solution. Manually editing the shortscuts is kinda dumb as a workaround. So I think i'll just allow starting cordless in a "shortcut changemode" with some parameter.
Like cordless --shortcut-dialog. That's a workaround for those, that already have broken shortcuts. Going further, I gotta change the defaults. Maybe I can have different shortcut defaults for different systems as well.

@Bios-Marcel
Copy link
Owner

Bios-Marcel commented Oct 29, 2019

@urielz Hey, I just did what i mentioned: 6d67c34

You can now run cordless --shortcut-dialog, this might lower the pain a bit ^^

@urielz
Copy link
Author

urielz commented Nov 4, 2019

@Bios-Marcel Thanks! I'll give it a try.

@Bios-Marcel
Copy link
Owner

So, i even changed the shortcut for the dialog to Ctrl-K now and indicate it at the bottom of the app. I'll be closing this for now. I guess i'll still have to choose better defaults at some point. Maybe different ones depending on the OS.

@maciejpk
Copy link

maciejpk commented Dec 2, 2019

I know that this issue is closed, but since it's iterm2 issue and I just came across it:

This post will help you:
https://stackoverflow.com/a/197092

Cmd+., Profiles, Keys and choose Left option Key acts as: +Esc.

Works for me in emacs, though I'm not sure if it will have any other undesirable effects.

It might be a good idea to include this in some OSX FAQ related to iTerm2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants