Giter VIP home page Giter VIP logo

Comments (6)

paintedbicycle avatar paintedbicycle commented on June 4, 2024 2

Hi @inlinecoder - I just pushed version 0.2.1 which includes a new plugin menu.

We now have:

  1. The Data Menu (as before)
  2. 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.

paintedbicycle avatar paintedbicycle commented on June 4, 2024

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:

  1. 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)
  2. 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.

inlinecoder avatar inlinecoder commented on June 4, 2024

@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.

inlinecoder avatar inlinecoder commented on June 4, 2024

@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.

inlinecoder avatar inlinecoder commented on June 4, 2024

@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.

paintedbicycle avatar paintedbicycle commented on June 4, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.