Skip to content

Combine snippets with bookmarks #446

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

Open
3 tasks
pokey opened this issue Jan 11, 2022 · 0 comments
Open
3 tasks

Combine snippets with bookmarks #446

pokey opened this issue Jan 11, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@pokey
Copy link
Member

pokey commented Jan 11, 2022

A bookmark should be able to indicate how new elements should be appended to it, kind of like an extreme version of #443. We could combine several of these into a bigger bookmark, so that for example in one place you transform inputs into a list, in another they become a dictionary with a specific form, etc, recreating some of the functionality of https://github.com/plopjs/plop.

A good example of the type of operation we'd like to support is adding a new color to cursorless. It requires boilerplate in many places, and non-boilerplate in a couple. We'd like the user to be able to establish a smart cross-file bookmark / snippet that can generate all the boilerplate needed, and guide the user to the places where there is non-boilerplate to be filled out (eg the actual color hex)

See also:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant