Gena01.com Forum

Software Development => Win32Pad => Topic started by: Gena01 on September 18, 2005, 10:04:41 pm



Title: Win32Pad 1.5.9.1
Post by: Gena01 on September 18, 2005, 10:04:41 pm
Please report feedback on Win32Pad 1.5.9.1 in this thread.

Things coming in later releases:
- Better printing support. (Stay tuned a rewrite is in progress)
- More fixes and improvements.
- Other exciting stuff.

Please please check for any regressions and report any problems/bugs you find.

Thank you.

Gena01






Title: Win32Pad 1.5.9.1
Post by: snakefoot on September 20, 2005, 01:30:57 pm
Not a regression with the new version, but there is a bug with the clipboard and Search & Replace and a limit of 80 characters.

1. Start WinPad32
2. Open a document that contains a line longer than 80 characters.
3. Select the line and press CTRL+C (Copy)
4. Press CTRL+F (Find) and press CTRL+V and then press Enter
5. Notice that it only selects the first 80 characters of the line.

This also happens when doing Replace, where it only replaces the first 80 characters.

If there is a need for a 80 characters limitation, then there should at least be a warning that operation will not be performed as intended. Have ended up with some funny documents after doing search and replace.


Title: Win32Pad 1.5.9.1
Post by: snakefoot on September 20, 2005, 01:52:20 pm
Not a regression with the new version, but there is a focus bug with Search and Replaced (Also mentioned in    Win32Pad 1.5.9)

1. Open a document
2. Press CTRL+H and perform a Replace All, now the Replace-dialog has lost focus.
3. When pressing Esc to close the Replace-dialog nothing happens. (Unless having activated "Exit on Esc" as it then it asks whether to save changes to the document, which isn't a good thing either)

I don't experience this behavior with the Find-dialog.


Title: Win32Pad 1.5.9.1
Post by: on September 21, 2005, 01:11:33 am
Hello there!

Was pretty much excited when I read today that you want to implement the feat to let win32pad remember the file type one last opened. I was even more excited when I found that a version has been released which should be capable of exactly this!

*download* *unzip* *runit* *openfile* *closewin32pad* *runit* *openfile* ...  ??? It hasn't remembered the file type...

Am I doing something wrong?


BiB


Title: Win32Pad 1.5.9.1
Post by: on September 21, 2005, 01:38:23 am
DOS encoding not supported. Bad.


Title: Win32Pad 1.5.9.1
Post by: Gena01 on September 21, 2005, 09:24:51 am
Quote (Guest @ Sep. 21 2005,02:11)
Hello there!

Was pretty much excited when I read today that you want to implement the feat to let win32pad remember the file type one last opened. I was even more excited when I found that a version has been released which should be capable of exactly this!

*download* *unzip* *runit* *openfile* *closewin32pad* *runit* *openfile* ...  ??? It hasn't remembered the file type...

Am I doing something wrong?


BiB

It currently remembers it while Win32Pad is open for that instance. I might add a more permanent feature in the next version. One reason of my concern is that some people might be against it. Still considering my options.

Gena01


Title: Win32Pad 1.5.9.1
Post by: BigBonsai on September 21, 2005, 04:23:38 pm
In this case - make it optional. ;)

And wasn't it already before the most current release that it remembered the file type? ;)

And who could possibly not want something like that? :cool:


BiB


Title: Win32Pad 1.5.9.1
Post by: on September 23, 2005, 12:15:07 am
I cannot copy & paste with a text that have 2bytes characters(ex. korean, japanese).

But, it works very well with a text that only 1byte characters.

It does not support 2bytes character?


Title: Win32Pad 1.5.9.1
Post by: guidorobben on September 26, 2005, 07:18:15 am
I have a text file that when I replace a ";" with ",", it takes ages to  
complete. A tried a different texteditor and it was finished in 3 minutes.

I can send you the file if you like.

Guido


Title: Win32Pad 1.5.9.1
Post by: Gena01 on September 26, 2005, 08:56:09 am
Quote (guidorobben @ Sep. 26 2005,08:18)
I have a text file that when I replace a ";" with ",", it takes ages to  
complete. A tried a different texteditor and it was finished in 3 minutes.

