home *** CD-ROM | disk | FTP | other *** search
- K C D ( Karsten Change Directory )
- ------- - - -
-
- This is a very short documentation of the program KCD.
- This program is in the public domain, so feel free to change the
- source code to make the program perhaps better than it is now.
-
-
- What is KCD ?
-
- KCD is a program, that allows you to change comfortably into another
- directory within a shell. Every harddisk owner knows the problem, when
- he wants to change into another, little frequent subdirectory. He
- always has to remember the whole pathname and type it in correctly.
- Mostly he needs several tries until he is in the right directory.
-
-
- How does KCD work ?
-
- KCD makes a list of your harddisks subdirectories, which is read
- every time you call KCD. This structure is shown in a window and you only
- have to click on this directory you want to change to. You can scroll
- the list by moving the mouse to the first or last line. KCD generates
- a pathname, which can be used for several actions.
-
-
- Installation :
-
- * Copy th program KCD to your favorite 'bin'-directory.
- * Write a text file called 'kcd.cfg' in your 's:'-directory. Here you
- can tell KCD what you really want to do with the generated pathname.
- ( Please read the next section! )
- * Because KCD is very general, you perhaps have to call it from a
- script file.
- I use KCD to get an environment variable 'newpath', in which
- the pathname is stored. The pathname is then available with $newpath.
-
- A script file 'NewCD' might look like:
-
- .key dir/a
- KCD <dir>
- cd $newpath
-
-
- The config file 's:kcd.cfg' :
-
- You first have to write a configuration file in the s: directory named
- 'kcd.cfg'. Here you can tell KCD your environment.
-
- My file looks like that:
-
- TEXTCOLOR 1 ; Text color = pen1
- MARKCOLOR 3 ; Mark color = pen3
- LINECOLOR 2 ; Line color = pen2
-
- ; Devices (logical or physical),
- ; which have to be examined
-
- ROOTDIR UHD:
- ROOTDIR SHD:
-
- WINDOWX 10 ; left upper corner of the shown window
- WINDOWY 11
-
- DELAY 0 ; no delay
- SCROLL 8 ; 8 pixels to scroll
- SORT 1 ; sort in alphabetic order
-
- ; Command that has to be executed
-
- COMMAND 'setenv newpath %s'
-
- ; Directories you don't like in the list
-
- NOT SHD:devs
- NOT SHD:empty
- NOT SHD:fonts
- NOT UHD:TeX
-
-
-
- The meaning of the keywords
-
- TEXTCOLOR : Color of the directory names
- Default : 1
-
- MARKCOLOR : Color of the selected directory
- Default : 3
-
- LINECOLOR : Color of the lines
- Default : 2
-
- ROOTDIR : Name of devices (logical,physical) to put in the list.
- Default : DH0:
- For each device you need an entry ROOTDIR <device>.
-
- WINDOWX,
- WINDOWY : Position of the window.
- Default : WINDOWX 0 , WINDOWY 0
-
- DELAY : scroll speed ( 0 = quick )
- Default : 0
-
- SCROLL : Number of pixels to scroll. Allowed is 1 , 2 , 4 , 8
- Default : 8
-
- SORT : How to sort the list.
- 0 = not sorted
- 1 = sorted in alphabetic order
- -1 = sorted in reverse alphabetic order
- Default : 0
-
- NOT : The given directory and all subdirectories will not be in
- the list.
- Default : none
-
- COMMAND : Command that will be executed, when the pathname is generated.
- You have to put the commandstring into quotes ('...').
- It has to contain the control character %s .
- Default: 'setenv newpath %s'
-
-
- Fist use of KCD:
-
- * Type : KCD -l <RETURN>
-
- Now KCD generates a file in the s: directory named 'kcd.antilist'.
- With an editor you can put an '-' in front of every entry, you don't
- like in your list.
-
- * Type : KCD -n <RETURN>
-
- The file 's:kcd.list' will be generated or updated.
-
- * Geben Sie nun ein : KCD <RETURN>
-
- The structure of your device is shown in a window.
-
- REMEMBER:
- KCD will not change automatically to the selected directory. It
- only executes the command string ( default or set by COMMAND in
- the config file ).
-
-
- Also possible calls of KCD:
-
- 1. KCD -?
-
- - Informations about how to use KCD.
-
- 2. KCD <directory>
- e.g. KCD sys:devs
-
- - The given directory is examined to other subdirectories and
- then shown in the window.
-
- 3. KCD <logical device>
- e.g. KCD devs:
-
- 3. KCD <physical device>
- e.g. KCD df2:
-
-
- Others:
- * Works well on an A500 with KS1.3 and WB1.3
- * No bugs known
- * The directory names may not contain any BLANK.
-
-