Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 15 Dec 2018, 11:37
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Building a universal file viewer
Post new topic   Reply to topic View previous topic :: View next topic
Page 14 of 18 [256 Posts]   Goto page: Previous 1, 2, 3, ..., 12, 13, 14, 15, 16, 17, 18 Next
Author Message
perdido


Joined: 09 Dec 2013
Posts: 1064
Location: ¿Altair IV , Just north of Eeyore Junction.?

PostPosted: Mon 23 Apr 2018, 10:34    Post subject:  

MochiMoppel wrote:
Update 2018-04-19 (see also initial post)


Got most of them Smile
Missing 5-24-17 & 5-22-17

Thanks mochimoppel!


_________________
Giving with an expectation for return brings misery.
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1716
Location: Japan

PostPosted: Mon 23 Apr 2018, 10:54    Post subject:  

perdido wrote:
Got most of them Smile
Missing 5-24-17 & 5-22-17

Laughing
Try ebay
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1716
Location: Japan

PostPosted: Wed 25 Apr 2018, 22:35    Post subject:  

mfb wrote:
As shown in the image - I've clicked the icon immediately below "Help" , chosen the "root" directory, then typed a lower case "m" and the single file and the three unhidden directories which start with that character are listed.

My questions are - is the list for information only - or can I view any of the four items directly from the list and, if so, how?

You can view any of the listed items by pressing F5 (Refresh)
This location box (and the search box) are part of the chooser widget and make more sense when the chooser is used as originally intended - as a mere file picker, where the chooser would close after the user picked a filename and pressed an OK button.

Gtkdialog does not make these elements available for programming and I see little use for them in MMview. One thing you can do is to paste a file path into the location box and view the file immediately (after pressing F5). No need use the tree. The tree remains unchanged (see screenshot).

BTW: This widget is the basis for the File-Open dialogs in most GTK applications like Geany,Leafpad,Palemoon,Firefox etc. Unless you have selected Search or Recently Used, some built-in keyboard shortcuts can be used:
- Ctrl+L toggles the location box
- Typing '/' (forward slash) will open it too
- My favorite: Ctrl+V will open it and paste the content of the clipboard. (not supported in Geany)
All these tricks are supported in MMview.

IMO the search box works a bit better. It searches for files in your $HOME directory (usually /root), populates the tree with the results and keeps the entry even after closing the box, though apparently no keyboard shortcuts are available.
location_box.jpg
 Description   
 Filesize   55.6 KB
 Viewed   602 Time(s)

location_box.jpg

Back to top
View user's profile Send private message 
mfb

Joined: 22 Mar 2016
Posts: 60

PostPosted: Sat 28 Apr 2018, 03:36    Post subject:  

My thanks to MochiMoppel (the author of this "viewer") for his helpful answer in the post immediately above and also for this entire project.

Explorers will find 25 Main + 4 Built-in (well worth a read) features currently listed in the opening post at page 1 of this thread and, of course, the download should they wish to try them.
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1716
Location: Japan

PostPosted: Sat 19 May 2018, 01:40    Post subject:  

Update 2018-05-19 (see also initial post)

Rearranged and simplified "File" menu. Three new features added.

New (file or directory)
This combines the "New Blank file" and "New Directory" menu items of ROX-Filer into one menu item. Shortcut Ctrl+N is same as in ROX-Filer. To create a directory a trailing / (slash) has to be added to the new name.
Unfortunately gtkdialog is unable to reliably determine the currently displayed directory (if a selected or currently entered directory is empty). For this reason the full filepath is provided as default template.

Properties
Layout similar to the ROX-Filer dialog. Most of the values are the result of a single stat command. The "Used on disk" size information for files is not available in ROX-Filer and may be useful (and hopefully is correct Laughing )
Some other ROX specific items like "Run action" are (not yet) implemented.

MD5 checksum
Does what it says. The twist is that it records previously checked files and their checksum and thus makes it easy to find identical files or answer the nagging question "Are these 2 file identical?"

Have fun!
new_features_mm_view_20180519.jpg
 Description   
 Filesize   95.34 KB
 Viewed   374 Time(s)

new_features_mm_view_20180519.jpg

Back to top
View user's profile Send private message 
perdido


Joined: 09 Dec 2013
Posts: 1064
Location: ¿Altair IV , Just north of Eeyore Junction.?

PostPosted: Sat 19 May 2018, 19:46    Post subject:  

