Repository navigation
Select screen rows when click-dragging in gutter - #8377
Conversation
|
Nice! 💎 |
|
Thanks for the ping, @nathansobo! Yeah, this is how things were before, but we intentionally switched to buffer rows in #5814 (which was a fix for #5738). I'm not strongly against this change, but just wanted to mention that I personally find it more intuitive if buffer rows are selected when you click in the gutter, and that's also the behavior in Sublime (as far as I can tell by reading my previous comments on this topic). I'm on a brand new laptop this week so don't have all the other editors installed -- would be great if someone could see how some other editors behave. And would be nice to hear from other folks what's more intuitive for them. |
|
Sublime When you click and drag to select text, it only highlights whole buffer rows on the line number gutter but it selects one screen row of text at a time when dragging up. If we could mimic Sublime here I think we could solve both use cases nicely (smooth drag-to-select and click to select line). |
|
Thanks for double-checking, @mehcode ❤️ -- yeah, I'd be 👍 on that approach. |
|
@lee-dohm In #8350 (comment) other issue you said this:
Can you expand a bit on this and get more specific about the behavior you'd prefer? |
|
Absolutely, sorry I wasn't clear in the first place ... If I click here: I would expect it to only select from I would expect it to select the entire folded section in the buffer, not just the screen line. In other words, I would expect it to select the entire |
0ab0315 to
31bdd56
Compare
…Instead of entire buffer rows
|
Just took this for a test drive and it feels great. ⚡ again @nathansobo |
Select screen rows when click-dragging in gutter



/cc @izuzak for 🔬
Before:
After: