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

Some new features .... #58

Open
PizzaMix opened this issue Jun 29, 2024 · 1 comment
Open

Some new features .... #58

PizzaMix opened this issue Jun 29, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@PizzaMix
Copy link

PizzaMix commented Jun 29, 2024

Hi Jake,

really like the idea of the code snippet editor, it is exactly what is needed
to fluidly enable co-working between ui/ux designer on one side and code
developer on another side.

The idea is great but it still needs few basic features to make it even better (for my case at least):

  • Will there be an option to show/generate the code for one single template in dev mode?
    While working on new snippets i do not want to see the code for all other snippets on that node.

  • Switch templates in children hierarchy (somehow)
    An option to enter template name when using {{figma.children}}.
    Sometimes it is needed to switch the template for the children nodes depending on some property(etc.)
    It would be great to have something like

// this is how it works now 
{{?property.whatever=2}}{{figma.children}}
// new feature: this one uses anotherTemplate for all children
{{?property.whatever=3}}{{figma.children#anotherTemplate}}  

 // new feature: this one uses anotherTemplate but only for direct children and 
 // then switches back automatically to the current template name
 {{?property.whatever=4}}{{figma.children#anotherTemplate#1}}

Are there some plans for further development of "Code Snippet Editor" ?
Which features are you planning to add ?

Br

@jake-figma jake-figma self-assigned this Jul 2, 2024
@jake-figma jake-figma added the enhancement New feature or request label Jul 2, 2024
@jake-figma
Copy link
Collaborator

Work on this project is slow coming due to capacity, however i think this could merge nicely with some of the thoughts i had for query interfaces for figma.children.

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

2 participants