Skip to content

Added tests for head, tail and line numbers#178

Merged
pokey merged 1 commit intomasterfrom
modifierTests
Aug 4, 2021
Merged

Added tests for head, tail and line numbers#178
pokey merged 1 commit intomasterfrom
modifierTests

Conversation

@AndreasArvidsson
Copy link
Copy Markdown
Member

No description provided.

@AndreasArvidsson AndreasArvidsson requested a review from pokey as a code owner August 4, 2021 15:36
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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