Comments (6)
Hi @inlinecoder - I just pushed version 0.2.1 which includes a new plugin menu.
We now have:
- The Data Menu (as before)
- The Plugin Menu (new)
In the Plugin Menu (i.e. the menu called "Plugins" in Sketch), I've put an entry in there for Sketch Data Faker that shows all available data sources. Hope this helps.
Additionally, If you click on one of those data sources (while a layer is (or layers are) selected), it will replace the layer name(s) for you, so you don't have to. This should reduce typos and having to go lookup the data in the table so often.
Due to a limitation in the Sketch API (issue here: sketch-hq/SketchAPI#296), I can't take the extra step of also hooking up the "Data Feed" on that layer to be "Automatic (Layer Name)" which would start inserting the data right away. So once you use this plugin menu item to help you set the layer name(s), you then have to go to the Data Menu and set the Data Source for that layer to "Automatic (Layer Name)" just like always.
As a tip, you can first set the layer name on all of your layers (even if they are different) and then just once, at the end, select all of those layers (again, even if they have different data feed requirements) and set the "Data Feed" to be "Automatic (Layer Name)". All of your layers will refresh and everything will be hooked up forever (even after further refreshes or inside symbols) and work as expected.
If the API adds the ability to do both steps in one I'll update the plugin to support that too.
Since I'm now listing all faker options as per this issue, I'm closing it. Please let me know what you think.
from sketch-data-faker.
Hey @inlinecoder - while I understand the sentiment, I don't think listing all in the Data Feeds menu would be viable. The menu would be 130+ items long! And I'm looking at adding even more APIs from other sources.
However, I have been considering different two ideas to solve this problem:
- Some sort of
autocomplete
that would allow you to insert a layer name from a popup accessible from the plugin menu (not the data feeds menu) - Including a Sketch library with basic texts and other layer patterns for common things like titles, products, blog posts, etc that you could hook up and insert into your Sketch document and it'd have the layers already named properly when you import them from the library
Not sure where I'll go with this just yet, but anyway thanks for the feedback, I'll keep it in mind for when I'm looking what to do next.
from sketch-data-faker.
@paintedbicycle , thanks for getting back to me.
By writing 'listing all options' I didn't mean like literally listing them all one by one, I meant to start a conversation towards finding a consensus. Nonetheless, having the nested drop-downs in Sketch would definitely simplify that.
+1 for Autocomplete β might be a good thing to use daily.
from sketch-data-faker.
@paintedbicycle thank you man for getting back to me and taking your time to do stuff and writing here again. Highly appreciated. π
Sorry for the late response tho.
from sketch-data-faker.
@paintedbicycle I personally like the new approach much more, as I don't have to memorize everything, but just select an option I want.
from sketch-data-faker.
@inlinecoder Glad to hear it.
It's too bad it has to be a 2-step process, but still, things are a lot easier for sure. Especially if I start adding new data sources.
Paul
from sketch-data-faker.
Related Issues (15)
- Auto feature (renaming layer) doesn't work with Symbols HOT 2
- Doesn't seem to work on Sketch 57.1 HOT 3
- Replace text using content instead of layer name HOT 3
- parameter option for count of words/sentences/paragraphs
- Customize manual options in the sketch data menu HOT 1
- Add image support HOT 1
- Concatenate Multiple Data HOT 3
- Where is the data coming from?
- Provide "Matching Data". i.e. add objects/grouped data
- Localization support HOT 4
- Add localised data formatting HOT 3
- Add support for default locale HOT 2
- Doesnβt work with library symbol overrides HOT 7
- Auto feature (renaming layer) doesn't work with Symbols HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sketch-data-faker.