limetext / backend

Backend for LimeText
BSD 2-Clause "Simplified" License
538 stars 87 forks source link

No OnStatusChanged event when the selection is changed #127

Closed zoli closed 4 years ago

zoli commented 6 years ago

Currently we are changing the selection and regions with sth like v.Sel().Add(reg), for example we do this on mouse click in qml frontend. The problem is we aren't recieving OnSelectionModified event in this situation as modifing selection isn't done in backend package, but we need this event. I faced this issue while working on displaying line col in status bar which it needs an event for updating the line column numbers. A solution could be creating an add region function in backend and firing OnSelectionModified event after adding, but then we should disable changing the regions from the Sel() function.

Any other ideas?

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/53003123-no-onstatuschanged-event-when-the-selection-is-changed?utm_campaign=plugin&utm_content=tracker%2F15716642&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F15716642&utm_medium=issues&utm_source=github).
zoli commented 4 years ago

Closed by aaa3040e834738c0ddc5c6b684adda49072baaa5