Jump to content

Lorem Ipsum Workflow v3.1.0 (2021-11-05)


Recommended Posts

Screenshot

 

An Alfred 4 workflow for generating lorem ipsum dummy text using joshtronic/php-loremipsum.

Installation

Alfred Powerpack is required to use workflows.

 

PHP is no longer supported out of the box since MacOS Monterey. Therefore you need to install PHP 7 or above, for example via [Homebrew](https://brew.sh/).

 

  1. Download the workflow
  2. Double click the .alfredworkflow file to install

Usage

  1. Use the keyword lip to trigger the workflow.
  2. Select format you want to generate (characters, words, sentences, or paragraphs).
  3. (Optional) Add options to the format you would like to generate.
  4. Press enter to copy to clipboard and paste into the forefront application.

Options

There are multiple options to enhance the output.

Option Usage Description
length lip 5 Default: 1
Generates 5 instances of the format you have chosen
tags lip 5 p Default: no tags
Generates 5 instances of the format you have chosen and wraps each instance in a

<p> tag. You can wrap an instance in multiple tags by comma separating the tags like lip 5 div,p.

array lip 5 p true Default: false
Generates 5 instances of the format you have chosen, wraps each instance in a

<p> tag and outputs it as a PHP array with a value for each instance. You can set the tags to false or 0 if you do not want to wrap the output into tags.

Credits

Thanks to joshtronic/php-loremipsum

Forked from alexchantastic/alfred-lipsum-workflow

Source: https://github.com/MGHollander/alfred-lipsum-workflow

Edited by MGHollander
New version
Link to comment
  • 5 months later...
4 hours ago, nemrod said:

Hello MGHollander
It doesn't work in Monterey (like all other lipsum workflow)
but with yours I don't get the usr/bin/php error… I get nothing… no feedback
so for me, it's encouraging!

https://loom.com/share/3a517bd7e3fa4005ae0372dea6a73461

Can you do something? please :)

 

Alex Chan's workflow, which this one was forked from, was just updated to use Python instead of PHP, and it works with Monterey now

Link to comment
3 minutes ago, MGHollander said:

I'm not familiar with Python, so I don't know if that will be a short term option for my version of the workflow. 


Python's in much the same place as PHP on macOS right now. You either need Apple's developer tools or Homebrew to install Python 3.

 

AFAIK, Ruby's still installed by default, but I wouldn't count on that lasting long, either.

Link to comment
  • MGHollander changed the title to Lorem Ipsum Workflow v3.1.0 (2021-11-05)
  • 1 year later...

Get these above the copied text:

 

Deprecated: Implicit conversion from float 26.293248036859712 to int loses precision in /Users/sridharkatakam/Library/Mobile Documents/com~apple~CloudDocs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C6A59FFF-2BC0-4534-AE04-9524798EA5E8/lib/LoremIpsum.php on line 138

Deprecated: Implicit conversion from float 27.211744218534562 to int loses precision in /Users/sridharkatakam/Library/Mobile Documents/com~apple~CloudDocs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C6A59FFF-2BC0-4534-AE04-9524798EA5E8/lib/LoremIpsum.php on line 138

Deprecated: Implicit conversion from float 29.565581188953264 to int loses precision in /Users/sridharkatakam/Library/Mobile Documents/com~apple~CloudDocs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C6A59FFF-2BC0-4534-AE04-9524798EA5E8/lib/LoremIpsum.php on line 138

Deprecated: Implicit conversion from float 26.374212109504338 to int loses precision in /Users/sridharkatakam/Library/Mobile Documents/com~apple~CloudDocs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C6A59FFF-2BC0-4534-AE04-9524798EA5E8/lib/LoremIpsum.php on line 138

Deprecated: Implicit conversion from float 27.043958976941635 to int loses precision in /Users/sridharkatakam/Library/Mobile Documents/com~apple~CloudDocs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C6A59FFF-2BC0-4534-AE04-9524798EA5E8/lib/LoremIpsum.php on line 138

Deprecated: Implicit conversion from float 24.748645167314802 to int loses precision in /Users/sridharkatakam/Library/Mobile Documents/com~apple~CloudDocs/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C6A59FFF-2BC0-4534-AE04-9524798EA5E8/lib/LoremIpsum.php on line 138

 

Link to comment
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...