Di Guide

Introduction

Di is a directory editor. This document is a `quick reference' for it. It's not a tutorial, and it doesn't attempt to list every last command, nor describe every nuance of each command.

Movement Commands

n / C-n
move to the next file
p / C-p
move to the previous file

C-v
scroll down one page
M-v
scroll up one page

M-<
go to the first file in the buffer
M->
go to the last file in the buffer

Immediate Commands

These commands operate on a single file, the one on the current line.

Editing

l
list this file
e
edit this file
o
edit this file in another window

File operations

c
copy this file
This asks for the new location.
d
delete this file
This asks for confirmation.
r
rename this file
This asks for the new location.

Marking Commands

These commands mark and unmark files by various conditions.

In general, commands can be reversed by typing C-u first.

Local

m / return
mark the current file
u
unmark the current file

delete
unmark upward

Global

M
mark all files
U
unmark all files
T
toggle mark of all files

By extension

x
mark files by extension
This asks for the file extension.

By regexp

C-c m
mark files by regexp
This asks for the regular expression.
C-c u
unmark files by regexp
This asks for the regular expression.

By type

#
mark temporary files
*
mark executable files
.
mark `dot' files
/
mark directories
@
mark links
~
mark backup files

Multi-File Commands

These commands apply an operation to all marked files in the buffer.

File operations

C
copy marked files
This asks for the new location.
D
delete marked files
This asks for confirmation.
R
rename marked files
This asks for the new location.

Miscellaneous Commands

Editing

`
go to the parent directory

Shell command

!
run a background command
You need the background package.

Movement

j
jump to a file given part of the name
This is interactive.

Refresh

g
simple update
G
redo buffer from scratch

File operations

%
replace string in file names
This asks for the old and new strings.
&
make a directory
This asks for the new directory name.