Unify druid & druid-shell selection types, rm src/text/selection.rs#1653
Unify druid & druid-shell selection types, rm src/text/selection.rs#1653
Conversation
|
A few thoughts/questions:
|
This is interesting, it would not have occurred to me to track the h-pos of the anchor edge, but now that you mention it you probably want to track the hpos of the secondary cursor, if you're doing BiDi.
edit: to clarify: I have added a constructor for
All explicit setting of the selection (that are not the product of vertical motion) clears
Yes, I was thinking of making this be our single selection type. I can't really think of a very good way to limit what is available to IME, but I do think it would be worth documenting the expectations a bit better. Thanks for the notes, very happy to have another pair of eyes on some of this stuff! |
This lets us delete druid/src/text/selection.rs
|
@lord i added a bunch more docs based on your suggestions, thanks! I'm going to go ahead and merge this so I can start cleaning up some of the follow-up PRs. :) |
|
sounds good! :)
…On Thu, Mar 18, 2021, at 9:29 PM, Colin Rofls wrote:
@lord <https://github.com/lord> i added a bunch more docs based on your
suggestions, thanks! I'm going to go ahead and merge this so I can
start cleaning up some of the follow-up PRs. :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1653 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPCQCQBHF2MUY4N3UH7N2LTEKSGNANCNFSM4ZJMXIGA>.
|
This removes the druid selection type, and adds any API on that type that was missing to
druid-shell::Selection