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

Post a reply


In an effort to prevent automatic submissions, we require that you type the text displayed into the field underneath.
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 » 14 Apr 2017, 03:53

The Rancid wrote:when I inadvertently switched from wide to narrow mode and then rebooted
Thanks for the report, very useful. Looks like I can replicate it and thus fix it, will be included in the next update.

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

Post by The Rancid » 13 Apr 2017, 03:46

Hi,
I experienced the same error message at line 284 when I inadvertantly switched from wide to narrow mode and then rebooted the PC.
I temporarily resolved putting the following just before line 284 in lintalist.ahk:

If (barx="")
barx:=0

I also found that it wasn't needed anymore if I switched back to wide mode.
I don't know if this may be the culprit, but I thought I could mention it.
Best regards

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

Post by list » 24 Mar 2017, 13:56

@comvox: Thanks for the additional info, I can't get it to run twice myself so I suspect it is a "rare" issue that won't happen very often. I suspect the "width" variable isn't saved properly when there are two copies of lintalist running so when it tries to read the value and then calculate the variable "barx" it can't do so and throws the error message.

Just so you know: lintalist.exe is a renamed autohotkey.exe (32bit unicode version) - so you could actually delete lintalist.exe. You're correct that by deleting settings.ini it will simply start with a new "fresh" set up.

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

Post by comvox » 22 Mar 2017, 22:13

Script: Thank you very much for the for the script! It can be run from within a Lintalist item, or outside Lintalist (so long as Lintalist is running). It is easily modified to do various things which I would like to do with a script, so it provides a lot of flexibility. For example, I can drop
#z::Menu, MyMenu, Show ; i.e. press the Win-Z hotkey to show the menu.
and simply put
Menu, MyMenu, Show
at the end of the auto-exec section, for using the script when it is attached to an item.

Error: Today I called up Lintalist and it worked. After running it awhile, I decided to see if I could reproduce the error, so I could report what caused it. I think that what might have happened originally is that, when I was checking Lintalist to make sure it hadn't been attacked by AVG, I accidentally called Lintalist while it was still running. (I have since ditched AVG.) So today, while Lintalist was still running, I called Lintalist.exe again (i.e. I don't mean calling up the search window via Capslock, but running Lintalist.exe again). Then I got the error. The bad option on line 284. It seems as if it tries to have two copies running simultaneously, and the error arises. And once the error arises, then even if I exit from Lintalist, and try to be completely exited, I get the error if I run Lintalist.exe. I can reboot Windows 7, and still, when I run Lintalist I get the error.

However, if I deleted settings.ini in the Lintalist folder, then I could call Lintalist, and it ran properly, and recreated settings.ini. So I thought maybe settings.ini had been corrupted. But when I tried to check that, I couldn't verify whether it had been or not. It seemed like, in my different error tests, the settings.ini file sometimes acted strangely, so I couldn't even verify what was in it, but at other times was normal, and unchanged.

To make things more mystifying, I decided to do a final check to make sure that my results were reproducible. But now if I run Lintalist while it is still running, everything is OK. There is no error. I don't get multiple icons for Lintalist. It doesn't try to run two copies. Instead it just works fine. As it should. So for now, I can't get the error no matter what I do. Of course, normally I don't want to get the error...and hope it never reappears. But somehow I feel confident with the idea that, if something should happen, probably all I have to do is delete settings.ini.

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

Post by list » 21 Mar 2017, 12:31

Error: The "x" error on line 284 indicates a variable is empty which shouldn't be empty. I have never experienced this myself so if you happen to notice it again and what it is you may have done just prior to it do let me know. I can easily add a check to ensure "barx" and "Yctrl" aren't empty - I'll make a note for the next update.

As a rule unpacking / updating lintalist shouldn't overwrite any existing bundles, not even the default.txt one as that is only created when it doesn't exist. Closing Lintalist and starting it again should "set" the "barx" variable automatically as it is calculated at start up.

As you indicated you can indeed easily create a script to bring up Lintalist and start a search, basic example using a menu:

Code: [Select all] [Expand]GeSHi © Codebox Plus



Edit: it would be possible to add something like OnMessage() - last example https://autohotkey.com/docs/commands/OnMessage.htm - to Lintalist so you could "control" Lintalist from another script, but as you can see from the example above it is relatively easy to do using a simple Send. There are also a few command line options which may be useful (settings, bundle, active) http://lintalist.github.io/#cmdline

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

Post by comvox » 21 Mar 2017, 10:54

Thank you for your detailed and useful reply!

Lock: Your explanation of "Lock" was helpful. It hadn't occurred to me that its purpose was it paralyzed context-sensitive changes of bundle as I wasn't using context-sensitive bundles. I had originally studied the help file to get an idea about what Lintalist would do. I had seen the references in help to Lock, but when I experimented Lock didn't seem to operate differently from simply selecting the bundle without Lock. But this was because I wasn't using context-sensitive bundles.

