Linux Commander 0.4.0
---------------------
This readme is probably outdated. A real documentation is on the way.

Keyboard shortcuts
------------------
F1 - File info
F2 - Permissions
F5 - Copy 
F6 - Move
F7 - Mkdir
F8 - Delete
F9 - Rename
F10 - Quit

Ctrl+A - Select All
Ctrl+N - Select None
+ - Pattern selection
Ctrl+P - Preferences
Ctrl+E - Edit associations
Ctrl+R - Refresh

Left arrow - Give focus to the left filelist
Right arrow - Give focus to the right filelist

/ - Go to root directory

Command-line commands
---------------------
"quit/exit"
Will quit Linux Commander

"prefs/preferences/setup"
Brings up the preferences dialog.

"cd <pathname>"
Will update the selected filelist with <pathname>

"rm <pattern>"
Removes all files matching the current pattern.
example: "rm *.txt" will remove all files in selected filelist ending with .txt.
example: "rm /tmp/*" will remove all files in /tmp.
example: "rm" Will remove all selected files in selected filelist.

"mkdir <directory>"
Creates the directory <directory>
example: "mkdir hello" will create the dir hello in the the	selected filelist.
example: "mkdir /tmp/hello" will create the dir /tmp/hello.
example: "mkdir" Will ask for a directory to create.

"sel/select <pattern>"
Will select all files matching <pattern>.
example: "sel *" Will select all files in the selected filelist.
example: "sel" Will ask for a pattern to select from.

"copy <pattern> <destination>"
Will copy all files matching <pattern> to <destination>
example: "copy *.txt /tmp/hello" Will copy all files in current filelist ending with *.txt to /tmp/hello
example: "copy *.txt" Will copy all files ending with *.txt to the not filelist not selected.
example: "copy /home/skel_/*.txt /tmp" Will copy all files in /home/skel_ ending with *.txt to /tmp.

"move <pattern> <destination>"
Works exactly like but moves the files instead.

"ass"
Will bring up the associations dialog.

"<command>"
Will execute the command <command>.

"Ctrl+1 or Ctrl+2"
This will insert the current working dir of any filelists #1 or #2 into the command line. 

"Ctrl+U"
Will clear the command line.

File associations
-----------------
Linux Commander now supports file associations. They are controlled by the file
$HOME/.linuxcmd/filetypes. The syntax for this file is:

<extension(s)>;<description of command>;<command>

Associations can also be configurated from within Linux Commander.
"<extension(s)>" Is a comma-seperated list of extensions, like txt or tgz.
"<description of command>" will be the name of the menuitem.
"<command>" is a string which instructs linuxcmd how to run a program. It has some
cool functions:

%x will insert your xterm command
%1 will insert the selected filename
%a will insert all selected files (this is probably what you want)
%w will insert current working directory
%f will prompt for a value

You can also add ;default to the end of a line to make that action the default
doubleclick action for the extension. The line will then look like this:

<extension>;<description of command>;<command>;default

So, let's say you want an option for all your .c files which compiles the file to
the current working dir with a filename which you specify. You also want this to be the default
doubleclick action for .c files.

<extension> will,of course, be c
<description> will be something like: Compile to...
<command> will be: %x -title "Compiling %1" -e sh -c "gcc -o %w/%f %1|less"

So, after linuxcmd has parsed this string the command will be something like:
xterm -title "Compiling /home/foo/helloworld.c" -e sh -c "gcc -o /home/foo/helloworld /home/foo/helloworld.c|less"

And since this should be the default action, you add a ;default to the end. The line now looks like:
c;Compile to...;%x -title "Compiling %1" -e sh -c "gcc -o %w/%f %1|less";default

If you want to have an association for all files you just use * as an extension. So if you want all
your unassociated files to be opened in gvim this will do the trick:
*;Open in gvim;gvim "%1"

A sample filetypes file is included in the package. It has all associations I use. 

Some other features
-------------------
You can use HOME & CURRENT instead of normal directories as
startup directories. HOME will of course, open your home dir 
and CURRENT will open the current working directory.

Bugs etc.
---------
Please report bugs to me Per Holmng, email: skeleton@algonet.se
Also please excuse my crappy english =)

Homepage
--------
Linux Commander's homepage is located at
http://www.algonet.se/~skeleton/linuxcmd/
