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

Modifier that allows you to put cursor on column in every row between two targets #345

Closed
pokey opened this issue Nov 29, 2021 · 1 comment · Fixed by #351
Closed

Modifier that allows you to put cursor on column in every row between two targets #345

pokey opened this issue Nov 29, 2021 · 1 comment · Fixed by #351
Assignees
Labels
enhancement New feature or request

Comments

@pokey
Copy link
Member

pokey commented Nov 29, 2021

foo bar
baz bongo
hey world

could say "take column from bat to whale" to put cursors before each second word

@pokey pokey added the enhancement New feature or request label Nov 29, 2021
@AndreasArvidsson
Copy link
Member

AndreasArvidsson commented Dec 1, 2021

There is two (obvious) way to implement this as I see it

  1. Do what vscode does with its add cursor to above/below line and just use column/character index
  2. Leverage our tokenizer and count tokens from the left

How should we handle if the start and end tokens don't line up? eg from foo to world. The first target could determine column and start row and the end target only determines end row?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants