astroidmail / astroid

A graphical threads-with-tags style, lightweight and fast, e-mail client for Notmuch
http://astroidmail.github.io
Other
612 stars 65 forks source link

Command modifier on OSX? #363

Open mgraham opened 7 years ago

mgraham commented 7 years ago

I'd like to make Command+W close the current page on OSX. I've tried the following, but no luck:

main_window.close_page=Command-w
main_window.close_page=D-w #
main_window.close_page=A-w
main_window.close_page=M-w
main_window.close_page=MOD1-w
main_window.close_page=MOD2-w
main_window.close_page=MOD3-w

From what I can surmise, Command is MOD2 in GDK on OSX, but

main_window.close_page=MOD2-w

has no effect.

gauteh commented 7 years ago

Michael Graham writes on juli 6, 2017 19:30:

I'd like to make Command+W close the current page on OSX. I've tried the following, but no luck:

main_window.close_page=Command-w
main_window.close_page=D-w #
main_window.close_page=A-w
main_window.close_page=M-w
main_window.close_page=MOD1-w
main_window.close_page=MOD2-w
main_window.close_page=MOD3-w

From what I can surmise, Command is MOD2 in GDK on OSX, but

main_window.close_page=MOD2-w

has no effect.

At this point, only C- (Ctrl) and M- (Meta / Alt) modifiers are supported.

mgraham commented 7 years ago

Ok, thanks. It looks like currently Ctrl works on OSX, but Alt/Meta doesn't work on OSX.

gauteh commented 7 years ago

Michael Graham writes on juli 6, 2017 21:42:

Ok, thanks. It looks like currently Ctrl works on OSX, but Alt/Meta doesn't work on OSX.

Ok, left Alt?

mgraham commented 7 years ago

Neither Option_L nor Option_R work as Meta. I'm testing with the M-s (show saved searches) binding.

It's not a big deal for me - there are very few Meta mappings - I can map them to other keys

gauteh commented 7 years ago

Related: https://github.com/astroidmail/astroid/issues/170

c-alpha commented 6 years ago

M-s is the only interactive way of bringing up saved searches for now. As that doesn't work on macOS as @mgraham pointed out, the only way to bring up saved searches on macOS is via the config file. What about adding C-s as a second key to bring up saved searches? C-S saves a search, so could be seen as somewhat intuitive even?

gauteh commented 6 years ago

c-alpha writes on november 10, 2017 18:34:

M-s is the only interactive way of bringing up saved searches for now. As that doesn't work on macOS as @mgraham pointed out, the only way to bring up saved searches on macOS is via the config file. What about adding C-s as a second key to bring up saved searches? C-S saves a search, so could be seen as somewhat intuitive even?

I guess those should be flipped; C-s should save a search while C-S should bring up the list.. Isn't C-s already bound to something?