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

Desktop: Add extra macos keys from #4257 #4259

Merged
merged 3 commits into from
Jan 2, 2021

Conversation

CalebJohn
Copy link
Collaborator

See the discussion in #4257 for reference.

The eslintignore and gitignore changes were automatically generated on commit. I can try to remove them if you want.

@tessus
Copy link
Collaborator

tessus commented Dec 29, 2020

Btw, while you're at it. Can you also change MacOS to macOS in that file?

@tessus
Copy link
Collaborator

tessus commented Dec 29, 2020

qq where can I find the example how to add a codemirror shortcut via a plugin? (You mentioned an example, but I couldn't find it... at least not in packages/app-cli/tests/support/plugins)

@CalebJohn
Copy link
Collaborator Author

The plugin example was removed because it's no longer up to date. All keybindings should be added via the command system. Unfortunately, that doesn't mean much because the commands system hasn't quite been connected to the editor instances. You might still be able to use the old method which is

CodeMirror.keyMap.default['Ctrl-U'] = 'someCommand';

I plan to spend some time on this in the next week or so, hopefully it will be fully connected soon.

@tessus
Copy link
Collaborator

tessus commented Dec 30, 2020

@CalebJohn I haven't tested it yet, but I'm using Opt+Left for Back and Opt+Right for Forward.

  {
    "command": "historyBackward",
    "accelerator": "Option+Left"
  },
  {
    "command": "historyForward",
    "accelerator": "Option+Right"
  }

Will this PR render my shortcut assignment impossible?

@CalebJohn
Copy link
Collaborator Author

Oops, I saw your other comment first. This pull won't affect your keybindings.

@tessus
Copy link
Collaborator

tessus commented Dec 30, 2020

Oops, I saw your other comment first.

Haha, same here. ;-)

Thanks, I've just tested it. (I had to get to my computer first. :-))

My keyboard shortcuts still work. It's just that the codemirror shortcuts are not available, since I can't change them (other than changing the source code). This is not a problem for me, and if this is working as designed, I'm ok with it!

Copy link
Collaborator

@tessus tessus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tessus tessus added desktop All desktop platforms editor labels Dec 30, 2020
@tessus
Copy link
Collaborator

tessus commented Dec 31, 2020

@CalebJohn it seems that there's now a conflict for these files:

The eslintignore and gitignore changes were automatically generated on commit.

I've noticed something similar when I run npm i or sometimes just after running npm run start. I often get additional changes to the Podfile.lock file or to the 2 files you mentioned. I always append && git stash && git stash clear to the npm i command. ;-)

@CalebJohn
Copy link
Collaborator Author

Thanks for the heads up. I normally do that, but I think this time it happened while committing, or maybe I just forgot.

@laurent22
Copy link
Owner

Thanks for the update, and happy new year to both of you!

@laurent22 laurent22 merged commit fdfbb84 into laurent22:dev Jan 2, 2021
@CalebJohn CalebJohn deleted the macos-editor branch January 2, 2021 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop All desktop platforms editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants