Universal Viewer - Lister alternative

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

So...
Viewer remembers maximized position on exit
means what? Or maybe you meant fullscreen position.
TC for Linux please!
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2roentgen666
I mean:
when you exit Viewer:

- if it's not maximized nor full-screen, current window sizes and pos are saved.
- if it's maximized or f-s, Viewer saves sizes ~600x400 and position at the center of the screen, so later you can return from max mode to this default sizes.
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2byblo
Almost all implemented, See "Version without installer" in 1st post.

Edit

Why I don't want to save string for F3 command:
I'll need to save not only search string but also options: Whole words, Case sensitive, Hex etc. This will be not intuitive if I open another file (after 3-5 days) and see previous searh options. They should be applied only to previous file, not to any file...
User avatar
byblo
Senior Member
Senior Member
Posts: 270
Joined: 2005-02-20, 21:13 UTC
Contact:

Post by *byblo »

Simply great! These 3 options are wonderful :o



Just a little bug(?) report : When using the SearchNoErrorMessage=1 : In text mode only, if you search the very first word, it didn't scroll to the word position after a loop.

As instance, open the Readme.html from the Universal Viewer, view it in text mode, and search : html> (until loop). Its done correctly.

But now search : <html and you will notice that it didn't scroll to the first word.



Why I don't want to save string for F3 command:
I'll need to save not only search string but also options: Whole words, Case sensitive, Hex etc. This will be not intuitive if I open another file (after 3-5 days) and see previous search options. They should be applied only to previous file, not to any file...
My case is the opposite : Actually if I search a value, using some options like [search backward] and [case sensitive]. I have to re-select them each time that I open again the viewer for another file in another folder...
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2byblo
My case is the opposite : Actually if I search a value, using some options like [search backward] and [case sensitive]. I have to re-select them each time that I open again the viewer
OK: I may make this an option: SearchSaveOptions=1...
User avatar
byblo
Senior Member
Senior Member
Posts: 270
Joined: 2005-02-20, 21:13 UTC
Contact:

Post by *byblo »

Alextp wrote:2byblo
My case is the opposite : Actually if I search a value, using some options like [search backward] and [case sensitive]. I have to re-select them each time that I open again the viewer
OK: I may make this an option: SearchSaveOptions=1...
Thanks :)


Another problem found : Viewed file is locked by the program (against writing and deletion) when viewing it with modes 1,2,3,6
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2byblo
Yes, it's by design. :)
I close file only after closing Viewer or opening another file.

Edit
It locks file only against deletion, not against writing! You can write to file and see changes in real-time!- it's a feature.
User avatar
byblo
Senior Member
Senior Member
Posts: 270
Joined: 2005-02-20, 21:13 UTC
Contact:

Post by *byblo »

Alextp wrote:2byblo
Yes, it's by design. :)
I close file only after closing Viewer or opening another file.

Edit
It locks file only against deletion, not against writing! You can write to file and see changes in real-time!- it's a feature.
Yes indeed. But can't you remove it ? I've tried to save the text file using metapad and editpadlite without success. The only editor which allowed me to save in real-time was notepad...
I also tried to edit a bmp file with psp7, and also got error message when trying to save it :?
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2byblo
Yes indeed. But can't you remove it ? I've tried to save the text file using metapad and editpadlite without success.
I'll ask Ghisler how he doesn't lock file.. If it's easy thing, I'll add it, but if he is using MapViewOfFile API (instead of CreateFile/ReadFile) I'll not use it (sorry, it's a too big change).
I also tried to edit a bmp file with psp7, and also got error message when trying to save it
It's in text modes- if you open bmp in image mode it's ok...
Just a little bug(?) report : When using the SearchNoErrorMessage=1 : In text mode only, if you search the very first word, it didn't scroll to the word position after a loop.
Fixed now...
User avatar
byblo
Senior Member
Senior Member
Posts: 270
Joined: 2005-02-20, 21:13 UTC
Contact:

Post by *byblo »

Alextp wrote:2byblo
Yes indeed. But can't you remove it ? I've tried to save the text file using metapad and editpadlite without success.
I'll ask Ghisler how he doesn't lock file.. If it's easy thing, I'll add it, but if he is using MapViewOfFile API (instead of CreateFile/ReadFile) I'll not use it (sorry, it's a too big change).
Let's hope.
Alextp wrote:
I also tried to edit a bmp file with psp7, and also got error message when trying to save it
It's in text modes- if you open bmp in image mode it's ok...
Just a little bug(?) report : When using the SearchNoErrorMessage=1 : In text mode only, if you search the very first word, it didn't scroll to the word position after a loop.
Fixed now...
Thank you :)
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2byblo
OK, I understood. I forgot to enable share mode FILE_SHARE_DELETE on CreateFile API call. Fixed now.

If you delete file (and Auto-reload option is on), Viewer will beep and close it. Need to check this with metapad...
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2byblo
Problem with metapad and EditPad Lite exists. Even with new file_share_delete flag. Can you write to their authors, can they fix this?
User avatar
byblo
Senior Member
Senior Member
Posts: 270
Joined: 2005-02-20, 21:13 UTC
Contact:

Post by *byblo »

Alextp wrote:2byblo
Problem with metapad and EditPad Lite exists. Even with new file_share_delete flag. Can you write to their authors, can they fix this?
I don't think.
So, even disabling the TextAutoReload=0 it is not possible to save the file ?
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2byblo
I don't think.
OK, I'll write them.
So, even disabling the TextAutoReload=0 it is not possible to save the file ?
Yes
They don't use file_share_read mode, that's the problem.
User avatar
byblo
Senior Member
Senior Member
Posts: 270
Joined: 2005-02-20, 21:13 UTC
Contact:

Post by *byblo »

Alextp wrote:2byblo
I don't think.
OK, I'll write them.
I meant : editpad lite author didn't seem very much opened to new suggestions, only for bugs. And metapad saw its last version released in 2002, edit: 2005... Without taking in count Paint Shop Pro 7 and certainly others programs which will give the same problem with the viewer...
Alextp wrote:
So, even disabling the TextAutoReload=0 it is not possible to save the file ?
Yes
They don't use file_share_read mode, that's the problem.
Well, never mind. (I hope you'll find a trick someday, maybe asking it in some forums?)
Post Reply