I can send you the file if you like.

Guido

Please send me the file, also provide your computer information like (CPU, RAM) and O/S.

Thank you,

Gena01


Title: Win32Pad 1.5.9.1
Post by: therube on September 26, 2005, 11:03:13 am
FWIW
Code Sample

File:  allfiles 3,986,619 bytes
System:  AMD Sempron 3000+, 448MB RAM, Windows XP

Programs:
win32pad v1.5.9.1
    subpad v1.0
gvim (aka vim aka vi) v6.3

at one point & had all three program running at once.

VMem sizes:
       gvim 18560KB
win32pad 14084KB
    subpad 50000KB & growing

replace all instances off 'e' with 'xx'
200,910 substitutions on 68,497 lines; 80,672 lines total in file

gvim finished - in an instant
(& that is with win32pad running & subpad [still] loading)


initially, only running win32pad, it was using 99% cpu
- causes a big drag on the system

then when I started subpad, cpu was split 50/50%

then when I started gvim, cpu was ?
- gvim finished too quickly for any difference to be noted

subpad got to 500KB VM & was still loading the file
- i killed it

win32pad FINALLY finished
- i didn't time it, but should have
- might have been upwards of 18 minutes or so


now, running subpad alone, cpu 99% VM 541KB

taking 4 minutes just to open the file
- & then I get an out of memory error from subpad
- it loaded 42,891 lines out of the 80,672 total, so only about 50%
-- search & replace is only using 30% cpu
-- much less of a drain on system
--- though it is also taking a long time
    (I had thought it used a Boyer-Moore - yep it says it does)

finally finish (on the truncated file) in about 6 minutes,
but also recevied an "Assertion failure"

In my mind, it's more about using the right tool for the job.
And for doing what I did, gvim was the right tool.


Title: Win32Pad 1.5.9.1
Post by: Gena01 on September 26, 2005, 11:16:32 am
Can you send me that file you used for testing? I will take a look and see if I can do anything about it.

I am also working on a bunch of other great stuff. My current problem is so much to do so little time.

Gena01


Title: Win32Pad 1.5.9.1
Post by: Lotesdelere on September 26, 2005, 02:02:38 pm
Quote (Guest @ Sep. 23 2005,07:15)
I cannot copy & paste with a text that have 2bytes characters(ex. korean, japanese).

But, it works very well with a text that only 1byte characters.

It does not support 2bytes character?

I think Win32pad just doesn't handle unicode for now but ANSI only.

Be patient, some day, maybe... :)


Title: Win32Pad 1.5.9.1
Post by: therube on September 29, 2005, 10:51:23 am
Again FWIW.
Code Sample

metapad v1.35

VMem sizes:
metapad 15944KB

using 99% CPU, though it is [i]not[/i] putting a drag on the system

Took 18 min 20 sec to perform the same s&r


Title: Win32Pad 1.5.9.1
Post by: on September 30, 2005, 01:31:49 am
I have a feature request, involving the line numbers.

I would like it, when wordwrap is on, to only display line numbers after every carriage return instead of every line. Can you make a new toggle for me in General Options, or in the View menu?

Just an idea, and it would ease my mind a bit when I have to switch between views in some of my html documents.


Title: Win32Pad 1.5.9.1
Post by: Jerry on October 10, 2005, 11:51:49 pm
I just upgraded all my Win32Pad 1.5.0 installations to 1.5.9.1

