Jump to content




[1.3] Midcraft Commander 0.5.0.3 - An Orthodox File Manager


20 replies to this topic

#1 MewK

    RWTK Developer

  • Members
  • 44 posts
  • LocationGermany

Posted 19 February 2012 - 09:50 PM

Midcraft Commander

Created by:
MewK

Version:
0.5.0.3

Description

An orthodox file manager for CraftOS. Inspired by GNU Midnight Commander.

Features:
  • GUI:
    • Scalable
    • Two file system panels
    • Scrolling lists
    • Proper handling for long filenames
  • Functions:
    • Copy, cut, paste & rename for files and directories
    • Run & edit for files/programs
    • New folder & new empty file functions
    • Format for folders and discs
    • Lists, plays & stops music discs
    • Extended file info
  • Usability:
    • Multi-select files & folders (use Space key)
    • Menu/Sub-menu structure (use Ctrl key)
    • Integrated shell (use Tab key)
    • Menu shortcuts (use Ctrl key + shortcut key)
      • r - Run...
      • e - Edit
      • c - Copy
      • x - Cut
      • v - Paste
      • d - Delete
      • f - Format
      • i - Info
    • Path-sesitive file handling
      • Opens files in /rom/help with help viewer (customizable)
      • Opens files in /rom/api whit editor (customizable)
      • All other files are passed to shell.run
  • Config file:
    • Customize editor path
    • Customize help viewer path
    • Set the filetype for specific folders to change the start action
      • 1 - program file
      • 2 - text file
      • 4 - help file

If you have any feedback please post it below.

Especially if you have bug reports and ideas for new features!


Usage

midcraft-commander [-h|?]

Download

cc-get: cc-get install midcraft-commander

GitHub: ZIP-file

If you've downloaded the ZIP-file, just put all files in '/bin'.

Screenshots

Spoiler



#2 luza

  • New Members
  • 43 posts
  • LocationGermany

Posted 20 February 2012 - 09:02 AM

looks better than cookiecraft, I think.
I'll test it later today.

#3 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 20 February 2012 - 02:04 PM

Nice - i'm actually coding something like this now. I may dip in your sauce ;)/>

#4 Mandrake Fernflower

  • Members
  • 117 posts
  • LocationDark Side of The Moon

Posted 20 February 2012 - 04:29 PM

Very very nice!

#5 MewK

    RWTK Developer

  • Members
  • 44 posts
  • LocationGermany

Posted 20 February 2012 - 08:49 PM

 FuzzyPurp, on 20 February 2012 - 02:04 PM, said:

Nice - i'm actually coding something like this now. I may dip in your sauce ;)/>

Shouldn't we try to work on it together? I want Midcraft Commander to be the #1 choice for CraftOS and will extend it accordingly.
I'm open to almost everything and don't see a reason for rivaling projects. Plus, working together is more fun and more open source like :)/>


PS: I'm working on a ftp-like protocol right now to use Midcraft Commander to remote access other computers filesystems. T
The problem is that both computers would need to activly run Midcraft Commander.
Does Redworks maybe have a functional network-stack i can use which allows me to access the filesystem?

#6 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 20 February 2012 - 10:49 PM

 MewK, on 20 February 2012 - 08:49 PM, said:

 FuzzyPurp, on 20 February 2012 - 02:04 PM, said:

Nice - i'm actually coding something like this now. I may dip in your sauce ;)/>

Shouldn't we try to work on it together? I want Midcraft Commander to be the #1 choice for CraftOS and will extend it accordingly.
I'm open to almost everything and don't see a reason for rivaling projects. Plus, working together is more fun and more open source like :)/>


PS: I'm working on a ftp-like protocol right now to use Midcraft Commander to remote access other computers filesystems. T
The problem is that both computers would need to activly run Midcraft Commander.
Does Redworks maybe have a functional network-stack i can use which allows me to access the filesystem?

Sounds good, you should join Redworks(you can still work on your own projects). And no not at the moment, but we can build one, if it hasnt been created yet.
What other ideas you have in mind?

#7 MewK

    RWTK Developer

  • Members
  • 44 posts
  • LocationGermany

Posted 20 February 2012 - 11:46 PM

 FuzzyPurp, on 20 February 2012 - 10:49 PM, said:

Sounds good, you should join Redworks(you can still work on your own projects).

Sure, why not. Should I create my own Github rep. or do you have a
redworks rep. i shall use?

 FuzzyPurp, on 20 February 2012 - 10:49 PM, said:

And no not at the moment, but we can build one, if it hasnt been created yet.
What other ideas you have in mind?

Well, I guess the topic networking will wait until the 1.3 release.
I want to see what new stuff we have available. My goal would be
something like a SSH demon to remote control other computers.
But that would need some kind of multitasking. Is a multitasking
stack already implemented in redworks? If not, that would
probably be my next project.

#8 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 21 February 2012 - 12:45 AM

 MewK, on 20 February 2012 - 11:46 PM, said:

 FuzzyPurp, on 20 February 2012 - 10:49 PM, said:

Sounds good, you should join Redworks(you can still work on your own projects).

Sure, why not. Should I create my own Github rep. or do you have a
redworks rep. i shall use?

 FuzzyPurp, on 20 February 2012 - 10:49 PM, said:

And no not at the moment, but we can build one, if it hasnt been created yet.
What other ideas you have in mind?

