Deprecated: Return type of I::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/public/kirby/toolkit/lib/i.php on line 62

Deprecated: Return type of I::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/public/kirby/toolkit/lib/i.php on line 91

Deprecated: Return type of I::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/public/kirby/toolkit/lib/i.php on line 71

Deprecated: Return type of I::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/public/kirby/toolkit/lib/i.php on line 101

Deprecated: Return type of I::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/public/kirby/toolkit/lib/i.php on line 53

Deprecated: Return type of Collection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/public/kirby/toolkit/lib/collection.php on line 80

Deprecated: parse_str(): Passing null to parameter #1 ($string) of type string is deprecated in /home/public/kirby/toolkit/lib/url.php on line 135
One Tap Less | PlainText adds x-callback-url support

PlainText adds x-callback-url support


Warning: Trying to access array offset on value of type null in /home/public/kirby/vendors/parsedownextra.php on line 241

Warning: Trying to access array offset on value of type null in /home/public/kirby/vendors/parsedownextra.php on line 241

Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home/public/kirby/vendors/parsedownextra.php on line 241

Many folks criticized the latest version of PlainText, a free and minimal text editor from the same creator behind WriteRoom and TaskPaper, because of the introduction of in-app purchases to unlock newer features. One thing off the bill is that PlainText 2 also included x-callback-url support.

You can find the whole documentation for PlainText on Help > Working with Apps > URL Scheme, notice that the scheme for PlainText 2 differs from the previous version. For the sake of keeping the library updated, I’ll publish the documentation as it states within the app:

PlainText's URL scheme makes it possible to send text to PlainText from other apps that also support URL schemes. URL schemes are useful if you need them, confusing if you dont. Skip the rest of this if you don't care about URL schemes.

Note PlainText 2 has a different URL scheme from PlainText 1. If you use URL schemes be sure to update them to the new ones! PlainText 2 also supports x-callback-url.

URL Scheme Actions

Launch PlainText:

iacplaintext://

Create a new file in PlainText:

iacplaintext://x-callback-url/new?location=icloud&text=Boo

Opens an existing file in PlainText:

iacplaintext://x-callback-url/open?location=icloud&name=test.txt

Append text to an existing file:

iacplaintext://x-callback-url/append?location=icloud&name=test.txt&text=Boo

Prepend text to an existing file:

iacplaintext://x-callback-url/prepend?location=icloud&name=test.txt&text=Boo

These are the paramaters accepted by the different actions:

  • location: icloud, dropbox or local. If not specified PlainText will use the current location.
  • path: The folder's path. If not specified PlainText will use the current folder.
  • name: The filename of the file to be opened. Unless otherwise specified new files will use the *.txt extension.
  • text: The text to insert into a new file or to append/prepend to an existing file.

This is the end of the documentation. To test the x-callback-url support, I created a simple Launch Center Pro action to append a line of text in a text file named Hey.txt and return to LCP:

iacplaintext://x-callback-url/append?name=Hey.txt&text=[prompt:Jot down a note]&x-success=launchpro://

You can download this action here.