QuickSearchHotkey: That's quite useful. And I agree with you that a search history or even droplist of searches might not be worth it. They also wouldn't be flexible in the way I was thinking about, which requires that the script attached to an item be able to call a search. This would allow one to have menus of searches, while not affecting the GUI or bothering users who didn't want such a thing. However, it is not clear anyone else would be interested in what I was thinking about, and for myself, I can still put search words in an item, and just take a few more keystrokes to activate the search, instead of having an item activate search automatically. So it's not a big deal. But, I thought, no harm in asking, just in case a script really could directly call a search.

Searching a search: I didn't suggest this for speed. It would allow one to have fancy searches. For example, if Lintalist had this capability, one could do a regex search on the results of a regex search (while fuzzy search combines simple searches). However, there already is fuzzy search, which is powerful, so it's not clear how much anyone else would really use search on the results of a search. (I was very fond of an old Palm program called Memoleaf, and in part was trying to see whether one of the things that I could do in Lintalist was to work with stored notes in the same way that I had in Memoleaf.)

On a totally different issue. At one point I had the problem that, out of nowhere, Lintalist stopped working. When I called it, I would get an error message from AHK that said that the x option on line 284 was invalid. I panicked, as i wanted Lintalist back! Well, the error message wasn't of much use, and indeed it was rather odd, as the x isn't invalid. I thought maybe the problem was a result of some change I had made on my system. But nothing seemed to make a difference. I worried whether I (or AVG) had somehow corrupted the lintalist.exe or lintalist.ahk files, so I copied them over. That didn't work. I also tried reinstalling Lintalist, but without overwriting the bundles folder. That didn't work. Finally I just reinstalled Lintalist completely, so even the bundles folder was back to the original. Then Lintalist worked again, and it continued to work when I copied my bundles, which I had backed up, back to the bundles folder.

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

Post by list » 16 Mar 2017, 14:24

comvox wrote:Thank you so very much for posting it.
You're welcome, glad you find it useful :)

comvox wrote:* it would be useful if one could search on the list of entries which is the result of a previous search. At present, search always acts on all entries, not simply the ones being displayed.
Do you mean to speed up the results? So you have 25 results and type a new character/word it would search all entries again to filter the results, but instead you want it to just search the 25 results(1)? Or do you want to save the 25 results somehow and then be able to save those results and then be able to search those later?
(1) there is an issue here that Lintalist stops searching after a defined number of results, there is no point displaying 500 results from a bundle as the scrolling it to tedious so it just displays 30 (and when you continue typing it searches all entries again). So the "25" results may not be all available results from your search.

comvox wrote:* It would be nice if an item could call up a search (setting both the text of the query and the search mode). .... Having items that could call up searches would allow one to have a certain menu of searches, and it would do so without complicating how Lintalist works for anyone who doesn't care for this capability.
Well there is the QuickSearchHotkey "It will cut (ctrl-x) the word to the left, open Lintalist and starts a search." Default setup is winkey-z (#z) - it can't set the search mode, but once the search Gui is active you can use the shortcuts to switch search modes if required. Not sure how useful a "search history" or "save preferred search" would be, most likely the mouse and/or keyboard actions to call up a previous search would take as much time as simply start typing some keywords? But perhaps you have some practical examples in mind?

comvox wrote:* Maybe it's just me, but I had trouble understanding "Lock". Perhaps it could be explained in "help". Or maybe it's already there, and I missed it.
Its there :) Say you have 5 context sensitive bundles, and one bundle is only active in text editor, but you need those snippets in Excel for a few minutes.
You can do that by bringing up the search Gui, select the Bundle you need from the Bundle menu and you can now search that "text editor bundle" each time you bring up the Gui. It would be tedious to have to select the bundle manually each time, so when you select a bundle it LOCKS the bundle so it is always used. That way it saves you the trouble of selecting it manually each time. When you're done you can simply UNLOCK the bundle and it will work as before and next time you bring up the Search Gui the "text editor" bundle is no longer active in Excel. When you select "load all bundles" it is also locked, again for the same reason: to avoid having to select it manually each time. Hope that explains it. (Just try it and see what happens)

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

Post by comvox » 15 Mar 2017, 11:56

Wow! Lintalist is not just powerful, but there's a lot of attention to usability and it's beautiful as well. Thank you so very much for posting it.

Some suggestions for consideration:

* it would be useful if one could search on the list of entries which is the result of a previous search. At present, search always acts on all entries, not simply the ones being displayed.

* It would be nice if one could use an "AND" operator in a search. However, if one could search on the results of a search, one wouldn't need an AND operator. One could first search for items with one term, and then search the results for the second term. (With regular expressions, one can already search for items that have several terms in a definite order, but it's difficult to search for items that have several terms appearing in any order.) Added later: Oops. I see Lintalist already has this with Fuzzy Search! Excellent!


* It would be nice if an item could call up a search (setting both the text of the query and the search mode). Maybe this can be done with a proper script attached to an item, but I wasn't successful in figuring out the script. Having items that could call up searches would allow one to have a certain menu of searches, and it would do so without complicating how Lintalist works for anyone who doesn't care for this capability.