MochiMoppel wrote:
[size=16
MD5 checksum
Does what it says. The twist is that it records previously checked files and their checksum and thus makes it easy to find identical files or answer the nagging question "Are these 2 file identical?"

Have fun!


Hi MochiMoppel,

Will the recorded md5 checksum survive a reboot?

Thanks for the new version!

.

_________________
Giving with an expectation for return brings misery.
Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 1080
Location: Oslo, Norway

PostPosted: Sun 20 May 2018, 11:02    Post subject:  

Hello MochiMoppel.
Can you tell me if there is a way to make a better view of which column is active? Independent of which theme I use, the 'active' fields in the columns have the same colour, and only an almost invisible dotted line around the field indicate which on is the active one at the moment, so I navigate up and down the wrong column all the time. Is it possible to make a frame around the active field, or maybe the active column, in a different color? I use Lucid 5.2.8.7.
I would also appreciate a list of all key shortcuts that can be used, both those from mm-view and rox and possibly also from gtkdialog.
mm-view.png
 Description   
 Filesize   63.57 KB
 Viewed   289 Time(s)

mm-view.png


_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 5330
Location: Republic of Novo Zelande

PostPosted: Sun 20 May 2018, 14:32    Post subject:  

tallboy wrote:
Can you tell me if there is a way to make a better view of which column is active? Independent of which theme I use, the 'active' fields in the columns have the same colour, and only an almost invisible dotted line around the field indicate which on is the active one at the moment, so I navigate up and down the wrong column all the time..
I use the arrow (highlighted in green below) as an indicator of active column. Also shows the direction of sort (ascending or descending). Or did I misinterpret your question?
Active.jpg
 Description   
 Filesize   62.89 KB
 Viewed   252 Time(s)

Active.jpg

Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 1080
Location: Oslo, Norway

PostPosted: Sun 20 May 2018, 14:43    Post subject:  

I am afraid you did! Very Happy That arrow is still there if you navigate up and down in the leftmost Places column with Root/Desktop/Filesystem etc.
If you use the arrow keys to move focus between the two columns, there is no good indication of which colummn you visit right now, you cannot see which one is active in the picture.

_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1716
Location: Japan

PostPosted: Sun 20 May 2018, 21:24    Post subject:  

perdido wrote:
Will the recorded md5 checksum survive a reboot?
Well, I would be surprised if anything survives a reboot.
Currently the config directory is set as CNFGDIR=$HOME/tmp/mm_view/ which - at least in earlier Puppies - is a tmp directory not saved at shutdown. I explained earlier that I don't want to leave any traces of this beta script in the user's system. Many users might try it once and then want to forget about it. Maybe it's time that I change this setting to CNFGDIR=$HOME/.config/mm_view/. The frustrated early adopters are probably gone by now Laughing

As for the MD5 history: It's currently set (look at the beginning of the script) as MD5LIST=${TEMPDIR}md5list.tmp , so it won't even survive a MMview restart. If you change this to MD5LIST=${TEMPDIR}md5list.txt it will stay alive until you shut down Puppy. If you need the list even after a reboot I would be interested to know why. The setting for this would be MD5LIST=${CNFGDIR}md5list.txt.

@tallboy: You asked the same question 11 months ago. Did you read my response?
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 13168
Location: Gatineau (Qc), Canada

PostPosted: Sun 20 May 2018, 21:41    Post subject:  

/var/tmp lasts a little longer.
_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 1080
Location: Oslo, Norway

PostPosted: Sun 20 May 2018, 23:17    Post subject:  

Sorry MochiMoppel, my memory is clearly not what it was...
(I've forgotten the answer too, so I'll start digging.)

OK, found it!

_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1716
Location: Japan

PostPosted: Fri 25 May 2018, 22:53    Post subject:  

tallboy wrote:
OK, found it!

And? Did you fix the issue of your Stardust theme or find a better theme?

As many of the customized GTK themes Stardust fails to distinguish between "active" and "selected" status. It shouldn't as the difference is important, not just in MMview but also in ROX-Filer. Less important but still annoying to me the failure to distinguish between a "prelight" and "selected" button.
Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 1080
Location: Oslo, Norway

PostPosted: Mon 28 May 2018, 22:29    Post subject:  

MochiMoppel wrote:
And? Did you fix the issue of your Stardust theme or find a better theme?

Neither! Embarassed
I have always been honest, and I hope my answer will not embarrass you. I actually switched back to my good, old lynx! It is faster in use, and have all the functions I need, but it doesn't have a nice, modern GUI like mm_view.

_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1716
Location: Japan

PostPosted: Mon 25 Jun 2018, 21:14    Post subject:  

I've now checked some more GTK themes. Some are a bit better than Stardust but the differences in contrast are marginal.
I didn't find a single customized theme where buttons look like buttons and appear "sunken" when they are pressed. The only theme that gives this useful visual feedback (and also provides a decent contrast) is the default Raleigh theme and its sibling Emacs.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 14 of 18 [256 Posts]   Goto page: Previous 1, 2, 3, ..., 12, 13, 14, 15, 16, 17, 18 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1299s ][ Queries: 13 (0.0451s) ][ GZIP on ]