Manual dfx - local directory browser

counter

dfx is simple file manager. running on X11 + Athena Widgets.

OPERATION

It is an operation method immediately after the installation. If you want to change the operation method, you can change it by writing the ~/.dfx/keys.

Moving cursor

Cursor key Up/Down
The cursor is moved up and down.
Page Up/Down
The cursor is moved up and down.
Home/End
The cursor is moved to top and bottom.
/

Do incremantal search.

Frame operations

q
Close the current buffer and the frame. dfx is finished when close the last buffer.
w w
Split horizontally current frame into two frames side by side. It resembles C-x 3 of Emacs.
w v
Split vertically current frame into two frames. It resembles C-x 2 of Emacs.
w q
Close a current frame with having left a buffer. you can reuse a left buffer.
{
Make current frame narrower hirozonatlly.
}
Make current frame wider hirozonatlly.
_
Make current frame saller vertically.
^
Make current frame bigger vertically.
Ctrl + n (^n)
Create a new frame.
Tab
Switch buffer in the current frame.
Cursor left/right
Change an active frame.
i
Show / Hide a information frame. Information frame shows file attributes, modified date, file size and permission.

To select files

Space
Mark file on cursor.
*
Mark files that wild card matched.
:
Clear marks.
Ctrl + :
Invert marks.

File operations

Enter
View a file on a cursor. When a cursor points a directory, change a working directory.
c
Copy files.
m
Move files.
d
Delete files.
a
Change permission.
k
Make directory.
Ctrl + k
Make empty file.
r
Rename files or directories.

Indication

F5
Reload.
( )
Scroll a file name.
f
Filtering file list. filter is specified by file name. Only a file in line with a filter is displayed in a buffer.
.
To toggle to show / hide dot files.
s n
Sort order by file name.
s s
Sort order by file size.
s t
Sort order by modified time.
s e
Sort order by file extension.
s m
Sort order by permission.

Change directory

l
Change working directory.
BackSpace
Change working directory to parent directory.
Shift + l

Show registered path list.

see ~/.dfx/path and pathlist.

Execute

x
Show prompt. you can type comman line and execute.
h

Show registered commands list.

see ~/.dfx/cmd and cmdlist.

Viewer

Space
Change a conversion encoding. Now supported Non conversion (user locale), Shift_JIS to EUC-jp, iso-2022-jp to EUC-jp.
l
Change a new line code. Now supported LF(0x0A:UNIX like)/CR(Macintosh)/CRLF(DOS/Windows).

ENVIRONMENT

HOME
HOME envirionment variable is refered to to refer user's home directory.

FILES

~/.dfx/keys
It is a key definition file.
~/.dfx/cmd
It is a command definition file.cmdlistcommand reads this file to make a command list.
~/.dfx/path
It is a command definition file. pathlistcommand reads this file to make a directory list.

~/.dfx/keys

A format specification has the following form:

[ buffers, ] <Command> : <Key> [ <Key> ... ]

buffers

buffers is buffer classification to assume a command definition it effectively.

f
Filer buffer.
v
Viewer buffer.
c
Commands list.
p
Directory list.
*
All buffers.

When you omit this field, I become an effective command definition in all buffers.

Example, this definition has effective on filer and viewer.

fv, < Command > : < Key > [ < Key > ... ]

Key

You can use an modifier key such as Control and Alt/Meta for an key definition.

Describe in a key definition file as follows to use modifier key.

+ <key>

It means hold Shift key and type a <key> .

+a means Shift + A.

^ <key>

It means hold Control key and type a <key> .

^h means Control + H.

% <key>

It means hold Meta(Alt) key and type a .IR <key> .

%x means Meta(Alt) + X.

# <key>

It means a letter instead of a key.

#* means letter '*'. Type Shift+8 with US keyboards. . Type Shift+: with JP keyboards.

A...Z

Describe it by small letter.

0...9

Describe it.

Others.

Describe other keys by a name of KeySym of X11.

Commands

open

Open a directory. if cursor points a file, display a file by viewer.

up

Move up the cursor.

down

Move down the cursor.

pageup

Scroll down a current buffer and move up a cursor.

pagedown

Scroll up a current buffer and move down a cursor.

top

Move cursor to begin of file list.

bottom

Move cursor to end of file list.

mark

To mark a file and down cursor.

multimark

To mark files. Mark files falling under the file name which you input.

clearmark

To clear mark of all files.

revmark

To invert mark of files. A mark of a marked file is removed and unmarked file will mark.

filter

To filtering files to display in current buffer .

showdots

To toggle to show / hide dot files.

cd

Change working directory.

gotoparent

To change working directory to parent directory. such as "cd ..".

cp

Copy file that selected files or pointed by cursor. Show an input box for copy destination. As destination candidate, a directory of the next buffer is chosen beforehand.

mv

Move file that selected files or pointed by cursor. Show an input box for copy destination. As destination candidate, a directory of the next buffer is chosen beforehand.

del