On one machine (out of three) I have no COPY/PASTE function.  Specifically, the COPY function is not getting to the clipboard.  (I'm watching the clipboard with "Clipboard Viewer.")  The CUT function puts the copy on the clipboard fine.  I'm running Win95-B on two identical machines (except that the one that WON'T copy has only 32MB of RAM, whereas the Win95 machine that works OK has 128MB).

Also, on the machine that WON'T copy, the COPY function works fine in NOTEPAD and BOXER/DOS and BOXER/WIN.

Not a big problem -- I still have 1.5.0 available which works fine on this machine.

Any ideas?

Jerry


Title: Win32Pad 1.5.9.1
Post by: therube on October 11, 2005, 10:02:06 am
If I had to guess, & I am, I'd try a newer version of riched20.dll.

Make a copy of your existing version first.

Later version is available here:

"RichEd20.Dll
* MS Richedit 3.0 Update"
http://www.gena01.com/win32pad/download.shtml


Title: Win32Pad 1.5.9.1
Post by: Jerry on October 12, 2005, 02:15:43 am
Quote

If I had to guess, & I am, I'd try a newer version of riched20.dll.

You hit the nail on the head.  That fixed the copy/paste problem completely.

Actually, the repair was "moot," since I'd switched all three computers back to v1.5.0 anyway -- that new "home-home" feature was driving me batty.

Thanks anyway.

Jerry


Title: Win32Pad 1.5.9.1
Post by: on October 16, 2005, 04:09:22 am
Hi, I'd like to thank you for developing Win32pad. One thing I'd really like to view in the next releses is the possibility to search/replace by regexp. It would be very useful for me (and others, I think).

A sidenote: I'vemade 2 batch files to replace and restore the system notepad. Here they are.

replacenotepad.bat:
Code Sample

copy .\win32pad.exe .\notepad.exe

move /y %windir%\System32\dllcache\notepad.exe %windir%\System32\dllcache\notepad.exe.off
move /y %windir%\ServicePackFiles\i386\notepad.exe %windir%\ServicePackFiles\i386\notepad.exe.off
move /y %windir%\System32\notepad.exe %windir%\System32\notepad.exe.off
move /y %windir%\notepad.exe %windir%\notepad.exe.off

copy /y .\notepad.exe %windir%\System32\dllcache
copy /y .\notepad.exe %windir%\ServicePackFiles\i386
copy /y .\notepad.exe %windir%\System32
copy /y .\notepad.exe %windir%

del /q .\notepad.exe


restorenotepad.bat
Code Sample

move /y %windir%\System32\dllcache\notepad.exe.off %windir%\System32\dllcache\notepad.exe
move /y %windir%\ServicePackFiles\i386\notepad.exe.off %windir%\ServicePackFiles\i386\notepad.exe
move /y %windir%\System32\notepad.exe.off %windir%\System32\notepad.exe
move /y %windir%\notepad.exe.off %windir%\notepad.exe


Tested on WinXP SP2.

Thanks and regards!


Title: Win32Pad 1.5.9.1
Post by: therube on October 19, 2005, 10:49:47 am
Not saying this is good, or bad, or whatnot, but here is a small editor with regex, syntax highlighting, & unicode.

If you'd want to take a look at it for informational purposes.

GreenPad - kMonos.NET
http://www.kmonos.net/lib/gp.en.html

IMO, as far as importance & based upon how I use win32pad, regex, perhaps, syntax highlighting, probably not. Unicode, probably more important on XP then on Win98.


Title: Win32Pad 1.5.9.1
Post by: on October 28, 2005, 09:48:35 am
What about a feature to minimize to tray? I keep Win32Pad open almost all day, but I hate that it uses up space. Also, what about a tabbed option instead of new instances like Firefox has? Those two features would be awesome.


Title: Win32Pad 1.5.9.1
Post by: Gena01 on October 28, 2005, 04:04:29 pm
Quote (Guest @ Oct. 28 2005,10:48)
What about a feature to minimize to tray? I keep Win32Pad open almost all day, but I hate that it uses up space. Also, what about a tabbed option instead of new instances like Firefox has? Those two features would be awesome.

Minimize to Tray is already there... Look under Tools menu. (it also has Ctrl+m shortcut)

Gena01


Title: Win32Pad 1.5.9.1
Post by: therube on November 01, 2005, 10:26:35 pm
Quote
I'd switched all three computers back to v1.5.0 anyway -- that new "home-home" feature was driving me batty.

I said, & thought the same thing many a time.  But ...

HA! It's there! It's been there  :)!

And I missed it!  Can't believe it.  I've been putting up with that "feature" for so long now.  And there has been a toggle since v1.5.5.  And I missed it!

Tools | Options | Editor | -> Smart Home


Title: Win32Pad 1.5.9.1
Post by: on November 09, 2005, 10:49:50 am
Great! I didn't realize that feature was there (to minimize). What about the tabbed browsing like Firefox has?
David.


Title: Win32Pad 1.5.9.1
Post by: on November 20, 2005, 01:46:48 am
Hi Gena01,

Great work with your software. Just a small suggestion. If you can use the MDI interface for Win32Pad, it could have multiple tabs. Really handy!!

Hasnain Saleem
http://www.hasnain.co.nr
http://hasnain.sourceforge.net/


Title: Win32Pad 1.5.9.1
Post by: on November 23, 2005, 11:58:28 pm
When selected texts,Ctrl+C & Ctrl+V cann't use!


Title: Win32Pad 1.5.9.1
Post by: on November 26, 2005, 12:21:37 pm
Delightful app...small footprint & fast...well thought out...utlizes existing OS resources...this is well executed planning & code - congrats!

Just adevelopments thought - As a developer, I would very much like to see a tabbed interface in order that I can work/edit between multiple open files simply by clicking a tab - rather than switching editing windows.  Given that one may have quite a few apps open on the desktop at any given time - remaining within one editing app/window is a valuable time & frustration saver!

Looking forward to your next build!!!


Title: Win32Pad 1.5.9.1
Post by: on December 01, 2005, 08:50:51 am
A question: Can win32pad restore cursor position when loading resently used file(s)?


Title: Win32Pad 1.5.9.1
Post by: therube on December 02, 2005, 02:43:50 pm
I had never realised it before, but you can drag & drop into a Win32pad window.

Like you can highlight text or links on a webpage & drag that into Win32pad - without needing to have copied it first.
Saves a step or two.

You can even highlight a selection in Win32pad, & drag it elsewhere in the file.

 :) .


