bharadwaj-raju / TextSuggest

MOVED: https://gitlab.com/bharadwaj-raju/TextSuggest
https://gitlab.com/bharadwaj-raju/TextSuggest
GNU General Public License v3.0
241 stars 20 forks source link

Multiple lines or line breaks in the Custom_Words.txt file #48

Closed jjnilton closed 7 years ago

jjnilton commented 7 years ago

Is there a way to set line breaks in the Custom_Words.txt file?

Would be something like custom="first line\n second line" in Custom_Words.txt file.

Or like this:

custom="first line\n
second line\n
third line"
bharadwaj-raju commented 7 years ago

I believe custom="first\nsecond\nthird" should work, I remember using it myself.

Or should we switch to a JSON format (handles newlines, escapes, etc)...

jjnilton commented 7 years ago

Weird, it does not work for me.

peek 2017-03-11 17-50

I think that switch to JSON is a good idea. I see that in use in a text expander program, maybe it will be good in TextSuggest too.

Something like this:

{
  "!custom": "first line\nsecond line\nthird line\n\n\nfifth line",
  "d8": "it is %d(MMMM Do YYYY, h:mm:ss a) right now",
  "p@": "This is your final warning: %clip% "
}
bharadwaj-raju commented 7 years ago

JSON switch in progress.

bharadwaj-raju commented 7 years ago

JSON switch complete as of commit 5548e2870198.

Convert your custom_words.txt, please. Documentation updated too.