Delete file that selected files or pointed by cursor.

chmod

Change permission of selectedd files. When subdir is on, chmod follow sub directories.

mkfile

To make a file.

mkdir

To make a directory.

rename

Rename files and directories.

reload

Relaod current buffer.

info

Show information frame. Once again, hide it.

exec

To execute an other program immediately. When you wrote in key definition file \"exec /sbin/halt\", execute /sbin/halt.

quit

Close the current buffer and the frame. dfx is finished when close the last buffer.

isearch

Do incremental search.

sortname

Sort order by file name.

sortsize

Sort order by file size.

sorttime

Sort order by modified time.

sortext

Sort order by file extension.

sortmode

Sort order by permission.

cmdlist

Show registered commands list. You can execute a command by choosing it among a list.

pathlist

Show registered path list. You can change working directory by choosing it among a list.

split_h

Split horizontally current frame into two frames side by side. It resembles C-x 3 of Emacs.

split_v

Split vertically current frame into two frames. It resembles C-x 2 of Emacs.

close

Close a buffer. When there is the buffer which can display elsewhere, display the buffer. If there is not the buffer which can display elsewhere, a frame is closed.

newbuffer

Create buffer.

switchbuffer

Switch buffer in the current frame.

nextframe

Change an active frame.

prevframe

Change an active frame.

view

Invoke the internal viewer.

chcharset

Change a conversion encoding. Now supported Non conversion (user locale), Shift_JIS to EUC-jp, iso-2022-jp to EUC-jp.

chline

Change a new line code. Now supported LF(0x0A:UNIX like)/CR(Macintosh)/CRLF(DOS/Windows).

~/.dfx/cmd

It is a command definition file to use in cmdlist.

A format specification has the following form:

<NAME> : <Command> [ <Args> ... ]

You can use macro in a Command part. A macro is the alphabet to begin with $ specially.

  • $F
  • $P
  • $ [ T ...][ F | P ]
  • $ [ M ][ F | P ]
  • $ [ M ][ F | P ]
  • $R
$F
$F is replaced to the file name which a cursor points.
$P
$P is replaced to the current directory in current buffer.
$MF
$MF is replaced to the selected file name.
$T
Switch reference buffer to next buffer.
$TF
$TF is replaced to a file name of the next buffer.
$TP
$TP is replaced to a working directory of the next buffer.
$TMF
$TMF is converted into a file name choosing in the next buffer.
$TTF
$TTF is replaced to file name which a cursor points at in the next next buffer.
$TTTF
$TTF is replaced to file name which a cursor points at in the next next next buffer.
$R
Don't show command prompt. execute immediately.

~/.dfx/path

It is a command definition file to use in pathlist.

A format specification has the following form:

<NAME> : <Directory>

RESOURCES

  • Dfx.background:white
  • Dfx.fileColor:black
  • Dfx.dirColor:navy
  • Dfx.linkColor:blue
  • Dfx.roColor:red
  • Dfx.executableColor:green
  • Dfx.deviceColor:yellow
  • Dfx.otherColor:black
  • Dfx.cursorColor:white
  • Dfx.cursorBkColor:black
  • Dfx.selectedColor:white
  • Dfx.selectedBkColor:blue
  • Dfx.markColor:yellow
  • Dfx.borderColor:gray
  • Dfx.borderWidth:1
  • Dfx.msgReady:W E L C O M E!!
  • Dfx.msgAlready:already exist.
  • Dfx.msgChdir:change directory.
  • Dfx.msgGotoparent:goto parent.
  • Dfx.msgOverwrite:overwrite.
  • Dfx.msgMark:found
  • Dfx.msgMarkNomatch:file not found.
  • Dfx.msgCantView:viewer can't open file.
  • Dfx.msgNoConfigfile:configuration file not found.
  • Dfx.msgTooSmall:this buffer is too small.
  • Dfx.msgNeMem:not enugh memory.
  • Dfx.dlgDelete:Delete?
  • Dfx.dlgOverwrite:already exist. overwrite?
  • Dfx.dlgChmod:continue?
  • Dfx.dlgCopyFail:can't copy.
  • Dfx.dlgMoveFail:can't move.
  • Dfx.dlgMoveFailDel:can't delete original file.
  • Dfx.captionCopy:Copy to:
  • Dfx.captionMove:Move to:
  • Dfx.captionLink:Link to:
  • Dfx.captionSymlink:Symbolic link to:
  • Dfx.captionChdir:chdir:
  • Dfx.captionIsearch:search:
  • Dfx.captionMultimark:Mark:
  • Dfx.captionMkfile:Make file:
  • Dfx.captionMkdir:Make directory:
  • Dfx.captionExec:Execute:
  • Dfx.captionRename:Rename:
  • Dfx.captionFilter:Filter:
  • Dfx.captionCommands:COMMAND:
  • Dfx.captionPaths:DIRECTORIES:
  • Dfx.fontSet:-*-*-medium-r-normal--12-*