Title: Win32Pad 1.5.9.1
Post by: on December 07, 2005, 07:53:05 pm
Hi, I'm a chinese localizer.I like win32pad.It's so mini and cool. But I find a  dangerous BUG for our chinese users. For example,if you copy our chinese text "欢迎并感谢您使用SDS星梦软件的汉化软件!",you can copy ,but you can't paste.I hope you fix it soon.Thank you very much.


Title: Win32Pad 1.5.9.1
Post by: guidorobben on December 09, 2005, 04:59:49 am
Just tried and copy your chinese text in win32pad and it worked like a charm.

Can you give some more info on your PC? Like OS, MEM, etc...


Title: Win32Pad 1.5.9.1
Post by: Metalbrain on December 10, 2005, 01:42:08 pm
I think I've found a bug.

I can't display character this character: ­ (code: 0xAD,ALT+0173). The character seems to be there but with a width of 0 pixels (because using the cursor keys, it notices there's something there).

This happened with version 1.5.7, and still happens with version 1.5.9.1 . Changing the font from Fixedsys to Times New Roman didn't help.

PD: Previewing the post it seems the forum can't display it either...


Title: Win32Pad 1.5.9.1
Post by: on December 10, 2005, 02:35:57 pm
Quote (guidorobben @ Dec. 09 2005,04:59)
Just tried and copy your chinese text in win32pad and it worked like a charm.

Can you give some more info on your PC? Like OS, MEM, etc...

My OS is windows XP sp1,which language is chinese.
This BUG isn't  in  win32pad 1.5.0 .
But it is in win32pad 1.5.9.1 .


Title: Win32Pad 1.5.9.1
Post by: on December 12, 2005, 08:05:46 pm
I think i also found a bug. The win32pad.ini get's saved to Documents and Settings\Joe Smith\Application Data\Gena01\win32pad instead of the home directory where Win32Pad is installed. First i thought that's because i have the zip version, but then the same thing also happened with the setup exe version(v1.5.9.1).

And after the problem, a suggestion, or two.

A 'margin' where you can define it's size, now it's one 'space', i want more :)

...

A 'text' setting for 'line numbers' (font, color, background color, selected line color).

So i can match the document and the line numbers. Oh and that line between the two is also kind of funny, can you make it flat?


Title: Win32Pad 1.5.9.1
Post by: on December 12, 2005, 08:13:40 pm
Oh, and i agree with davidshq, tabs would be simply marvelous. Once you get hooked on them, like i did in Opera(the browser), you just can't live without.


Title: Win32Pad 1.5.9.1
Post by: therube on December 13, 2005, 07:01:40 pm
@Joe Smith, that is not a bug.
Quote

Version 1.5.8: [07/14/2005]
+ Added code to be Windows XP compliant. It will read/write to user's Application directory if win32pad.ini is not found in the same directory as win32pad.exe

So, manually copy win32pad.ini from Application Data... into the Win32pad.exe directory.


Title: Win32Pad 1.5.9.1
Post by: on December 14, 2005, 05:01:28 am
A feature, not a bug, oh what a twisted turn :)

May i ask where's the point in doing it this way? What's the advantage over saving the .ini to the home dir right away?


Title: Win32Pad 1.5.9.1
Post by: therube on December 14, 2005, 12:51:50 pm
IMO, there is no point.
But it does make it Windows XP compliant - which I could care less about.

Maybe WinXP should be made Win32pad compliant!  What a nice OS it would be then ':)'.


Title: Win32Pad 1.5.9.1
Post by: on December 14, 2005, 01:08:02 pm
Hey what about having a win64pad?

Sure would come in handy


Title: Win32Pad 1.5.9.1
Post by: Gena01 on December 15, 2005, 02:48:50 pm
Sorry. I know it's been rather quiet... or too quiet here lately... at least on my part. I've been busy. Lots of stuff going on. Among all the stuff that's happening I am putting together the next win32pad release.

Here is preliminary changelog:
======================
+ Added Unicode file support. (Experimental)
+ Changed Copy to Clipboard to copy Unicode text. (Experimental)
+ Added .text file extension to Open/Save filters.
x "Save As" wasn't asking permission to overwrite the file.
x Fixed focus transfer after Replace All.
x Increased the Search/Replace to 255 characters from 80.

Stay tuned,

Gena01


Title: Win32Pad 1.5.9.1
Post by: henrik on December 16, 2005, 04:36:44 pm
Asking for more all the time...
Would it be possible to add some sort of possibility to edit the file type filters?

E.g. because I'm not using PHP I would like to remove that type, but sometimes I want to open an ebs file (*.ebs, *.txt) and would like to add that.

Thanks for a great program!


Title: Win32Pad 1.5.9.1
Post by: therube on December 18, 2005, 10:52:32 am
Not that I've ever used File Types, but why not have them in the .ini file?  That way one could make changes at will.


Title: Win32Pad 1.5.9.1
Post by: on December 27, 2005, 11:27:49 am
why win32pad can't read Nlite ini files e.g. Last Session.ini
while when I open it via WordPad it works
I'll attatch the file for ya,


Title: Win32Pad 1.5.9.1
Post by: 00coday on December 29, 2005, 10:51:43 am
I believe that the below request was not posted in the correct place:
===============================================

I would like to see a way to comment/uncomment a selected section of a file.  By comment I mean prepend a character or characters to the front of a line in the file.  

I understand that this poses a problem with the different programming languages that are out there.  Along those lines I would suggest that the character to be prepended be a user setting.  Or better yet, allow the setting to change based on the extension of the open file.  Just a thought.


Title: Win32Pad 1.5.9.1
Post by: on January 06, 2006, 09:32:05 am
Quote (Gena01 @ Dec. 15 2005,14:48)
+ Added Unicode file support. (Experimental)


Oh, as a long time User of Win32Pad I was just about to ask for that. It would be fantastic having Unicode support. I'm looking forward this next release.

While I'm about to write, I've to annoyances that would be great to disappear.
1. If the document loaded is scrolled to somewhere and I drag another file over the applications window (to drop it elsewhere on the desktop or another app), the document jumps to the top when leaving the windows with the dragging mouse cursor.
2. Mousewheel scrolling is always a soft scrolling that will consume much time, is there any way to disable this and get a "hard" scroll like in any other app?

Thanks,
Jürgen


Title: Win32Pad 1.5.9.1
Post by: on January 08, 2006, 05:33:33 am
in silent installation, how to make the win32pad is the defualt TEXT viewer?


Title: Win32Pad 1.5.9.1
Post by: on January 30, 2006, 04:35:00 am
how about this?

* show whitespace, tabs and line endings
(like seen in scite, notepad2)

* an option to associate win32pad with the most common text formats, txt, ini, nfo...
(like seen in winrar, acdsee)

and please, re-enable this:

Win32Pad uses win32pad.ini file to store it's settings. (This file is now stored in the same directory where Win32Pad is installed)

always moving the ini from from Application Data... into the Win32pad dir is a pain
screw xp compliancy  :)


Title: Win32Pad 1.5.9.1
Post by: on February 04, 2006, 10:27:37 pm
In the box that opens when I click "save as..." the file type defaults to "html...".  Is there a way to have it default to "all files"?


Title: Win32Pad 1.5.9.1
Post by: on February 24, 2006, 08:10:19 pm
It would be great for Win32Pad to support multiple documents opened in a window.

Thanks a lot. :laugh:


Title: Win32Pad 1.5.9.1
Post by: milch-extra on March 02, 2006, 10:13:50 am
Ahoi,
the "Delete Line" function avalible from the "Edit" menu or by pressing "Ctrl-Y" doesn't only delete the line, it cut out the line.
What does that matter? Maybe you have this text:

1 bla
2 Gennady is a smart guy!
3 bla
4 Who is a smart guy?
5 President Bush is a smart guy!
6 bla

If you read it you like to paste "Gennady is a smart guy!" on the right line. So you copy (or cut) line 2. Before you insert it you delete the wrong statement in line 6 with the "Delete Line" function. Afterwards you like to insert the text you've copied before. But what happens?! The stupid guy is still the smart guy!

Oke, it's a daffy example but it should be easy to realize that it would be a real problem if you like to insert a copied phrase into a long programcode. By scrolling down you find a line that should be deleted and you do this.
Than this line would be in your clipboard but not the text you thought!

So I would classify this as a not wanted feature. Maybe it would be even more a bug? brrr :)

Can you confirm this issue?

Thank you for your great program and viel Freude

Bernhard


Title: Win32Pad 1.5.9.1
Post by: milch-extra on March 02, 2006, 10:36:04 am
Quote
* an option to associate win32pad with the most common text formats, txt, ini, nfo...

Yes please. Just a simple .reg would be enough for now.

Quote
Win32Pad uses win32pad.ini file to store it's settings. (This file is now stored in the same directory where Win32Pad is installed)


Oh yes, this would be a big ease for all the guys they are working on many PCs and/or with many accounts!
Maybe the method of the programmer of "Beyond Compare" is a solution you like:
If the "beyondcompare.exe" find a "beyondcompare.ini" in the same directory it will use this ini-file. Otherwise it use the registry. Or in case of Win32Pad the one in %APPDATA%.

Cheers, Bernhard
Update: Now I've seen that you did the ini-handling since V1.5.8 like I proposed it. Thank you for reading my mind! :D


Title: Win32Pad 1.5.9.1
Post by: on March 13, 2006, 06:57:19 pm
Hey there, I have a strange bug in the UNIX text format. Occasionally it will save a ^K randomly in the text file, which I'm not quite sure is all about. I'm not sure if it's a bug or not, but Firefox views that and turns it into a weird character. I just thought I'd report that incase it was a potential bug.


Title: Win32Pad 1.5.9.1
Post by: therube on March 14, 2006, 10:08:05 am
I don't typically use the File Format menu item - generally leave formats as they were initially, but if I force a ^K into a file (using VIM), then open that file using win32pad, I do not see any "physical" representation of the ^K "character", other then what appears to be a new line.

Further, the ^K seems to be wiped out - at some point, after alternating back & forth between editors & file format types.


Title: Win32Pad 1.5.9.1
Post by: on March 14, 2006, 06:11:11 pm
Ahh, sorry, I should clarify.

Sometimes when I save in unix format win32pad SAVES with the strange ^K. It doesn't show the "^K" in the win32pad, but it shows it in vi. Also, Mozilla Firefox sees it and puts out a strange character.