-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for multiple carets and selection ranges #222
Comments
I wonder if it might be wise to implement #152 before doing this... |
You guys know better! |
This can enable many things like refactoring code variables, (members?), paste into multiple ranges , etc |
Let me explain my thinking: However, I might be saying this because I'm viewing the master branch in terms of a "story" rather than "how it was developed" (I recently read an article that explained people usually view a git history in terms of one of those two ideas, but I can't remember where that article is). |
I agree with Jordan that continuing the refactoring is more a natural immediate course, because, let's clean up the basics first. That doesn't mean that multiple carets/selections can't be implemented first. But unless someone steps up and does the work (:wink:), it will not happen before. |
True... except I'm currently focused on one of the last problems in my program (and then I can release it.... at least, once I figure out how to do that :-D) At the same time, 152 isn't a high priority right now, just a nice thing to have in my specific use case. Would you be up for implementing 152 @melkhaldi ? I don't have a need to implement multiple carets or selections as of right now, and Tomas seems to be working on other things. Yes, there would be a higher chance of getting this feature implemented if you did it, but my guess is that this feature relates enough to 152 that there would be reason for you to do that as well. At the same time, you would probably understand the library well enough to implement 152 if you implemented this feature, or vice versa, depending on the order taken. |
Oh no! You really don't want me near your code. At my best I may be the
|
Umm.... Actually I want you near this code (Tomas probably does? I can't speak for him). Every time you fail, you'll learn something new. So see this as a learning experience. So, it's a sort of win-win situation. Everyone who uses this library benefits from the new features. We benefit from the experience and overall learning and confidence built. Tomas benefits in that he has more time to work on what he needs. |
i am all for helping out... i am just not sure how helpful I can be, but On Sat, Dec 5, 2015 at 6:59 PM, JordanMartinez [email protected]
|
Cool! 😃 |
@melkhaldi by all means, give it a shot! This one might not be the easiest one as a warm-up pull request, so don't despair if things don't work straight away! |
Hey @melkhaldi, can you give us an update?
|
Hey Jordan, I haven't gotten around to it yet. I'll need to start wrapping
|
Just FYI (and in case you weren't aware) @melkhaldi, I've almost finished implementing #152 but there's still a minor bug to be worked out. |
Hey @melkhaldi, any updates? Or have you been busy with something else recently? |
hey Jordan, no i haven't gotten around to it. I am not sure when though. things don't seem to taper off for the time being.. |
Ok. Having worked on the model-view modulation issue, I realize now how many things need to be taken into account: CaretPosition has three parts to it:
The Selection has five parts to it:
These two items should probably be turned into their own separate classes for modulation and easier management. To have multiple carets/selections, then, the model would use an To actually be able to use it, one would need to account for the following things:
|
I think this should be distinguished from "support for multiple simultaneous changes". In other words, this specific issue should allow the option of multiple carets/selections throughout the area, but not yet handling multiple simultaneous changes (e.g. renaming a method). Rather, one could type something at Caret A's position and then type something at Caret B's position. |
I've implemented this in #687 and would appreciate any feedback on it before I merge it. |
Hi Tomas, is it on the radar to support multiple caret positions and selection ranges(with the ability to insert,paste text into those rsnges)? Just noticing that Flowless, and RichTextFX are going through major refactoring, so thought of asking :)
The text was updated successfully, but these errors were encountered: