New FS-Plugin : Versions

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
fabiochelly
Power Member
Power Member
Posts: 603
Joined: 2003-02-05, 12:03 UTC
Location: Rambouillet, France

New FS-Plugin : Versions

Post by *fabiochelly »

Every day, I check on many different websites is a new version of my favorite programs is available to download. So I decided to create this plugin which regroups every searches in Total Commander.
This plugin is a File-System plugin which allows you to see the current version number of any program downloadable online.

This is the first release, it is free and Open sources.

Binaries: http://totalcommander.free.fr/fabio/versions.zip
Sources: http://totalcommander.free.fr/fabio/versions_sources.zip
Screenshot: http://totalcommander.free.fr/fabio/files/versions.png
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Re: New FS-Plugin : Versions

Post by *djk »

Well, how have you managed to get all the information together (in the name column). I get for example for WinRar:

"WinRAR(3" - in the first column (Name)
"20 beta 5)" - in the second column (Ext)

and the dot (".") between 3.20 disappears at all :-(
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
fabiochelly
Power Member
Power Member
Posts: 603
Joined: 2003-02-05, 12:03 UTC
Location: Rambouillet, France

Post by *fabiochelly »

In TC options, I have set the extension to be aligned after the name.

I will correct this for a next version.
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

fabiochelly wrote: I will correct this for a next version.
Thanks for the answer. I will be waiting for a new version ;-)
BTW: Would it be possible to have several list.ini files? Just to divide programs into groups and check them separately.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
JP
Senior Member
Senior Member
Posts: 273
Joined: 2003-02-13, 09:15 UTC

Post by *JP »

Some problems and questions:

1. I can't cancel the search during the process
2. I can't delete a search; I must edit the list.ini for that ( it would be more pratical to have an option "delete" like "add search")
3. I don't understand this questions: "search form this point", "after this string", and "before this string". What I'm supposed to answer here? I little readme would be useful.

Thanks.
User avatar
fabiochelly
Power Member
Power Member
Posts: 603
Joined: 2003-02-05, 12:03 UTC
Location: Rambouillet, France

Post by *fabiochelly »

1. Planned for next version
2. Is it very useful?
3. In "After" and "Before", you should enter the strings around the version number.
"search form this point" is here if the "after this string" occurs more than one time in the source.
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
JP
Senior Member
Senior Member
Posts: 273
Joined: 2003-02-13, 09:15 UTC

Post by *JP »

Hi Fabio,

Thanks for your answer.

Sorry, but I can't understand item n. 3. Please, give me an example.
User avatar
fabiochelly
Power Member
Power Member
Posts: 603
Joined: 2003-02-05, 12:03 UTC
Location: Rambouillet, France

Post by *fabiochelly »

Imagine a source like this:

Code: Select all

<br>
<b>program name</b>
<br>
Current version:
<br>
<b>1.03</b>
If I just specify "after" and "before" strings like this:
after text = "<b>"
before text = "</b>"

Tha parsing will be wrong because there are multiple occurences of '<b>' in the source.

In this case, the plugin will return "program name" instead of "1.03".

So, I added the request "from this point" to search the "after string" only after a specific start point.
In this case, you can choose "Current version" for start point.
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

Several next suggestions:

- It should ignore empty lines in .ini file.

- Look at this example:

Code: Select all

