-
-
Notifications
You must be signed in to change notification settings - Fork 85
Community wrapper snippets #1998
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
Merged
Merged
Changes from 15 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
217b584
Add the Cursorless side of community wrapper snippets
AndreasArvidsson 0dc4382
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] 70cb29b
Added comment
AndreasArvidsson e016bf3
Merge branch 'community_wrapper_snippets' of github.com:cursorless-de…
AndreasArvidsson ebf98df
Update name
AndreasArvidsson d5a5561
Update action signature
AndreasArvidsson a8e6c73
Update
AndreasArvidsson d0e90c2
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] 0eecf7c
Update to new format
AndreasArvidsson 33fd601
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] 61826a3
cleanup
AndreasArvidsson d1a1595
Merge branch 'community_wrapper_snippets' of github.com:cursorless-de…
AndreasArvidsson f1bd67a
Merge branch 'main' into community_wrapper_snippets
AndreasArvidsson 8af103f
update
AndreasArvidsson 12f30e7
fix
pokey b8fe0d9
Snake case variable name
AndreasArvidsson 8cb5993
Merge branches 'community_wrapper_snippets' and 'community_wrapper_sn…
AndreasArvidsson ac0d196
Merge branch 'main' into community_wrapper_snippets
pokey b6ad426
Add tests
pokey c525d33
Merge branch 'main' into community_wrapper_snippets
pokey c507571
Improve docs
pokey 6067772
Merge branch 'main' into community_wrapper_snippets
pokey 77fe5f1
Merge branch 'main' into community_wrapper_snippets
pokey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
mode: command | ||
mode: user.cursorless_spoken_form_test | ||
tag: user.cursorless | ||
and not tag: user.cursorless_use_community_snippets | ||
- | ||
|
||
{user.cursorless_insert_snippet_action} <user.cursorless_insertion_snippet>: | ||
user.private_cursorless_insert_snippet(cursorless_insertion_snippet) | ||
|
||
{user.cursorless_insert_snippet_action} {user.cursorless_insertion_snippet_single_phrase} <user.text> [{user.cursorless_phrase_terminator}]: | ||
user.private_cursorless_insert_snippet_with_phrase(cursorless_insertion_snippet_single_phrase, text) | ||
|
||
{user.cursorless_wrapper_snippet} {user.cursorless_wrap_action} <user.cursorless_target>: | ||
user.private_cursorless_wrap_with_snippet(cursorless_wrap_action, cursorless_target, cursorless_wrapper_snippet) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
mode: command | ||
mode: user.cursorless_spoken_form_test | ||
tag: user.cursorless | ||
and tag: user.cursorless_use_community_snippets | ||
- | ||
|
||
# These snippets are defined in community | ||
|
||
{user.cursorless_insert_snippet_action} {user.snippet} <user.cursorless_destination>: | ||
user.private_cursorless_insert_community_snippet(snippet, cursorless_destination) | ||
|
||
{user.snippet_wrapper} {user.cursorless_wrap_action} <user.cursorless_target>: | ||
user.private_cursorless_wrap_with_community_snippet(snippet_wrapper, cursorless_target) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.