Skip to content
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

Fix CodeTextEditor.toggle_bookmark with multiple selections #72679

Closed

Conversation

aXu-AP
Copy link
Contributor

@aXu-AP aXu-AP commented Feb 3, 2023

Partially fixes #72410
Fix bug if you toggle bookmarks when 2 carets are on the same line.
A cool side effect, and maybe the more important feature is that you can now remove all bookmarks in selected lines (so you can clear all bookmarks in script simply by ctrl+A + ctrl+alt+B). This works in inverse too, altough bookmarking multiple lines at once isn't all that useful, I would expect that to happen if I make a selection and press toggle bookmark.

Bookmark lines

Add helper functions to get lines that are affected by line operations. These are used in other similiar operations (#72675, #72671, #72672). These likely need to be rebased after one of them gets merged.

Fix bug if 2 carets are on the same line.
Allow adding/removing all bookmarks on selected lines.

Add helper functions to get lines that are affected by line operations.
@aXu-AP
Copy link
Contributor Author

aXu-AP commented Feb 3, 2023

Work moved into #72671

@aXu-AP aXu-AP closed this Feb 3, 2023
@YuriSizov YuriSizov removed the request for review from Paulb23 February 3, 2023 21:44
@aXu-AP aXu-AP deleted the code-editor-toggle-bookmarks-fix branch February 15, 2023 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Various issues when multiple carets are on the same row
2 participants