This repository was archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 407
Context locking #2399
Merged
Merged
Context locking #2399
Conversation
This file contains hidden or 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
Introduce a context lock to prevent this from happening when we don't want it to.
Codecov Report
@@ Coverage Diff @@
## master #2399 +/- ##
==========================================
- Coverage 93.43% 93.35% -0.08%
==========================================
Files 235 235
Lines 13066 13147 +81
Branches 1859 1885 +26
==========================================
+ Hits 12208 12274 +66
- Misses 858 873 +15
Continue to review full report at Codecov.
|
Contributor
|
Looking pretty good so far! 👍 |
Contributor
Author
|
Thanks! ✨ Just need to get the "unlock" icon looking right, then write the hover copy for the lock button states, I think. |
|
Thanks for your work, @smashwilson ! Looking forward to giving a try on this ! |
Closed
|
Awesome work @smashwilson! 🎉 |
|
Awesome ! thanks |
|
I |
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
Restores the behavior of following the WorkdirContext associated with the active pane item. Introduces the concept of a "locking" a WorkdirContext, so that one chosen explicitly from a context tile can be preserved even as you navigate elsewhere. Adds a padlock icon to the context tile to control toggling the lock.
Hat tip to @jarvelov for the locking idea! Solves a tricky UX problem in an elegant way.
Remaining work
lockocticon to make anunlockedsvg icon.Screenshot/Gif
Alternate Designs
See #2335 for an extended discussion about this.
Benefits
This will allow us to preserve the benefits of having visibility of, and explicit control over, the current WorkdirContext, while reintroducing the convenience of the context following active workspace items.
Possible Drawbacks
It will still be possible for users to get lost if they do something like open a file outside of their working repo for a quick configuration edit; see #1595 for some of this confusion. With this change, they will be able to lock their context to prevent this from happening, but if they aren't already working across multiple projects
Applicable Issues
Fixes #2335.
Documentation
N/A
Release Notes
User Experience Research (Optional)
N/A