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 | Textwell — Actions with Javascript

Textwell — Actions with Javascript

Custom actions are definitely becoming a thing when it comes to brand-new text editors. At first, I was amazed by the possibilities offered by 1Writer, then others followed the trend, such as Write and even TaskAgent. Today I found out about Textwell, which brings new possibilities to the game applying javascript to actions.

Textwell’s built-in actions already caused a nice impression, such as allowing you to add your location to the text or grab a string and search on any engine. I call it string because it can be many things, from the whole document to the current line, selection or clipboard. Damn, it even allows you to specify a range of text based on characters or edit your draft with search and replace.

I didn't dig much into Textwell yet, we were introduced only one hour ago and it is already 3 AM down here, but here’s a little snippet I can leave with you:

Send Current Line to Due:

T( 'urlScheme', {
    url: 'due://x-callback-url/add?title=' + encodeURIComponent( T.current ),
    option: 'clearAll'
} );

As you can may see while you import the action, Textwell allows you to set a different icon or add a description directly from the action. This snippet shall illuminate you on the path to create your own url schemes. Don’t forget to read the docs to learn more about making actions and its url scheme.

We’ll be back soon, thirsty for more.