RAKS_ST|http://www.msm.com.pl/VERINFST.htm|Legenda|</FONT> (|) <BR>|29-04-2003
When I forgot to put space before <BR> - TC crashes :-(

- What do you think about ignoring html tags inside the place for version number. I mean some versions number can be formated, eg. main version in bold, minor without bold, like this: "Version 2.7.6.8"
The html code looks like this: "Version 2.7.</B>6.8 " - the "</B>" could be ignored.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
piranha
Junior Member
Junior Member
Posts: 70
Joined: 2003-02-07, 19:55 UTC
Location: Miami, Fl
Contact:

Post by *piranha »

Great plugin!
Has a lot of potential. I think groups will be a must.
Imagine:
Group Total Commander/ Total Commander 5.51
Subgroup TotalCommander Plugins/ here we go with a list of plugins.

In general you should use directory here, check all contents
and mark somehow in main directory and subdirectories (you can use column size) which groups have changed.

Also option "scan" should be separated from browsing.
If I have lots of software, I don't want it to be scanned everytime I enter the plugin.
After all, computers crash, people die, relationships fall apart. The best we can do is breath and reboot.
User avatar
pdavit
Power Member
Power Member
Posts: 1529
Joined: 2003-02-05, 21:41 UTC
Location: Kavala -> Greece -> Europe -> Earth -> Solar System -> Milky Way -> Space
Contact:

Re: New FS-Plugin : Versions

Post by *pdavit »

fabiochelly wrote:This plugin is a File-System plugin which allows you to see the current version number of any program downloadable online.
Nice one! Thanks and keep up the good work! :)
"My only reason for still using M$ Window$ as an OS is the existence of Total Commander!"
Christian Ghisler Rules!!!
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

Very nice! Thank you! Only one wish: Groupping. :)
User avatar
fabiochelly
Power Member
Power Member
Posts: 603
Joined: 2003-02-05, 12:03 UTC
Location: Rambouillet, France

Post by *fabiochelly »

New version: Versions 1.1
  • Groupping (in fact multiple '.list' files instead of one list.ini)
  • Ability to abort while searching
  • Some bugfixes
  • Fixed problem with extensions
Versions is free and Open sources.

Binaries: http://totalcommander.free.fr/fabio/versions.zip
Sources: http://totalcommander.free.fr/fabio/versions_sources.zip
Screenshot: http://totalcommander.free.fr/fabio/files/versions.png
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Verison 1.1 - bugs

Post by *djk »

fabiochelly wrote:New version: Versions 1.1
Thanks Fabio :-)
Thanks also for the readme, I hope it will help some people.

Unfortunately I've found still some bugs:
  • When you press Enter on the item with the name and version - you get: "Exception in fsplugin.FsExecuteFile!"
  • When you add search there could be not edit box (to type the name of the list) but combo box to type a new one or choose one of the existing lists (if you have several lists, its easy to make mistake typing).
  • It's a pity you can't edit the list after pressing F4, not only Alt_Enter
  • Now your plugin is case-sensitive for html tags. It makes some problems. When I view source of the site it depends of the browsershow they interpret tags - one shows them lowercase, anotherr uppercase. When I put wrong case of the tags to my list - TC doesn't crash, it just closes :-(
    There is an example here:

    Code: Select all

    RAKS|http://www.msm.com.pl/VERINFKP.htm|Legenda|<B>Wersja |</B>|2.30.
    If the closing </B> is uppercase - it's ok, if it's lowercase - TC closes :-(
  • Maybe you could add any interface to edit the items (F4 on the item)
  • Turn some keys off - F6, F8, DELETE - they just refresh the list now - F7 - it's useless here, DELETE - could just remove the item from the list.
Anyway: It's a good job, thanks once again ;-)
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
fabiochelly
Power Member
Power Member
Posts: 603
Joined: 2003-02-05, 12:03 UTC
Location: Rambouillet, France

Post by *fabiochelly »

When you press Enter on the item with the name and version - you get: "Exception in fsplugin.FsExecuteFile!"
Corrected in version 1.2
not edit box [...] but combo box
I'll have to use my own forms instead of the ones provided by TC: it will increase the size of the plugin by 200 kB only for a combobox. Do you think it worth it?
It's a pity you can't edit the list after pressing F4, not only Alt_Enter
You're right. I just didn't think about it. Planned for the next version.
Now your plugin is case-sensitive for html tags.
It always has. Now I changed it in version 1.2 to be Case insensitive.
When I put wrong case of the tags to my list - TC doesn't crash, it just closes
It was because the plugin found a </b> farther in the source. So it creates a version number with more than 500 characters! It's corrected in version 1.2 (I refuse version number longer than 30 chars, it should be enough I think)
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
Post Reply