This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 393
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## master #1847 +/- ##
==========================================
+ Coverage 90.85% 90.91% +0.05%
==========================================
Files 195 195
Lines 10727 10727
Branches 1570 1570
==========================================
+ Hits 9746 9752 +6
+ Misses 981 975 -6
Continue to review full report at Codecov.
|
annthurium
approved these changes
Dec 17, 2018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for fixing this, @smashwilson !
I agree that we should cherry pick this into stable to avoid thrash with key bindings which would frustrate our users.
smashwilson
added a commit
that referenced
this pull request
Dec 18, 2018
Backportable keymap changes
This was referenced Jan 2, 2019
Closed
Closed
Closed
smashwilson
added a commit
that referenced
this pull request
Jan 4, 2019
Backportable keymap changes
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please be sure to read the contributor's guide to the GitHub package before submitting any pull requests.
Requirements
Description of the Change
Restore MultiFilePatch navigation keybindings unadorned by
cmd
orctrl
that were removed by #1512. Specifically:right
andcmd-right
orctrl-right
surface focus to the Git tabbackspace
discards the selectionenter
stages or unstages the selectiono
jumps to file/
toggles between line and hunk selection modeI've also separated the
cmd
andctrl
keybindings throughout the keymap by platform, guardingcmd
bindings with.platform-darwin
andctrl
alternatives with.platform-linux, .platform-win32
. This opens up thectrl-
bindings on macOS in the future and prevents ambiguities in the binding that we render on buttons and tooltips.Alternate Designs
Another alternative that we talked about was showing a notification the first time that you try to use one of the deprecated keystrokes (and letting the keystroke go through to the editor normally). I think we should do that as part of the diff editability work, personally.
Benefits
This keeps our keybinding changes from breaking users' muscle memory for another few releases.
Possible Drawbacks
If anyone on macOS learned the ctrl- keystrokes for some reason, those will be broken by this.
It also gives us a lot of redundancy in our keymap, which hurts maintainability. Hopefully this is just a temporary thing.
Applicable Issues
Related to #1820.
Metrics
Out of scope for the moment.
Tests
Our existing test suite should catch any regressions here.
Documentation
The flight manual already references unadorned keystrokes, which is a good reason to backport this. I've also already filed atom/flight-manual.atom.io#504 to update it to use the
cmd
orctrl
prefixes where appropriate, which we can merge while both work, so that new users learn the prefixed commands instead.Release Notes
User Experience Research (Optional)
n/a