A Sketch plugin to generate "lorem ipsum" text.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 2 commits ahead of richgong:master.
Latest commit 23dd208 Jul 9, 2018

README.md

Lorem Ipsum Generator for Sketch

A plugin for Sketch to insert Lorem Ipsum into any selected text fields. Originally by @richgong, I forked this to add more Lorem.

Currently features unique 10 paragraphs of Lorem Ipsum.

GIF of plugin being used in Sketch

Installation

  1. Download or clone this repository
  2. Double click the .sketchplugin file to open Sketch and install the plugin

How to use

  1. Select text fields
  2. Use the keyboard shortcut: Shift + Ctrl + L

You can also use the plugin from the menu (Plugins > Lorem Ipsum Generator > Fill out text fields)

Todo

  • Limit the amount of Lorem inserted by the text field size. Plugin currently shoves an entire paragraph into each text field, no matter the length, requiring users to manually delete text each time. Solution: Calculate length of text container + size of glyphs (see script from Sketch-Highlighter - search for textLayer.frame().size().width, and layoutManager.numberOfGlyphs();)
  • An actual Lipsum generator algorithm (without connecting to lipsum.com)