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

Added tests for head, tail and line numbers #178

Merged
merged 1 commit into from
Aug 4, 2021
Merged

Added tests for head, tail and line numbers #178

merged 1 commit into from
Aug 4, 2021

Conversation

AndreasArvidsson
Copy link
Member

No description provided.

Copy link
Member

@pokey pokey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM but we should potentially file issues for those two behaviours I call out below if you agree they should change

Comment on lines +26 to +27
- anchor: {line: 1, character: 9}
active: {line: 1, character: 0}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want these reversed? I can see the logic, but I'd imagine it's more common to want it forward, so would prob make sense to have that be the default

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like them like they are to be honest. Its define as past start of line after all.

Copy link
Member Author

@AndreasArvidsson AndreasArvidsson Aug 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And to be real these modifers are mostly usefull for chuck or clear. With a take it doesn't really matter where the active is because its gonna get overwritten if you insert anything.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough; if they're working well for you this way and it's simpler let's leave them!

Comment on lines +30 to +31
- anchor: {line: 1, character: 0}
active: {line: 3, character: 28}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So "down three" is a mark, not a modifier? I guess fine for now but I'd argue that long term we want it as a modifier

Copy link
Member Author

@AndreasArvidsson AndreasArvidsson Aug 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes up and down always align with vscode relative line number. This is just a stopgap intill we have the full "next" syntax working.

@pokey pokey merged commit 88d596e into master Aug 4, 2021
@pokey pokey deleted the modifierTests branch August 4, 2021 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants