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

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Lintalist 1.9 Searchable interactive lists to copy & paste text with plugins

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

Post by list » Yesterday, 06:32

v1.9.6 EditorHotkeySyntax and fixes for Calendar

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

Post by list » 15 Apr 2018, 05:38

v1.9.5 Read Only cmdline, fixes: set default bundle, new snippet

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

Post by list » 25 Feb 2018, 04:10

A user on Github suggested a read only mode so bundles/snippets couldn't be edited. Some discussion/ideas here https://github.com/lintalist/lintalist/issues/95
Let me know if there is interest in a simple or more elaborate "read only" mode.

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

Post by list » 21 Feb 2018, 15:56

Glad you like it.

You can try to put or

Code: [Select all]GeSHi © Codebox Plus

[[c=\s|2]]
at the end if your snippet.
(It does indeed "trim" the white space at the end of the snippet, perhaps I should change that but I'm used to it myself now.)

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

Post by Heezea » 21 Feb 2018, 15:31

This is an amazing script, thanks so much.

I'm having a problem adding a single space at the end of a snippet. I was hoping to use the abbreviation and then just keep on typing on completion of the phrase. Interestingly, if I put more than one space, everything works fine.

Edit: Seems to be in Microsoft Word only?

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

Post by list » 23 Jan 2018, 13:18

Glad to hear you managed to get it working :)
kunkel321 wrote:My Capslock got stuck in the on position ... check on startup and, if Capslock = on, then display a message ...
That is a nice idea, I've added it here https://github.com/lintalist/lintalist/issues/93 and will be part of the next update.
kunkel321 wrote:For fun, I took the core list of autocorrects ... make them into an LLbundle.
Also nice, although I don't specifically recommend it, but if it works for you, it works. I have other plans for an "AutoCorrect 2.0" (especially with AutoHotkey v.1.1.28 coming up) - discussion (and sneak preview, screenshots) here https://github.com/lintalist/lintalist/issues/32 (I'll start a new repo + discussion here on the forum in the next couple of weeks)

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

Post by kunkel321 » 22 Jan 2018, 16:44

For fun, I took the core list of autocorrects from my main script (which evolved from this awesome one https://www.autohotkey.com/download/AutoCorrect.ahk ) And converted them to a .csv, then used Lintalist to make them into an LLbundle. It is here: https://gist.github.com/anonymous/1f6e3 ... 26dc42d71b

Lintalist seems to handle it just fine. My main script is a tiny bit faster. Maybe because it is sending key presses directly rather than using the Window clipboard--IDK. LL is plenty fast enough for regular daily use though. There are 4,483 words. Only the first couple of dozen show up in the LL window, but they are all accessible via the find feature, or by simply typing a recognized misspelling. I've even been using it as I type this post 8-)

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

Post by kunkel321 » 22 Jan 2018, 14:53

My Capslock got stuck in the on position. It took a moment for me for figure out what was going on... *facepalm* You might want to do an ID10T check on startup and, if Capslock = on, then display a message such as "You are starting Lintalist with Caplocks activated. It will be stuck on. Do you want it turned off?"

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

Post by kunkel321 » 20 Jan 2018, 20:58

Thanks for the replies. I am able to run the test script without an error. (Though I do find that Google Drive occasionally locks files when it's syncing!) Running as administrator made no difference. I moved it to swkunkel/autohotkey just to be safe. Importantly: I noticed in the error message that it is looking in \lintalist\bundles\default.txt, but I checked the folder and default.txt was actually located in lintalist\example. The \bundles folder didn't exist, so I created it and copied default.txt in there. It seems to work now. fyi: The list of snippets had been blank this whole time. I didn't realize that it should have sample snippets until just now. :D Thanks again. I will read the documentation more thoroughly and experiment.

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

Post by list » 20 Jan 2018, 03:44

kunkel321 wrote:Hey does anyone know for sure if Lintalist works with Win 10?
If I make a new snippet, it doesn't get saved: ... Error

I can confirm it works on Windows 10. Every once in a blue moon I get that "Can't save" error too, I've tried to debug it but alas, I can not consistently replicate it, and I haven't solved it yet - it happens once and if I reload Lintalist the same snippet is added just fine.
In your case I see that you're saving it to "Google Drive"* - I'm not familiar with that but perhaps that folder has some settings that prevent Apps from writing to it directly? Running as Admin might indeed help. You can also try to move Lintalist to another folder where you know you have write access, that way you can see if it works. Just close Lintalist, copy the Lintalist folder to say your regular "My Documents" folder or perhaps a USB flash/thumb drive and start it again.
If you still can't add snippets & bundles I would be surprised.

* a small test script, just save it as test.ahk and start it (I assume you have AutoHotkey installed)

Code: [Select all]GeSHi © Codebox Plus

FileAppend, test`ntest,C:\Users\swkunkel\Google Drive\AHK 2018\testtestahk.txt
If ErrorLevel
MsgBox ERROR

It tries to create/append to a text file on your Google Drive folder, if it can't it will show you a Message, if that is the case the Folder can't be accessed directly. By default (from what I've just read) you can't search that folder in Windows either so I'm assuming there is something special to it.
See also https://support.google.com/a/answer/6105699?hl=en "Allow third-party apps for files in Drive: As an administrator, you control whether users can open Drive files with third-party apps ..."

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

Post by boiler » 19 Jan 2018, 20:37

I use it all the time on Win 10, although I don't add snippets to bundles. Perhaps it needs to be run as admin. Although I would think it wouldn't automatically do that if it is necessary, but it's worth a try.

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

Post by kunkel321 » 19 Jan 2018, 20:30

Hey does anyone know for sure if Lintalist works with Win 10?
If I make a new snippet, it doesn't get saved:
---------------------------
Error
---------------------------
ERROR: Could not append snippet to Bundle

C:\Users\swkunkel\Google Drive\AHK 2018\lintalist\bundles\default.txt

- LLPart1: This is my sample input.
LLPart2:
LLKey:
LLShorthand: samp
LLScript:
---------------------------
OK
---------------------------
Also, bundle editor doesn't seem to do anything. The GUI shows, but if I add a new bundle, then reopen the editor, the bundle has not been saved (doesn't show up in list).

Thoughts?

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

Post by list » 01 Jan 2018, 04:56

v1.9.4 functions, AHK variables, editor w. syntax highlighting
https://github.com/lintalist/lintalist/releases

  • New: Functions in Snippets are now also allowed: [[function()]] - both AHK built-in as user defined - #86 https://github.com/lintalist/lintalist/issues/86
  • New: support a subset of AutoHotkey built-in variables (A_MyDocuments etc)
  • New: Additional safety check when processing snippet by "removing" faulty plugins plus a simple error check when saving snippets.
  • New: Editor now has (optional) Syntax highlighting (plugins, html, scripts) by using the RichCode class by @G33kDude - #88 https://github.com/lintalist/lintalist/issues/88 (when using RichCode you can toggle word wrapping in the edit controls by pressing ctrl+w)
  • Fix: Editor - "Edit in Editor" routine improved, notepad.exe may not show ".txt" in Window title, and actually delete "__tmplintalistedit.txt" file in tmp folder (didn't do so correctly)
  • Change: User plugins (and now functions) can be added to MyPlugins/MyFunctions so future updates of Lintalist won't overwrite plugins/functions added by users each time. See NOTE below.
  • Fix: Closing Input and Choice plugins via close button (x) in Gui now properly cancels snippet
  • New: added icons to Tray menu and some Search menu entries.

NOTE

User plugins/functions must now be included in plugins\MyPlugins.ahk and plugins\MyFunctions.ahk and no longer in `plugins\plugins.ahk`. Future updated will not overwrite these two files. More information and samples in https://raw.githubusercontent.com/linta ... -howto.txt
This readme also includes the example provided by FG.

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

Post by list » 17 Nov 2017, 14:59

For the adventurous: here is a development branch https://github.com/lintalist/lintalist/ ... -functions

  • support for user/ahk functions in snippets: [[SubStr("AutoHotkey",5,3]] -> Hot
  • support for subset of AutoHotkey built-in variables: A_MyDocuments etc

See the documentation "Functions" for a rudimentary introduction (docs needs some work)

I've also added some error checking* when processing snippets (plugins/functions) - this will avoid Lintalist to crash - if it finds a plugin/function it can't process it will wrap the that section of the snippet in {{braces}} so if you made a typo [[inpt=Name?]] or call a non-existing function [[MyFunk()]] it will become {{inpt=Name?}} {{MyFunk()}} so you can see there is an error in the snippet.

Suggestions and bug reports welcome :-0

* I should probably add some more by preventing snippets calling Lintalist functions as that could really mess things up but I haven't done so yet.

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

Post by list » 16 Nov 2017, 12:29

hoppfrosch wrote:Here here here! I would probably use it! ... I'm looking for a template system (written in AHK) ...

It wouldn't be to hard to "extract" it from Lintalist but if you do so "as is" you'll have a quite few global variables which some wouldn't like, so transforming the labels to functions would be preferred to have a nice and clean solution. I'll put it on my list :shh:

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

Post by hoppfrosch » 16 Nov 2017, 05:21

Here here here! I would probably use it! ;)

I'm looking for a template system (written in AHK) to automate/simplify the generation of the awesome AHK-page on github. For sure this can easily be done in any other scripting language - but how awesome is AHK, if it's a major barrier to implement a templating system to generate the awesomeAHK-page? :lol:

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

Post by list-nli » 16 Nov 2017, 03:38

@hoppfrosch funny you should say that - I've always thought it might be "useful" to separate the snippet+plugins processing from Lintalist as a standalone function/library. That way you could use it in other scripts by simply #include snippets.ahk

Code: [Select all]GeSHi © Codebox Plus

::hotstring:: ; or hotkey
var:=snippet("Hello [[Input=Name]]")
return

#include snippets.ahk
Not sure if it is worth the effort to do so as I don't expect many people would use it. :think:

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

Post by hoppfrosch » 16 Nov 2017, 01:00

list wrote:I already got to the point so that you can simply call a function like [[function(parameters)]] it sees there is no = and then knows its a function.

Code: [Select all]GeSHi © Codebox Plus

This is a test with a user [[func1(1,2,3)]] function and AHK [[SubStr("AutoHotKey",5,3)]] function
the result is (func1 just adds the numbers as a test to pass on parameters)

"This is a test with a user 6 function and AHK Hot function"

Pretty nifty if I do say so myself :D


Pretty cool 8-). it's funny: I'm currently working on a template mechanism for AutoHotkey V2, having a similar functionality is definitly on my plan!

Will have a look at your code - if you don't mind, I might "borrow" some ideas ;)

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

Post by list » 15 Nov 2017, 14:37

I'll have look through the list of variables and see what could be useful. Little point in adding A_GuiEvent for example.

I already got to the point so that you can simply call a function like [[function(parameters)]] it sees there is no = and then knows its a function.

Code: [Select all]GeSHi © Codebox Plus

This is a test with a user [[func1(1,2,3)]] function and AHK [[SubStr("AutoHotKey",5,3)]] function
the result is (func1 just adds the numbers as a test to pass on parameters)

"This is a test with a user 6 function and AHK Hot function"

Pretty nifty if I do say so myself :D

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

Post by FanaticGuru » 15 Nov 2017, 14:23

list wrote:What if I added support for (some of) AutoHotkey's built-in variables, so you could just write A_MyDocuments anywhere in your snippet (or plugin) and it would be translated to the correct value.
The paths could be useful. Maybe the time ones although you already have the DateTime=.

If it is just the path ones if might be better to stay with your current scheme like you did for DateTime= and do a Path= and have things like [[Path=MyDocuments]] but allow all the A_ path variables.

A_MyDocuments is easy for me but Path= but might be more consistent for your non-AHK users.

For those comfortable with AHK, I would just add an ability for them to use AHK functions whether standard or custom.

Now that I think about it this could be something like [[AHK= ]] where anything after the = gets evaluated as an AHK expression so you could technically do something like [[AHK=Floor((A_DD+2)/2)]]. This alone would open up a ton of stuff for the power users including custom functions assuming you had a way to #include them like you do the plugins.

Now that I think about it, I could probably just do this under the current version just by writing a custom pluggin called "AHK".

Just thoughts off the top of my head.

FG

Top