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

Add DecorationRangeBehavior.Word #51806

Open
mjbvz opened this issue Jun 13, 2018 · 0 comments
Open

Add DecorationRangeBehavior.Word #51806

mjbvz opened this issue Jun 13, 2018 · 0 comments
Assignees
Labels
api editor-textbuffer Editor text buffer feature-request Request for new features or functionality
Milestone

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Jun 13, 2018

From #50779

Problem
Using decorators, a common pattern is that you want an decoration that applies to a given whole word. None of the current DecorationRangeBehavior values handle this well. Open will always expand the decorator even if you type non-word characters, while Close never expands the decorator

Proposal
Add a DecorationRangeBehavior.Word setting or similar that would expand the decoration if the edit extends the word at the edges of the decoration. Typing a word character would expand the decorator while typing space would not

@mjbvz mjbvz added the feature-request Request for new features or functionality label Jun 13, 2018
@mjbvz mjbvz added the api label Jun 13, 2018
@alexdima alexdima added this to the Backlog milestone Jun 14, 2018
@alexdima alexdima modified the milestones: Backlog, On Deck Jan 23, 2020
@alexdima alexdima added the editor-textbuffer Editor text buffer label Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api editor-textbuffer Editor text buffer feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

2 participants