Add selectNextOccurrence command #1

Closed
Daninet wants to merge 1 commit from main into main
Daninet commented 2021-04-04 20:48:13 +02:00 (Migrated from github.com)

Hey there. First of all, congratulations for this awesome library. 👏😊

I was learning about the new version and I noticed that it doesn't have a selectNextOccurrence command, so I implemented it. It tries to mimic the Ctrl-D command from VS Code and Sublime.

This is my first contribution here. Any comments and suggestions will be appreciated :)

Hey there. First of all, congratulations for this awesome library. 👏😊 I was learning about the new version and I noticed that it doesn't have a `selectNextOccurrence` command, so I implemented it. It tries to mimic the Ctrl-D command from VS Code and Sublime. This is my first contribution here. Any comments and suggestions will be appreciated :)
marijnh commented 2021-04-06 11:50:54 +02:00 (Migrated from github.com)

Thanks for the contribution. I think this would fit better in the @codemirror/search package though—commands does not currently depend on search, and there it could reuse the wordAt helper in src/selection-match.ts to cut out some of the verbosity. Would you mind creating a PR against that repository instead?

Thanks for the contribution. I think this would fit better in the `@codemirror/search` package though—`commands` does not currently depend on `search`, and there it could reuse the `wordAt` helper in `src/selection-match.ts` to cut out some of the verbosity. Would you mind creating a PR against that repository instead?
Daninet commented 2021-04-06 20:02:27 +02:00 (Migrated from github.com)
Created new PR here: https://github.com/codemirror/search/pull/1

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/commands!1
No description provided.