Well, I guess the topic networking will wait until the 1.3 release.
I want to see what new stuff we have available. My goal would be
something like a SSH demon to remote control other computers.
But that would need some kind of multitasking. Is a multitasking
stack already implemented in redworks? If not, that would
probably be my next project.

DO you use irc - most of us hang out there in the computercraft channel. My github links are on Redworks thread, and yea you should set one up.
A 1.3 candidate release may be coming out in a few hours, hop in irc channel

#9 luza

  • New Members
  • 43 posts
  • LocationGermany

Posted 21 February 2012 - 01:13 PM

Just tested it out. GREAT!
but can you make it possible to select multiple files?

#10 MewK

    RWTK Developer

  • Members
  • 44 posts
  • LocationGermany

Posted 21 February 2012 - 01:43 PM

 luza, on 21 February 2012 - 01:13 PM, said:

Just tested it out. GREAT!

Thanks :)/>

 luza, on 21 February 2012 - 01:13 PM, said:

but can you make it possible to select multiple files?

Good idea! I will work on it. I guess it will be released on Sunday, it's not a feature which is done in 30min. If you have further ideas, please post them^^

#11 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 21 February 2012 - 02:30 PM

Dude...let's join forces :)/>

Bug: none of the help files work, this is with CC 1.3rc1
debug shows -> bios:206: [string "dj"]: '=' expected - shows that for running any type of help file from the explorer

#12 MewK

    RWTK Developer

  • Members
  • 44 posts
  • LocationGermany

Posted 21 February 2012 - 09:58 PM

 FuzzyPurp, on 21 February 2012 - 02:30 PM, said:

Dude...let's join forces :)/>

Bug: none of the help files work, this is with CC 1.3rc1
debug shows -> bios:206: [string "dj"]: '=' expected - shows that for running any type of help file from the explorer

Well, I guess I have to wait until 1.3 is released to fix that :huh:/>

#13 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 21 February 2012 - 11:27 PM

I think it MAY be a 1.3 issue.

#14 MewK

    RWTK Developer

  • Members
  • 44 posts
  • LocationGermany

Posted 22 February 2012 - 12:18 AM

 FuzzyPurp, on 21 February 2012 - 11:27 PM, said:

I think it MAY be a 1.3 issue.

Ah now i understand what you mean. it's actually not an error.
If you press enter it runs a file, if you want to view a file you have to use the menu->edit

there is no good way to check whether a file is a program or not. not even craftos can d that.
just type "rom/help/list" on the shell and you'll see the same error.

an easy way to solve this problem would be the use of extensions like. lua and .txt and only .lua files are executable.
but as long as the default files dont have an extension i cant implement that.

#15 luza

  • New Members
  • 43 posts
  • LocationGermany

Posted 22 February 2012 - 03:19 PM

 MewK, on 22 February 2012 - 12:18 AM, said:

there is no good way to check whether a file is a program or not. not even craftos can d that.
just type "rom/help/list" on the shell and you'll see the same error.

yes, there is.
fs.isDir( path )

#16 Espen

    Curious Explorer

  • Members
  • 708 posts

Posted 22 February 2012 - 06:06 PM

 luza, on 22 February 2012 - 03:19 PM, said:

 MewK, on 22 February 2012 - 12:18 AM, said:

there is no good way to check whether a file is a program or not. not even craftos can d that.
just type "rom/help/list" on the shell and you'll see the same error.

yes, there is.
fs.isDir( path )
I think what he meant was that there is no easy way of checking if a file is a Lua program or not.

#17 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 22 February 2012 - 06:23 PM

 Espen, on 22 February 2012 - 06:06 PM, said:

 luza, on 22 February 2012 - 03:19 PM, said:

 MewK, on 22 February 2012 - 12:18 AM, said:

there is no good way to check whether a file is a program or not. not even craftos can d that.
just type "rom/help/list" on the shell and you'll see the same error.

yes, there is.
fs.isDir( path )
I think what he meant was that there is no easy way of checking if a file is a Lua program or not.

I assume that is what he meant as well.

#18 MewK

    RWTK Developer

  • Members
  • 44 posts
  • LocationGermany

Posted 22 February 2012 - 11:47 PM

The point is that isDir can only tell you if it is a directory. It can't tell you if it is a LUA program or just a random text file or even a zip file. Windows for example only uses the file extension to decide that. Your browser uses mime-types and some apps use magic numbers to identify file types. Linuix uses an executable flag. craftos has nothing like that. i hope thats clear enough :)/>

The two options available for CraftOS would be:
  • using file extensions like .txt and .lua
  • or using something like shell scripts have: #!/bin/sh to define the interpreter


#19 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 24 February 2012 - 10:08 AM

Posted Image

#20 MewK

    RWTK Developer

  • Members
  • 44 posts
  • LocationGermany

Posted 25 February 2012 - 09:16 AM

I've released a new version!

Changelog:
  • Multi-select (use space to select/deselect entries)
  • Lists music disc in a virtual folder (/music)
  • And can play music discs too :P/>
  • I've refactored the whole code. Now it's ready for future updates.
Edit 1:

I've added even more:
  • Menu shortcuts
  • File info
  • Format disks
  • Open help files
  • Config file for:
    • Editor path
    • Folder default action (defines the 'enter' action: run, edit or help)
Edit 2:
I've fixed a small bug that broke things if cc-get was used to install mcom. So feel free to use cc-get again!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users