Enable { and } to change diff context size in branches and tags panels in diffing mode#5258
Enable { and } to change diff context size in branches and tags panels in diffing mode#5258stefanhaller wants to merge 1 commit intomasterfrom
Conversation
…s in diffing mode Same for ( and ) to change the rename threshold.
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesFootnotes
|
|
BTW, I'm a little undecided whether the code complexity is worth it actually. Given that the commands show a toast saying what they did, I could also see us enabling the commands unconditionally everywhere. You could then change the diff context size while looking at the status panel, but why not? It would take affect the next time you view a diff. |
... actually, i stumbled upon a case where it didn't, though i cant recall it right away. do u want me to try to find that again?
i thought it was supposed to be the case already since these keybinds are listed under the "global" heading? |
No, they are listed but don't do anything when a panel is focused that doesn't show diffs. An alternative would be to strike them through in that case, with a tooltip explaining why they aren't available, like we do for many other commands that are only conditionally available. But I don't think it's worth the effort, it's just fine to enable them always. |
When looking at a diff in diffing mode in the branches or tags panels (e.g. after pressing
Won a branch and then selecting a different branch to diff it against the first one) it wasn't possible to change the diff context size using{and}, or the rename threshold using(and).Fixes #5254.