Repository navigation
Add Ctrl/Cmd+A to select all visible timeline tracks - #6371
minwookshin wants to merge 1 commit into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6371 +/- ##
==========================================
+ Coverage 84.12% 84.13% +0.01%
==========================================
Files 356 356
Lines 38445 38472 +27
Branches 10787 10914 +127
==========================================
+ Hits 32340 32369 +29
+ Misses 5676 5674 -2
Partials 429 429 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
fatadel
left a comment
There was a problem hiding this comment.
Thank you very much for your contributions, @minwookshin, and sorry for the late review! The patch looks good overall, however, I would address the following before merging:
- Non-Latin keyboard layouts: the shortcut checks the typed character, so it doesn't fire on layouts like Russian. Checking the physical key (event.code === 'KeyA') would fix that.
- If you press
?on the keyboard, you will see the list of all the shortcuts. Can you add this one there too, please?
|
And please remove this AI-generated fluff from the PR description :) Otherwise, it can pollute the git tree.
|
|
Switched the shortcut to the physical A key and added it to the keyboard shortcut help. |
fatadel
left a comment
There was a problem hiding this comment.
Thanks for the PR, @minwookshin! And sorry it took this much to review.
-
I've played around with the deploy preview and I was able to accidentally select all the UI text instead of triggering ctrl+A. And this happened multiple times. I think it would be better to bind the shortcut to
window- the same way/and?are bound. -
After a careful consideration, I think your original approach with checking against
event.keywas better. It's also how most of the shortcuts are handler in this repo apart from WASD/HJKL. So, it would be nice to revert this - sorry I should have reviewed this properly from the beginning.
And I've left some inline comments that would be nice to address too. Thanks a lot for your contribution once again!
|
Moved the handler to Could a maintainer approve the new CI run? |
fatadel
left a comment
There was a problem hiding this comment.
Thanks for addressing the review comments so promptly!
- I left one last clean-up comment below.
- It would be nice if you can squash the commits. There is no need to keep the implementation back-and-forth in the tree.
2288d2e to
ee0016e
Compare
|
Removed the five unused |
fatadel
left a comment
There was a problem hiding this comment.
Thanks for addressing the issues! One last nit - please wrap the commit msg the same way they are wrapped in the tree.
Handle the shortcut globally while preserving text input selection and selecting a useful panel for the resulting tracks.
ee0016e to
ddbfe37
Compare
Main | Deploy preview
Fixes #6237.
Add Ctrl/Cmd+A to select all visible thread tracks from anywhere in the profile view. Hidden tracks stay hidden and unselected; text fields and composition retain their normal behavior. Keep the current thread panel where possible, including returning from the network chart to the last thread panel.