-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Implementation of modulo line numbers #333
Conversation
src/processTargets/processMark.ts
Outdated
return editor.selection.active.line + linePosition.lineNumber; | ||
case "modulo100": | ||
const stepSize = 100; | ||
const { start, end } = editor.visibleRanges[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you plan to handle folding? That's how you get multiple visible ranges. Should probably report an error if two lines from different folded regions can match
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call. I will just throw an error if I can find multiple matching lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pokey It's updated and looks good imnsho :)
@pokey So now we have proper support for folded regions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I ran the yaml normaliser in 4e1c57a to make future diffs cleaner. We should maybe bake this step into pre-commit / CI
take row 15
=> will select 15/115/215/...