Text Expansion 2.0 is here

Share and discuss your flows and ideas with other users.

Moderator: Martin

vamzicool
Posts: 67
Joined: 29 Dec 2014 17:47

Text Expansion 2.0 is here

Post by vamzicool » 18 Nov 2017 07:05

Text Expansion 2.0 is here. Now simply type any text shorthand and get it expanded(for example type "gn" and click green widget to get "Good Night"). Some major changes has been introduced, so
please read through.
1) "@" symbol is no more needed. So kindly remove @ symbol from your
shorthands. So from now on text_expansion.txt in the download folder
should look similar to this :

gn,Good Night
gb,Godwin Burby
ph,+919895971484
em,godwinburby@gmail.com
usr,gburby

2) Since @ symbol is not used, automatic text replacement will not
happen. So a custom green rounded widget is displayed whenever a
shorthand is typed. Pressing this widget will replace the text. This
widget will automatically hide after 5 seconds if not pressed.

3) The third major change is that now the text replacement will happen
only for the last word of the text. Before, it would work even when
text modification happens inside the whole text. This has been changed
to avoid unnecessary replacements when more than one shorthand is
available inside the text.

As usual, first create text_expansion.txt with all the shorthands and
expansions inside the download folder. Then execute "Text Expansion
startup" flow. Now you are ready to go.

As a bonus, @ symbol predefined shorthands are now available which
if typed will automatically be replaced with some useful expansions.
They are :

@dt - gives current date
@tdt - gives current date and time
@tm - gives current time
@dy - gives current day
@mn - gives current month
@yr - gives current year

Additionally typing any text with a preceding @ symbol will show all shorthands and expansions matching that text in a list and selecting a shorthand from the list replaces the above filter with expanded text. For example, typing @gb will show "gb" as well as "usr" (as "gb" matches shorthand "gb" and expansion "gburby" of shorthand "usr"). Selecting gb will expand text to Godwin Burby. This helps to recall shorthands that you have forgotten.
Hope you find these improvements useful :-)

All the latest updated flows and widget is given below :
http://automagic4android.com/flow.php?i ... 2ee75a9337
Last edited by vamzicool on 19 Nov 2017 02:36, edited 4 times in total.

User avatar
yogi108
Posts: 100
Joined: 09 Nov 2016 08:00
Contact:

Re: Text Expansion 2.0 is here

Post by yogi108 » 18 Nov 2017 08:31

Be careful, you have ALL your flows uploaded....
"You cannot know the meaning of your life until you are connected to the power that created you.”
Shri Mataji Nirmala Devi, founder of Sahaja Yoga

vamzicool
Posts: 67
Joined: 29 Dec 2014 17:47

Re: Text Expansion 2.0 is here

Post by vamzicool » 18 Nov 2017 12:43

OMG Thank you yogi108. I should have been careful. I simply searched for all the flows with name text Expansion and clicked select all of the filtered list. Now I have manually selected each flow. Thank you

User avatar
yogi108
Posts: 100
Joined: 09 Nov 2016 08:00
Contact:

Re: Text Expansion 2.0 is here

Post by yogi108 » 18 Nov 2017 17:21

Welcome :-)
"You cannot know the meaning of your life until you are connected to the power that created you.”
Shri Mataji Nirmala Devi, founder of Sahaja Yoga

vamzicool
Posts: 67
Joined: 29 Dec 2014 17:47

Re: Text Expansion 2.0 is here

Post by vamzicool » 19 Nov 2017 13:10

A new change has been introduced. When a partial shorthand is typed, the widget is displayed with an orange color. Clicking on the widget will show all the shorthands matching the typed text and selecting one will replace the text.

So kindly import the updated flows and widget given below for this new feature(after deleting the old flows and widget) :
http://automagic4android.com/flow.php?i ... a0b641a54f
Attachments
talk to you later.png
talk to you later.png (83.14 KiB) Viewed 40115 times
shorthands.png
shorthands.png (102.12 KiB) Viewed 40115 times
you.png
you.png (81.17 KiB) Viewed 40115 times

vamzicool
Posts: 67
Joined: 29 Dec 2014 17:47

Re: Text Expansion 2.0 is here

Post by vamzicool » 03 Dec 2017 16:58

A few extra commands have been added in addition to @dt(date),@tdt(date and time),@tm(time),@dy(day),@mn(month) and @yr(year). Following are the predefined commands :

1. @add - prompts and adds a new shorthand.
2. @del/@delete - shows all shorthands and deletes the selected shorthand.
3. @edt/@edit - shows all shorthands and updates the selected shorthand.
4. @fnd/@find - prompts to search for an existing shorthand or expansion.

All the above commands updates the text_expansion.txt file inside download folder.

The default behavior of text expansion flow was to filter and show an orange widget for any shorthand or expansion matching the typed last word. But now it only filters from the available shorthands(not from their expansions) as @fnd can be used to filter shorthands either by shorthand or by expansion.

As always please delete all the old flows and widget and import the flows and widget given below (execute text expansion startup to setup the flows):
http://automagic4android.com/flow.php?i ... c29559e3a2

User avatar
TheBrain1984
Posts: 137
Joined: 07 Aug 2013 08:17
Location: Germany

Re: Text Expansion 2.0 is here

Post by TheBrain1984 » 05 Dec 2017 12:22

nice flows, thx.

vamzicool
Posts: 67
Joined: 29 Dec 2014 17:47

Re: Text Expansion 2.0 is here

Post by vamzicool » 05 Dec 2017 14:51

I'm glad you like it. :-)

User avatar
TheBrain1984
Posts: 137
Joined: 07 Aug 2013 08:17
Location: Germany

Re: Text Expansion 2.0 is here

Post by TheBrain1984 » 06 Dec 2017 22:32

I have a feature request for version 3.0 :D.
Would it be possible to make shorthands depending on which App is in the foreground? My usecase would be:I use a lot of variable names and stuff in automagic which I don't use any where else and so I don't want to see it any where else.
That would be great.
Thx.

vamzicool
Posts: 67
Joined: 29 Dec 2014 17:47

Re: Text Expansion 2.0 is here

Post by vamzicool » 07 Dec 2017 09:01

Thanks for the feature request for verion 3.0 :-)

Yes that can be done with some changes to the complete flow. As this change will need to add one more data to each record/row of the
existing "database"(text_expansion.txt) and with conditions checks. But before going ahead with it, i have to tell you that this flow replaces shorthand with expansion by copy pasting text onto the edit box. So if you are using a script editor and may need to copy and paste code, this flow may replace whatever text you have copied to clipboard when it is executed. If you are ok with this behavior we can go ahead with modifications. I'm using this logic
because currently automagic needs automagic input method to be active
to send text directly to edit textbox.

Post Reply