-
Notifications
You must be signed in to change notification settings - Fork 26
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
Multiple Selection behaviour like SublimeText #82
Comments
This is not yet available, but would be very nice to have! |
…ltiple caret selections with mouse).
This is not yet completely fixed. At the moment it allows you to add carets from the top to the bottom. To do this, I need to remember the index of the caret has been added with the Ctrl+Click. This can be tricky with overlapping ranges which get merged... So that still is a WIP |
Sounds awesome, when this is totally implemented I'll give it a shot again to the project, thing is, over the last weeks I've been testing a lot of projects to find a good replacemente for QScintilla widgets used on my python projects (pyqt&pyside2) and at this point I haven't found anything, here's a little list of the ones I've tried:
Over the last 2 weeks I've been researching a lot to find alternative that allowed me to replace my QScitilla widgets for something that would look like SublimeText and this one is the closest alternative (and probably the fastest in terms of performance) but there is one thing that throws me off quite a lot to contribute more actively:
So... after all this research I haven't found any ideal solution for my projects and not sure what's the best direction to take :/ . I thought getting a SublimeText-like standalone widget for Qt apps would be much easier than what it's proving to be... or maybe it's just me who's too picky and I should stay with the old creepy Scintillas... hehe. Ps. Sorry for the long comment but I just wanted to clarify a bit and giving you a bit more of context about why I didn't comment earlier on this issue. Which btw, that's another reason why I started considering alternatives, as this is one of my favourites features when coding in SublimeText, can't live without it to be really productive ;) |
I think the best direction, still, would be to improve upon the existing C++ widget which is used by several projects (one of them very large). |
I also agree that c++ is the way to go. Because it can be integrated in other project that way... I've written edbee for a project I was working which required a very open en flexible editor. I needed to have undo buffers over multiple editor windows, sychronized caret movements. Dynamic lines adding / Removing. Side comparing contents in multiple editors... (I could compare 3-4 editors side by side and sync them) This is the reason it is abstracted on many fronts... Unfortunately my current time for the project is very limited. (Very busy with customer projects .. ) |
Yeah, that's another reason why joining the project looks "risky", this is a project you can't work full time. I can't neither... actually an emdedable proper text editor widget isnt the higher priority to me but I'd definitely wanted to get it done so the quality of my projects using text editor widgets would take the next level in terms of quality and usability. I think when i'm back home I'll upload all the stuff i did providing python people a python module ready to use edbee-lib in pyqt. Then I'll put some links to redirect traffic here to the upstream. Hopefully, that will help to the project to gain more traction and contributors, even if 1 or 2 :). Problem is my github account isnt very popular as i dont post almost any interesting content there, just throw away code or experiments basically In the meantime I think I'll be back to scintilla land where everything is creepier but at least is mature stuff. Btw, when i talked before about coupling and levelization didn't intend to criticize your code, so pls don't get me wrong. It was more in line of applying all the good lessons from jhon famous c++ lakos book. I think there are videos on youtube from lakos as explaining those concepts as well... When im back home Ill post the links, right now im texting from phone, which is really tidious ;) |
In Mudlet we had to ditch QScintilla early on because it was crashy. edbee's C++ widget is certainly better than QScintilla, which is what you found when you discovered the project - not sure why would it be any worse a few weeks later... I recommend you stick it out with this! |
I think I've finally decided the direction I'm gonna follow... I've just created a new python project, https://github.com/brupelo/pyblime trying to improve Scintilla... once the widget becomes usable maybe I'll decouple it from Scintilla. That said, posting here my last attempt of wrapping edbee into python as I won't need it anymore:
Anyway, I wish the best to this project... I'll be checking it out here and there to see how it evolves. If eventually becomes fully feature-complete maybe I'll be back ;) To be fair, amongst the dozen of options I've explored this one was the most promising but the fact Rick is busy with other more important projects and the pace is quite low made me to decide to choose another suboptimal choices. Ps. I'd said few days ago I was going to post some links, here we go:
Mostly of the concepts teached by Lakos can be applied not just in the context of c++ but also with other different languages, really interesting stuff \o |
@gamecreature Argh, I've added a lot of offtopic/noise for this particular thread, sorry about it. Anyway, how hard do you think it'd be to address this one? You'd mentioned in the past that:
Does this code https://github.com/codemirror/CodeMirror/blob/master/src/model/selection.js help you to think about an easy fix for this particular one? |
I'd like to have in edbee-lib the same nice behaviour when making multiple selections than SublimeText. Compare the behaviour between SublimeText and edbee-lib (using the same sequence of mouse/keyboard actions)
Is this already implemented? If it's so, how do I enable it?
Ps. Using windows7 + 5.11.3 over here
Ps2. On windows & ST, to create new selection/region on the view you just need to hold ctrl while creating the new selections with the mouse.
The text was updated successfully, but these errors were encountered: