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

Provide commands to expand selection up to semantic block #68992

Closed
octref opened this issue Feb 19, 2019 · 3 comments
Closed

Provide commands to expand selection up to semantic block #68992

octref opened this issue Feb 19, 2019 · 3 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) smart-select

Comments

@octref
Copy link
Contributor

octref commented Feb 19, 2019

The selectionRange API allows kind on the ranges returned.

export class SelectionRange {
	kind: SelectionRangeKind;
	range: Range;
	constructor(range: Range, kind: SelectionRangeKind);
}

Can we offer commands for "selecting up to the next ${SelectionRange.kind}"?

For example, in Vim I have vi(, vi[, vi{ for selecting up to the next syntactical enclosing (), [], or {} blocks. I would like to have commands for selecting up to the next semantical blocks.

@dbaeumer fyi, would like to know what you think too

@dbaeumer
Copy link
Member

If I remember correctly being able to support something like this was the idea of having a kind.

@jrieken
Copy link
Member

jrieken commented Feb 25, 2019

/duplicate of #65308

@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label Feb 25, 2019
@vscodebot
Copy link

vscodebot bot commented Feb 25, 2019

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Feb 25, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Apr 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) smart-select
Projects
None yet
Development

No branches or pull requests

3 participants