Skip to content

Latest commit

 

History

History
99 lines (69 loc) · 5.66 KB

README.md

File metadata and controls

99 lines (69 loc) · 5.66 KB

Midday Commander Plus

A file manager utility for OpenComputers. Forked from original MC.

Made for those who are not experienced with command-line interfaces.

Developers

  • Zer0Galaxy (aka Dimus) — the ComputerCraft version of the original program.
  • NEO (a.k.a. Avaja) — the file search algorithm.
  • Totoro (also known as MoonlightOwl) — the OpenComputers port.
  • Bs()Dd (also spelled Bs0Dd) - the Plus version.

Installation

Insert Internet card and type: pastebin run pc73b8bB

The program comes with:

  1. Language mcl files for Russian and English (by default, English is set)
  2. Three mct themes - "Standard", "Redstone" and "Darkness" (alas, I am not a designer, so the absence of eyelash in themes is not guaranteed)

Description

The programs supports any screens with any color depth or resolution.

Screenshot 1 Screenshot 2 Screenshot 3

The GUI was inspired by a well-known Linux program, Midnight Commander, and, of course, Norton Commander.

The program GUI has two panels, to the left and to the right. Each one lists files and directories stored on the computer's HDDs or floppies. The directories have / at the end of their names, and are displayed on the top of the lists.

Below it is a command prompt, and a list of the actions invoked by pressing a corresponding functional (Fn) key.

Use arrow keys or mouse to navigate through the files, and pressing the Tab key or clicking on another panel moves the focus to another panel. The Enter key (or double click) is used to run a program or go to a directory. To run a program and pass it arguments, hold Ctrl and press Enter (or double click on the element). The name of program will be pasted to the command prompt. Type the arguments, and press Enter.

Also, you can press Alt + Enter to hide MCP.

The main differences from the original version:

  1. Supports 160x50 video mode
  2. Shadows by the windows (like Norton)
  3. Mouse support
  4. Multilingual (language data is placed in a separate .mcl file)
  5. Themes support (data on colors of elements are placed in a separate .mct file)
  6. Association system

Program parameters are located in the config file - /etc/mc.cfg

Associaton system

In modern operating systems like Linux, MacOS and Windows, when opening, say, a .jpg image, the system will not launch it, but will launch the viewer associated with this format, passing it this file. A similar system is implemented here. In the config there is a field "Associations", where you can specify for which file which program will be launched.

Entries are of the form ['extension'] = 'program and arguments'.

For example, the entry ['.txt'] = 'edit' means that when you double-click on a file with the .txt extension, the edit editor will be called with the path argument to the file.

Associations do not work if the file is launched from the manager command line.

Actions

F1 — show help.
Screenshot 4: The help window

F3 — open an editor with the selected file.

Shift + F3 — create a new file.
Screenshot 5: The "Create new file" dialog

F4/F5 — copy/move a selected file to the another panel's current directory. You can copy under another name if you want so.
Screenshot 6: The "Copy the file" dialog

F7 — create a new directory.
Screenshot 7: The "Directory name" dialog

Alt + F7 — search for a file or directory.
You can use ? and * masks.

  • ? means "any character".
  • * means "0 or more characters"

For example, to search for all files that start with co, you can use the co* pattern.
Screenshot 8: The "Search" dialog Screenshot 8: The "Search results" dialog

F8 — remove a file or directory. You'll be asked for confirmation before removing.
Screenshot 9: The "Remove the file" dialog

F10 — exit.
Screenshot 9: The "Exit" dialog

Links