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

Automatic snippet generator #310

Merged
merged 13 commits into from Jul 4, 2022
Merged

Automatic snippet generator #310

merged 13 commits into from Jul 4, 2022

Conversation

pokey
Copy link
Member

@pokey pokey commented Nov 4, 2021

Allows user to automatically create a snippet by first selecting the desired snippet holes, then saying "snip make <target>". The <target> will be transformed to a snippet, with a hole created at each cursor location.

  • Handle zero-length selections as holes

generateSnippet

@pokey pokey force-pushed the insert-snippet branch 5 times, most recently from 14c1768 to 7d65961 Compare December 17, 2021 15:02
@pokey pokey force-pushed the insert-snippet branch 2 times, most recently from 37489d0 to dedd131 Compare January 5, 2022 18:51
@pokey pokey added this to In progress in New modes of interaction via automation Jan 12, 2022
@pokey pokey added this to the 0.26.0 milestone Jan 15, 2022
@pokey pokey self-assigned this Jan 18, 2022
@pokey pokey force-pushed the generate-snippet branch 3 times, most recently from 5028753 to 68cd980 Compare April 25, 2022 16:32
@pokey pokey modified the milestones: 0.26.0, 0.27.0 Jun 8, 2022
@pokey pokey force-pushed the insert-snippet branch 2 times, most recently from 4197265 to dbf460b Compare June 24, 2022 10:17
@pokey pokey force-pushed the generate-snippet branch 3 times, most recently from b2d40e7 to 5830f4c Compare June 25, 2022 10:49
Base automatically changed from insert-snippet to main June 30, 2022 13:40
pokey and others added 4 commits July 3, 2022 14:28
subrepo:
  subdir:   "cursorless-talon"
  merged:   "59c9118b"
upstream:
  origin:   "file:///Users/pokey/src/cursorless-talon-development"
  branch:   "generate-snippet"
  commit:   "59c9118b"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

Old generate snippets

Fixes
@pokey pokey marked this pull request as ready for review July 3, 2022 15:18
@AndreasArvidsson AndreasArvidsson merged commit 57ace86 into main Jul 4, 2022
New modes of interaction automation moved this from In progress to Done Jul 4, 2022
@AndreasArvidsson AndreasArvidsson deleted the generate-snippet branch July 4, 2022 00:44
cursorless-bot pushed a commit that referenced this pull request Jul 4, 2022
* Generate snippets

subrepo:
  subdir:   "cursorless-talon"
  merged:   "59c9118b"
upstream:
  origin:   "file:///Users/pokey/src/cursorless-talon-development"
  branch:   "generate-snippet"
  commit:   "59c9118b"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

Old generate snippets

Fixes

* Some cleanup

* Some cleanup

* Stop modifying document

* Fixed tests

* Update doc

* More cleanup

* docs

* More cleanup

* Docs

* Cleanup

* Remove executable bet on actions

Co-authored-by: Andreas Arvidsson <andreas.arvidsson87@gmail.com>
thetomcraig-aya pushed a commit to thetomcraig/cursorless that referenced this pull request Mar 27, 2024
* Generate snippets

subrepo:
  subdir:   "cursorless-talon"
  merged:   "59c9118b"
upstream:
  origin:   "file:///Users/pokey/src/cursorless-talon-development"
  branch:   "generate-snippet"
  commit:   "59c9118b"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

Old generate snippets

Fixes

* Some cleanup

* Some cleanup

* Stop modifying document

* Fixed tests

* Update doc

* More cleanup

* docs

* More cleanup

* Docs

* Cleanup

* Remove executable bet on actions

Co-authored-by: Andreas Arvidsson <andreas.arvidsson87@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants