ann: hpg_0.5.13 - Programmer's viewer&editor

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

Moderators: Hacker, petermad, Stefan2, white

hpg
Junior Member
Junior Member
Posts: 79
Joined: 2003-03-16, 12:20 UTC

ann: hpg_0.5.13 - Programmer's viewer&editor

Post by *hpg »

Changelog:
V 0.5.13: (2003/08/15)
======================
FIX: (THIS TIME IT WORKS REALLY!) COMMENTS BUG IN C/C++ AND PASCAL/DELPHI
Comments were wring calculated. A line comment
like:

Code: Select all

//**********
void ...
were not correctly parsed. Instead also the next lines were treated as comment lines. The same in PASCAL with //(*.

ADDED JUMP TO LINE AS COMMAND
So you can setup a keyboard binding to that command. Per default no hotkey is assigned.

URL: http://liveordead.de/free/hpg_ed_0513.zip

V 0.5.12: (2003/08/13)
======================
FIX: COMMENTS BUG IN C/C++ AND PASCAL/DELPHI
Comments were wrong calculated. A line comment like:

Code: Select all

//**********
void ...
were not correctly parsed. Instead also the next lines were treated as comment lines. The same in PASCAL with //(*.

CHANGED CURSOR BEHAVIOR PREVWORD (Ctrl-Left)
Cursor just moved to previous word until column 0. If on clumn 0 Ctrl-Left
was ignored. Now the cursor moves to the last word of the previous row (if any).

NEW SAVE DIALOG
Added places bar to the save as dialog.

FIXED: NON ENGLISH SHORTCUT TEXTS
Under some strange circumstances the Shortcut texts for menus, toolbar
button hints etc. would be display in German. Now all captions are builded with a plain English version.

NEW SUPPORT FOR LONG LINES
Changed the maximum number of characters from 1024 to 4096. This slows down the editor a little bit, but a lot of files I'm using may contain more lines so I decided this by myself :-)
(In next versions the number of columns should be dynamically determined).

CHANGED CONFIG DIALOGS
Changed some config pages a little bit to make the dealing with settings a little bit easier. The "General Settings" and "Tab & Indetions" pages are changed to a treeview options dialog.

Have fun!
Last edited by hpg on 2003-08-15, 17:49 UTC, edited 2 times in total.
rolandd
Senior Member
Senior Member
Posts: 313
Joined: 2003-06-26, 09:02 UTC
Location: Indonesia
Contact:

Post by *rolandd »

Well, in an earlier post I mentioned the Alt+Eingabe, that has gone :D

Backspace is working ;)

All in all looks fine :)

Thnks for the update.

Botak
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

Hi hpg,

Thanks for a new version. I like your plugins very much.
But I stiil have got some notes:

- Add a keyboard shotcut to "jump to the line.." - I usually have a tooolbar off so... I can't see any possibility to use it.

- If I have the tooolbar on and click the button with the line numbers I always get:
"Enter the line to jump (1..-1):" (I have 24 lines)
Why? It always shows as the second number: the number of lines minus 25.
eg. When I have 55 lines - I get (1..30)

