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

Can't map <S-D-x> #1309

Closed
skanev opened this issue May 12, 2022 · 7 comments
Closed

Can't map <S-D-x> #1309

skanev opened this issue May 12, 2022 · 7 comments
Labels
bug Something isn't working

Comments

@skanev
Copy link

skanev commented May 12, 2022

Describe the bug

Try as I might, I cannot map <S-D-a> (or any Cmd+Shift mapping) on macOS.

To Reproduce
Steps to reproduce the behavior:

  1. Get a mac and do this on the mac
  2. Set let g:neovide_input_use_logo = 1 for good measure
  3. Run map <S-D-a> ihello to do a Cmd+Shift mapping
  4. Hit Cmd+Shift+a and watch your mapping not getting executed. It actually sends <D-a>

Expected behavior

The mapping to be execute (because Vim got <S-D-a>)

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • macOS 12.3.1
  • Neovide Version 0.8.0, but it happens on
  • Neovim Version 0.7.0

Additional context

I tried to get it fixed an open a PR, but I couldn't figure if I'm not breaking anything, and thought to open an issue and ask here instead. If somebody would like to give me guidance, I'm very happy to open a PR.

Anyway, I've managed to get it to work by changing this line from

        let shift = or_empty(self.shift && (use_shift), "S-");

to

        let shift = or_empty(self.shift && (use_shift || self.logo), "S-");

This is probably not how this should be fixed, but I struggle to figure out if I should pass use_shift as true in the caller or that will break something. Any pointers about either how I should fix this, or how should I test I'm not breaking anything, are highly appreciated!

@skanev skanev added the bug Something isn't working label May 12, 2022
@alexventuraio
Copy link

alexventuraio commented Aug 22, 2022

I'd love to see this feature moving forward, I'm coming from MacVim app and I'm very use to multiple mappings it has with SHIFT key and I'm just wondering when it gets supported by Neovide!

Is there any progress in this bug?

@alexventuraio
Copy link

I think this is also related See #992 (comment).

@MultisampledNight
Copy link
Contributor

MultisampledNight commented Aug 22, 2022

what the doge, seems like a lot of duplicates with <S-* are out there, I'll take care of closing them while linking to #1483

<S-{A,M,D,C}-* support has been added in #1483, and since #1455 g:neovide_use_logo is true by default on macOS. The first PR is not in a release yet, so could you try building from source and see whether it works there?

@alexventuraio
Copy link

Sorry for buttering you one more time with the same topic, but yeah, I'm very happy to build from source and give it a try!
Where can I find the instructions to build it from source?

@MultisampledNight
Copy link
Contributor

No worries! See https://neovide.dev/installation.html#mac-source, step 7 and following are only needed if you want an .app bundle. Feel free to ask if you hit any build issues, which are probably best handled on a more synchronous chat platform (like Discord or Matrix).

@alexventuraio
Copy link

@MultisampledNight just to let you know, I followed the instructions to build it from source in MacOS Monterrey v12.4 Apple M1 Pro Silicon chip, and every step went well, no warnings or bugs and my key mappings with SHIFT key are working just fine! ✅

@MultisampledNight
Copy link
Contributor

Thank you! I'll keep the issue for searchability open though, at least until the next release.

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

No branches or pull requests

3 participants