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 Wed 17 Sep 2014, 03:38
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Muppy-Filer (August, 31, 2008)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [30 Posts]   Goto page: 1, 2 Next
Author Message
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Mon 18 Aug 2008, 01:14    Post subject:  Muppy-Filer (August, 31, 2008)  

quick installation:
http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=13139

includes:
Gtkbasic003, Puppybasic 2.6, Muppy-Filer, Muppyquickmount.
(1 MB)
A description of quickmount is here:
http://www.murga-linux.com/puppy/viewtopic.php?t=32107

---------------------------
Screenshot:



http://noforum.de/pics/GTB-Filer-0.1.jpg


There are several good filemanagers for Linux, like TUX-Commander, Emelfm, or XFileExplorer.

I however wanted to have a custom version, that makes it easier for me, to enhance it as I like to.

This is the first release, so not tested over a longer period.
It might have bugs, and has not yet all functions I want.

It offers:
- Fast navigation, as it knows only 4 pictures, and offers no custom sorting:
File
File (symlink)
Folder
Folder (Symlink)

So a movie has the same icon as a PDF.

- bookmarks
- unzip: tar.gz, tgz, tar.bz2, zip
- zip: tgz
- remembers window size/position, and last opened folders.
- edit button (runs leafpad with selected file)
- view pic button (runs gqview with selected file)
- doubleclick: tries to execute a file, if this does not work, it opens it with Rox, so the file is opened via MIME-Type.

The zip and copy buttons open a rxvt and run the required shell commands, so these actions are performed very fast.
As they run on a "system-level", they should run optimal.
With some filemanagers I encounter problems especially when I copy files.

Things that still miss: buttons for mkdir, rename, file permissions.
You can select only 1 file/folder.
Enhanced drag/drop (you currently just can drag to other applications).
Check for enough free diskspace for copy/unzip.

Requires GtkBasic 003, get the correct version here:
http://www.murga-linux.com/puppy/viewtopic.php?t=23811

You also need Puppybasic 2.6:
http://dotpups.de/dotpups/Programming/PuppyBasic-2.6.pet

Feedback / wishes /suggestions are welcome.

Download (25 kb, newest version, now renamed to "Muppy-Filer"):
http://dotpups.de/puppy3/dotpups/Programming/GtkBasic003/Muppy-Filer-0.2.pet

Mark

_________________
my recommended links

Last edited by MU on Thu 26 Nov 2009, 15:14; edited 7 times in total
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Mon 18 Aug 2008, 02:00    Post subject:  

updated the pet, there was a bug displaying "/".
Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Mon 18 Aug 2008, 05:30    Post subject:  

updated the pet, enhanced the speed.

The lists now are not clickable while a folder is loaded, that internally speeds up things.
You will notice this with huge folders like /usr/bin or /usr/lib.

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Mon 18 Aug 2008, 05:59    Post subject:  

cleaned up the code slightly again.
Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Wed 20 Aug 2008, 15:34    Post subject:  

no new version, just a screenshot:



full size:

http://noforum.de/pics/GTB-Filer-0.2.jpg

You now have small buttons under each pane for quick-actions.
"mv" will move/rename a file, you modify the name directly in the entry beside the button.

Selection of multiple files/folders is supported now.
It took two days, to modify the clists in Gtkbasic for this Rolling Eyes

As you can see by the "floating" folder-symbol in the second pane, also drag&drop will be supported.
This part is not finished yet.
The whole filer currently uses just 1500 lines of Basic Code, most are reusable functions.
So writing small utilities with drag&drop support will become pretty easy.

You easily could write commander-like interfaces for conversion utilies, with just some dozen lines of code Razz

Give me some more days to finish drag&drop and add full functionality to all buttons.

Then I'll upload this version.

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 31 Aug 2008, 02:25    Post subject:  

Muppy-Filer 0.2

Screenshot (scaled down):




Full size:

http://noforum.de/files/wxbasic/gtkbasic/Muppy-Filer-0.2.jpg


The Filemanager is full functional now.
Some things will be enhanced in the next weeks, but it already is a very good filemanager, I think.

Features:

-- Drag'n'drop
-Drag files on your desktop.
-Drop a URL from your webbrowser, to download it with wget
-Select several files in one pane, and drag them to the other, to copy them.

-- Archive support
- create .tgz archives
- extract: .pup .pet .tgz .tar.gz .tar.bz2 .tbz .zip

-- Quickbuttons
- move copy zip mkdir in the same folder with the small buttons under each pane

-- type or copy/paste a path in the adress entry.

-- progress display: not percentage-bars, but a list of all processed files. Realized via fifos.
In future, I'd like to add a percentagebar for large files (like isos).
And if possible, replace the fifos with a thread based solution. But this requires a deeper operation in the interpreter.

-- improved speed: the directories now are processed by a selfwritten C function.
This allows to use simpler Basic code to analyze it. It also displays broken links now different.
This could be enhanced even more by writing more in C, but it is ok already, if you don't have folders with several 1000 files.
My /usr/lib/ has 3000 files, it needs 50 seconds to load on a P700. This needs enhancement.

Download: (25 kb)
http://dotpups.de/puppy3/dotpups/Programming/GtkBasic003/Muppy-Filer-0.2.pet

Requires:
GtkBasic 003e + PuppyBasic 2.6, see:
http://www.murga-linux.com/puppy/viewtopic.php?t=23811

Mark

Last edited by MU on Sun 31 Aug 2008, 09:09; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sun 31 Aug 2008, 03:15    Post subject:  

Works OK on Puppy 4 Smile

In Puppy 4 we seem to have lost any filer apart from ROX (we used to have one) I never used it - prefer to open two ROX windows

Initial Suggestions
    - use of right mouse button
    - add dir2pet command (after mkdir)
    - more meaningful name for permission change (at bottom of file select)
    - 'Open with' includes presets (from right click)
    eg. Mtpaint, Geany, leafpad,
    - run GTk basic program
    - change 'show hidden' to eye icon - there is a tiny one in mini-icons

- helpfile - text + leafpad would do

Hope that is of use
It already seems intuitive
and hopefully others will test and suggest too Smile

Nice!

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 31 Aug 2008, 03:40    Post subject:  

Thanks Lob,
your suggestions cover also my wishes.
I will add them, when I have time again.
Monday to wednesday I am in bavaria, visiting a girlfriend.
I also must go to my company again somewhen in September, and soon will release Muppy 0084 final.

One issue I also want to focus on with the filer, is the ability, to add own commands.
Not a simple "open with", but a more enhanced one as in Multiconvert:
http://www.murga-linux.com/puppy/viewtopic.php?t=3755

As the Filer is written in Basic, this becomes pretty easy.
I think this will become the big "plus" of this filer Smile

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
trapster


Joined: 28 Nov 2005
Posts: 2003
Location: Maine, USA

PostPosted: Sun 31 Aug 2008, 06:41    Post subject:  

Very nice MU !!!!

Am using it with pupp300 retro.
I can resize height but not width of window.
When it opens, it is too wide.

Even when I use the maximize button it expands off the edge of the screen.

_________________
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Puppeee4.31 + 1.0, Puppy4.10 + Lupu52
Currently using Slacko AND lupu52 w/ fluxbox
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 31 Aug 2008, 08:55    Post subject:  

thanks trapster Smile

I updated the filer:

- fixed crash, when it started with a non-existent folder, e.g. when it was unmounted.

- the size now can be reduced to 660x360 pixel. Is this ok?

- the "Open with" list now contains entries for seamonkey, mtpaint and gxine, if it does not exist yet.

Please also update Gtkbasic 003e, as it contained a bug I just fixed.

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
trapster


Joined: 28 Nov 2005
Posts: 2003
Location: Maine, USA

PostPosted: Sun 31 Aug 2008, 09:02    Post subject:  

Much better!!

Thank you.

_________________
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Puppeee4.31 + 1.0, Puppy4.10 + Lupu52
Currently using Slacko AND lupu52 w/ fluxbox
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sun 31 Aug 2008, 09:10    Post subject:  

Quote:
One issue I also want to focus on with the filer, is the ability, to add own commands.


Ah - that would be very welcome . . .
I really thought this program would be an ideal 'launcher platform'
Also I know you are familiar with konqueror, which is a browser / file manager combo that might offer some ideas . . .

One thing I am confused by
GTKBasic and Puppybasic seem to be separate
I thought PuppyBasic was a cut down or modified GTKBasic?
http://www.puppylinux.org/wiki/development/general/puppybasic