- In the above situation I get German info on the button:
"OK" and "Abbrechen" :-(
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
corny
Junior Member
Junior Member
Posts: 96
Joined: 2003-02-07, 10:06 UTC

Post by *corny »

Thanks for the new version.

I was very delighted to see your announcement that the strange comments like //*** are correctly parsed as comments now, but I'm afraid I must tell you it doesn't work as expected :(

I'm sure I'm using the latest version.

A little snippet from the code:


#include "ITC_Server\itc_main.h"
#include "ITC_Server\itc_dbase_maintenance.h"

//******************************************************************************
static int iTimerId = 0;
static bool bMinuteTimerRunning = false;
static VOID CALLBACK TimerProc (HWND hwnd, UINT message, UINT idEvent, DWORD dwTime);
//******************************************************************************
Regards,
Cornelis
hpg
Junior Member
Junior Member
Posts: 79
Joined: 2003-03-16, 12:20 UTC

Post by *hpg »

corny wrote:I was very delighted to see your announcement that the strange comments like //*** are correctly parsed as comments now, but I'm afraid I must tell you it doesn't work as expected :(
Ok I see it too! I don't know why, probably it's a compiler problem and the previous lib was linked to hpg_ed. I will fix this as soon as possible, and you can belive me, it already worked :-(
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

Two more things:
- Why closing with Alt+F4 doesn't work? (it's set in keyboard settings).
- After editing a file it asks me if i want to save the file, if I say YES it opens window "Save as.." and tells me that the fie exists and if I want to overwrite it. So after changing one letter in a file I have to answer several questions to save the changes. I would prefer it default save the file with the original name, not ask me for a new one. Of course it's possible if I press earlier Ctrl+S and then close the window but if I forget to do it.. :-(
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
Sam York
Junior Member
Junior Member
Posts: 61
Joined: 2003-08-14, 20:42 UTC

old bug

Post by *Sam York »

When you press page down or use mouse to scroll down AFTER the end of the file it works instead of scrolling down after the end of file should be impossible like it supposed to be. Because of this, unfortunately when you read a file you don't know for sure how much have of a procentage you have already read/will have to read.

Otherwise, great plug-in!
hpg
Junior Member
Junior Member
Posts: 79
Joined: 2003-03-16, 12:20 UTC

Re: old bug

Post by *hpg »

Sam York wrote:When you press page down or use mouse to scroll down AFTER the end of the file it works instead of scrolling down after the end of file should be impossible like it supposed to be. Because of this, unfortunately when you read a file you don't know for sure how much have of a procentage you have already read/will have to read.
Otherwise, great plug-in!
I'm not sure that I understand this problem. Did you (un-)set the "Cursor beyond EOF" option?
hpg
Junior Member
Junior Member
Posts: 79
Joined: 2003-03-16, 12:20 UTC

Post by *hpg »

corny wrote:I was very delighted to see your announcement that the strange comments like //*** are correctly parsed as comments now, but I'm afraid I must tell you it doesn't work as expected :(
Thanks for the fast reply. I fixed it. It was indead the prblem with 2 different libs in 2 different versions :-(

So I decided to make a new version, because the plugin is donwloaded and probably some sites may link to the 0.5.12 version. So the new version is available at:
http://www.liveordead.de/free/hpg_ed_0513.zip
Last edited by hpg on 2003-08-16, 10:48 UTC, edited 1 time in total.
hpg
Junior Member
Junior Member
Posts: 79
Joined: 2003-03-16, 12:20 UTC

Post by *hpg »

djk wrote:Hi hpg,
- Add a keyboard shotcut to "jump to the line.." - I usually have a tooolbar off so... I can't see any possibility to use it.

- In the above situation I get German info on the button:
"OK" and "Abbrechen" :-(
Ok both is fixed in version 12!
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

2hpg
Thanks for the changes. It works now ok :-)
I hope Alt+F4 will work soon, too ;-)
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
AlleyKat
Senior Member
Senior Member
Posts: 203
Joined: 2003-06-15, 10:51 UTC
Location: for personal info, see wiki
Contact:

Post by *AlleyKat »

Awww man this is nice! Thank you! Even opens those files it wouldn't open earlier (dunno why, but it couldn't handle the file name lang_main.php and several others). Wonderful. Wunderbar.
I'm none too sure about djk's thing with alt-f4? I just hit Escape. ;)
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

AlleyKat wrote:I'm none too sure about djk's thing with alt-f4? I just hit Escape. ;)
Viewing the file I also use Esc, but editing it I prefer Alt+F4 because Esc means for me: "cancel all the changes and close".
Moreover Alt+F4 is by default set in keyboard settings but... it doesn't work.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
Sam York
Junior Member
Junior Member
Posts: 61
Joined: 2003-08-14, 20:42 UTC

Re: old bug

Post by *Sam York »

hpg wrote:
Sam York wrote:When you press page down or use mouse to scroll down AFTER the end of the file it works instead of scrolling down after the end of file should be impossible like it supposed to be. Because of this, unfortunately when you read a file you don't know for sure how much have of a procentage you have already read/will have to read.
Otherwise, great plug-in!
I'm not sure that I understand this problem. Did you (un-)set the "Cursor beyond EOF" option?
There are still 2 problems even with "Cursor beyond EOF" option unchecked:

- you can still go on the same line(last one) beyond eof by simply selecting the area from the actual eof to some point ...

- you can even select the entire area after eof until the "screen page" will end

Useful feature "go to line" !

Is there possible to add a new one "search & replace" ??? It has been discussed quite a lot on the english forum ...
User avatar
AlleyKat
Senior Member
Senior Member
Posts: 203
Joined: 2003-06-15, 10:51 UTC
Location: for personal info, see wiki
Contact:

Post by *AlleyKat »

djk wrote:Viewing the file I also use Esc, but editing it I prefer Alt+F4 because Esc means for me: "cancel all the changes and close".
Moreover Alt+F4 is by default set in keyboard settings but... it doesn't work.
I know, I know. I read. :lol: I'm sure hpg will get around to it. You know the rule, "There's always 1 more bug". Rather it be that... *SSS*
Sam York wrote:(...) Is (it) possible to add a new one "search & replace" ???
What a splendid idea, I've missed it a few times too. And not to be pushy about it, but I also would really appreciate two small Search.. & Search more buttons. Then you're above and beyond Nicola's nPad, for sure. :D
Post Reply