* Maybe it's just me, but I had trouble understanding "Lock". Perhaps it could be explained in "help". Or maybe it's already there, and I missed it.

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

Post by boiler » 28 Feb 2017, 13:42

I didn't think to check to see if it was a general AHK issue. Sorry to wrongly attribute it to your fine program. :)

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

Post by list » 28 Feb 2017, 12:08

Thank you boiler, I can confirm this and it is easy to replicate using two short test scripts, I've posted in Ask for Help to see what is going on
https://autohotkey.com/boards/viewtopic.php?f=5&t=28649

( perhaps I'm missing some extremely obvious in which case I will hang my head in shame :oops: )

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

Post by boiler » 28 Feb 2017, 00:10

Here's what I found after a lot of experimenting. In response to your questions:

1: I have not tried to use hotstrings from a different AHK script at the same time as Lintalist until just very recently (last few days).

2: I was using Insert as the search hotkey, but it exhibits the same behavior using CapsLock.

3: It seems to be indifferent to these settings.

4: It appears that it happens if the replacement text of the hotstring contains an extended/special character such as € or ä but only when it follows a capital letter (e.g., "Märt" causes the problem, but "märt" doesn't). Very strange. To be clear, these are hotstrings set by another script, not in Lintalist. When one of those hotstrings is activated, it knocks out the Lintalist search hotkey (CapsLock becomes normal CapsLock again).

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

Post by list » 27 Feb 2017, 12:24

Oh noes a bug - thank you for reporting it!

I don't experience this issue myself and have several scripts with various hotstrings/hotkeys running at the same time so I suspect there is some sort of exception.
(both 32 & 64 bit)

General info: If your "hotstrings" are plain and simple you can #include them in AutoHotkey as I'm doing, so all my typo corrections abuot -> about are included in a script autocorrect.ahk which resides in my Lintalist folder. This is described here as well https://github.com/lintalist/lintalist/ ... -263401545 (or look at the last line of your lintalist.ahk)

1: Has this always been the case or just recently?

2: Which hotkey have you setup to open the Lintalist search gui?

3: Does it happen when you disable shorthand and/or shorcuts in Lintalist - you can now click the buttons in the search gui :-)

4: Can you track it to a specific hotstring / bundle combination or does it always happen?

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

Post by boiler » 26 Feb 2017, 20:25

I've encountered an issue when trying to use Lintalist while also using another AHK script with hotstrings. Hotkeys don't cause any problems, but the first time I use a hotstring from my other script, then my Lintalist activation key doesn't work (my activation key is not related to my hotstring at all), and I can't open Lintalist from the tray icon either after that. I have to close Lintalist and run it again, but it's disabled again the next time I use a hotstring.

I know I can perform the equivalent of hotstrings using Lintalist, but it's not quite as responsive as a direct AHK hotstring, so I'd rather use that.

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

Post by list » 18 Feb 2017, 05:50

Lintalist v1.9.2 published https://github.com/lintalist/lintalist/releases/

Icons also visisible in the context menu and additional icons to indicate the scripts, shorthand, shortcut states in the button bar (a small prohibited circle is overlayed on the icon)

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

Post by boiler » 04 Feb 2017, 15:36

Nicely done. Thanks!

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

Post by list » 04 Feb 2017, 14:09

I've tried to find some suitable icons for the button bar and menu, I think they are OK. Move and Remove snippet buttons have not been included in the button bar as I don't think you need them that often and this button bar just fits within the narrow view mode.

Exit Lintalist if you have it running, Backup your current Lintalist folder just to be sure and unpack it in the same folder and start it again, or unpack this branch to a new folder.

If you want to try out the button bar and the right click context menu you can download the development branch on GH:

Branch: https://github.com/lintalist/lintalist/ ... -buttonbar
ZIP: https://github.com/lintalist/lintalist/ ... tonbar.zip

  • New: replaced check/radio boxes with button bar (using Class_Toolbar by pulover) and icons from the Fugue & Diagona Icon sets by Yusuke Kamiyamane. #51 https://github.com/lintalist/lintalist/issues/51
  • New: Right click context menu listview #70 https://github.com/lintalist/lintalist/issues/70
  • Fix: Refactored LoadAll and Selected Bundle code, should work better now (lintalist.ahk)
  • Fix: Refactored duplicate hotkey and shorthand detection code, should work better now (editor.ahk)

Feedback welcome here or on GH of course :)

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

Post by boiler » 30 Jan 2017, 17:22

:clap: I tried to find a donation link on your website, but didn't see one. I think you should add one.

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

Post by list » 30 Jan 2017, 15:01

Teaser: working button bar and listview right click context menu :)
(will probably post beta this weekend)

button-bar-context-menu.png
button-bar-context-menu.png (30.24 KiB) Viewed 1399 times

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

Post by list » 27 Jan 2017, 17:28

@boiler no problem, glad you find it useful and you're welcome.

Top