Incorporating PuppyBasic would enable some programs you have written
and also an interpreted language is quicker to implement than the compiled Freebasic

I am also glad to hear GTKBasic support will be in EZpup
http://tmxxine.com/wik/wikka.php?wakka=EZpup

I am also pleased that HairyWill is using GTKBasic for PSIP
Your quick response to HairyWill need for Clist support
show how direct action is possible to implement
quicker than proprietary systems becomes aware of the situation . . .
A great example Smile

As we move towards a multi-developer
Puppy, I hope to find PuppyBasic, developed, supported and integral to Puppy.

Freebasic (a compiled Basic can still be used)
as can C and C++

Have a great time in Bavaria Smile

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 31 Aug 2008, 09:31    Post subject:  

thanks Smile
PuppyBasic has a function library, that most of my GtkBasic programs use.
It is written in Basic (basefunctions.inc, with commands like explode() to seperate a string in an array).

I do not bundle both, because Puppybasic shall keep the role of a small, extremely fast interpreter, with low memory requirements.
Gtkbasic needs much more memory, because it runs internally 2 programs at the same time (threaded): PuppyBasic and the Gtk-mainloop.
They exchange variables by a shared memory segment.

The Gtk-mainloop uses a lot of memory (compared to Puppybasic).
So I would not recommend to use Gtkbasic like you use other commands from shellscripts. For this task, Puppybasic remains the first choice.


Bavaria is great, I go to the north there, to Bamberg.
http://en.wikipedia.org/wiki/Bamberg

It is one of the most idyllic towns I know, and it is even better, to knw someone there Razz

Have a nice week!
Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
Eyes-Only


Joined: 10 Aug 2006
Posts: 1046
Location: La Confederation Abenaquaise

PostPosted: Wed 03 Sep 2008, 21:42    Post subject:  

Hi Mark!

I hope you had a really great time there in Bavaria! And most of all---I hope that you were able to forget about coding, Linux, Puppy, and even US---at least for a little while. Wink Bavaria! Such a beautiful place! Long ago I used to have penpals from that area. Long ago... another lifetime away... -sigh-

Which reminds me: Several years ago our small city here once had a Bavarian pastry shop! Back then I could walk, even ride a bicycle!---and I would save my few pennies here and there and treat my children to the luscious pastries. These people Mark! They knew their pastries and sweets! Smile (My favourites were an item they called "Pig's ears" in English. Speaking French I could never say the German/Bavarian name. LOL!)

Okie! Now all the memories aside: I downloaded this Muppy-Filer and on my Puppy-4.0 it looks great! (Black Aurora theme with Glass-red accents. NICE!) I also loaded the gtk3basic you mentioned above (the updated as you told Trapper) along with the puppybasic 2.6.

Here is my problem: Shouldn't I be able to double-click on the directories in the panes to enter them? Just like a single-click in XFE, or Thunar, or Nautilus, etc.? I have tried a single and double-click and they refuse to open. Instead, I have to type in the name of the directory at the top---very slow for me to do (it takes 30+ mins to do this post)---in order to open a directory.

So am I doing something wrong? Or is something wrong on my end? My Puppy-4.0 is a full hard drive install with tonnes of software. Maybe a conflict somewhere?

And so for me the only way to navigate is by typing. No mouse-clicks at all.

Thanks for any light you can share.

Amicalement/Mazzel,

jimmi
"L'Peau-Rouge"

_________________
*~*~*~*~*~*
Proud user of LXpup and 3-Headed Dog. Cool
*~*~*~*~*~*
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Thu 04 Sep 2008, 09:10    Post subject:  

Quote:
Here is my problem: Shouldn't I be able to double-click on the directories in the panes to enter them?


Yes, doubleclick should work.
I will have to check that.
Which windowmanager do you use?
I had to add modified eventhandlers for doubleclicks, so there might be issues with them.

----------
The pigs ears are called Schweineohren (it is the german translation with the same meaning).
http://www.baeckerei-lins.de/mediac/400_0/media/Schweineohren.jpg

They taste sweet, a crunchy cake with sugar and chocolate Smile
Bavaria was great, thanks.
Some impessions:
http://dotpups.de/pics/Bamberg-Wuerzburg-2008September/

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [30 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
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.0996s ][ Queries: 13 (0.0094s) ][ GZIP on ]