-
Notifications
You must be signed in to change notification settings - Fork 5
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
When going to a bookmark when "mark_whole_line": true, the line is selected #13
Comments
Currently, this is expected behavior; when I created this option, I wasn't concerned with the selection when marking an entire line. |
Principle of least astonishment: line should not be selected, as is the case with default bookmarks and default option of |
Fair enough, would adding the bookmark to the beginning of the line, with no selection, be acceptable? The original idea for "mark_whole_line" was to only allow one mark per line; so the bookmark could be toggled from anywhere on the line. Maybe a rename of this option would be appropriate as well. Thoughts? |
Thanks for the explanation. Based on the prose description, rather than the configuration variable name, which I only read of later, I thought that one could Mark anywhere in a line, but you could only Mark once per line. Going to the bookmark would restore the cursor to the place in the line where the bookmark was made. But toggling the bookmark anywhere in the line could turn it off. This was just my initial impression. If you want to keep the current functionality, I would just tweak the prose description. Another option would be to place the Mark at the first non-white space character in the line, without selecting the line. Or, selection could actually be another configuration variable. |
In v1.2.0 (released today), I changed "mark_whole_line" to "marking_mode" which can have one of two values (right now).
I hope these new options make more sense than the previous one. If you have any other ideas for these modes, please let me know here. Thanks and Happy Holidays! |
Whoops... I hit the wrong button.... |
Hi, returning to this plugin and issue after a few months. I appreciate that |
To clarify, right now two things are coupled: more than one mark per line and ability to mark a selection (including no selection).
|
I still haven't been able to figure this out. When |
I forked the code and added some comments to try to understand, a question, as well as a hack that goes to the beginning of the line in line mode (rather than the whole line being selected). |
When going to a bookmark when "mark_whole_line": true, the line is selected counter to defaults.
The text was updated successfully, but these errors were encountered: