Lintalist 1.9 Searchable interactive lists to copy & paste text with plugins

Post your working scripts, libraries and tools
list
Posts: 145
Joined: 26 Mar 2014, 14:03
Contact:

Re: Lintalist 1.9 Searchable interactive lists to copy & paste text with plugins

25 Jul 2019, 15:36

Might be a useful idea to allow string manipulations like that, I'll think about it (suggestions welcome)

You can solve your problem using Functions which are different compared to Plugins - http://lintalist.github.io/#Functions

1. User defined function(s)

In plugins\MyFunctions.ahk you can add your own functions - these won't be overwritten during updates.

So in MyFunctions.ahk add the following functions:

Code: Select all

StrUpper(in)
	{
	 StringUpper, in, in
	 return in
	}
Save the file. Restart Lintalist.

2. AHK Functions

In this case https://www.autohotkey.com/docs/commands/RegExReplace.htm

Just to note, if your input has certain characters it may fail e.g. {}[],&% etc so the StrUpper example above might be "best" - see edit

If you added StrUpper() to MyFunctions.ahk, the following test snippet

snippet test:

Code: Select all

text1 [[StrUpper([[Input=code1]])]]

text2 [[RegExReplace("[[Input=code2]]",".+","$U{0}")]]
should work and uppercase your input.

Edit: added "" around [[input=code2]]
shipaddicted
Posts: 27
Joined: 15 Jul 2016, 19:57

Re: Lintalist 1.9 Searchable interactive lists to copy & paste text with plugins

26 Jul 2019, 11:03

list wrote:
25 Jul 2019, 15:36
Might be a useful idea to allow string manipulations like that, I'll think about it (suggestions welcome)

You can solve your problem using Functions which are different compared to Plugins - http://lintalist.github.io/#Functions

1. User defined function(s)

In plugins\MyFunctions.ahk you can add your own functions - these won't be overwritten during updates.

So in MyFunctions.ahk add the following functions:

Code: Select all

StrUpper(in)
	{
	 StringUpper, in, in
	 return in
	}
Save the file. Restart Lintalist.
YES!!! Works beautifully!! You are SO incredibly awesome!

I hadn't gotten as far as trying to use functions yet ... I'm still in the Fundamental LintaList Learning Stage ... :D
shipaddicted
Posts: 27
Joined: 15 Jul 2016, 19:57

Re: Lintalist 1.9 Searchable interactive lists to copy & paste text with plugins

26 Jul 2019, 11:59

I did add one tiny little addition to the function --

Code: Select all

StrUpper(in)
	{
	 StringUpper, in, in
	 return Trim(in)
	}
So now I can be even lazier and not worry about leaving a space at the end of my Input. :D

Return to “Scripts and Functions”

Who is online

Users browsing this forum: teadrinker and 43 guests