-
Notifications
You must be signed in to change notification settings - Fork 136
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
meow-select-on-[change|append|insert] changes where the mark goes #651
Comments
Do you mean in your case, the region is not activated after exit the INSERT state? The expected behavior is when you leave INSERT state, there's a region from the point you start to current position. |
The functionality works as expected when the variables are set. The thing that I'm thinking about is that when they are not set, the mark isn't moved so if I activate the mark after the fact, then the region is from wherever it was before to point. If the functions were rewritten to always drop a mark where the insertion begun, then check the variables to see if the region should be active or not; the markring would look the same for both when the variables are t and nil. An example:
where < is mark and | is point. |
So, the idea is to always have a mark where we enter the insert state. I think it's good, we should do it.
|
True I would probably need to try them out and live with them for a while to see if they're nice. |
After about 30 sec of playing around with using |
Need some thinking on how to achieve this. |
After using I've been playing around with how to naively implement the mark moving with a disabled region and I realize that I have no clue how activate- and deactivate-mark works. If i put them in a function that does something, then the activate or deactivate does nothing. But if I put it in its own function that I run on its own, then it works as I expect. I've read that there is some interaction between deactivate-mark variable and things that modify the buffer, but I haven't really gotten anywhere there either. |
Yeah, there are some tricky parts. |
I was playing around a bit with the new select on insert functionality and was looking at activating the region after the fact, but I noticed the variable is in charge of actually setting the mark, not just activating the selection.
Would it be better if the mark is set regardless, then the variables decide if the selection should be left active or not?
Also maybe a meow-activate fallback for meow-reverse?
The text was updated successfully, but these errors were encountered: