home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / xap / xfm / xfm-1.000 / xfm-1 / xfm-1.3.2 / README < prev    next >
Encoding:
Text File  |  1995-04-13  |  15.0 KB  |  297 lines

  1.  
  2.     XFM - The X File Manager (ver 1.3.2)
  3.     ------------------------------------
  4.  
  5.     (c) Simon Marlow 1990-1993     simonm@dcs.glasgow.ac.uk
  6.     (c) Albert Graef 1994, 1995    ag@muwiinfa.geschichte.uni-mainz.de
  7.  
  8.     This program is free software; you can redistribute it and/or modify
  9.     it under the terms of the GNU General Public License as published
  10.     by the Free Software Foundation; either version 2, or (at your option) 
  11.     any later version.
  12.  
  13.     This program is distributed in the hope that it will be useful,
  14.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
  16.     GNU General Public License for more details.
  17.  
  18.     You should have received a copy of the GNU General Public License
  19.     along with this program; if not, write to the Free Software
  20.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  
  22. ------------------------------------------------------------------------------
  23.  
  24. This is a powerful file and applications manager program written using the X
  25. toolkit. It contains virtually all of the features that you would expect in a
  26. file manager -- move around your directory tree in multiple windows, and move,
  27. copy or delete files with simple mouse operations. Directory displays are
  28. updated automatically in regular intervals when the contents of a displayed
  29. directory changes. The integrated application manager allows you to load files
  30. into your favourite applications from the file manager by dragging icons. It
  31. can also be used as a "shelf" onto which you can place files and directories
  32. you are currently working with. A special LOAD action for application files
  33. enables you to manage different application groups.
  34.  
  35. User-definable file types allow you to specify a command to be executed when
  36. double-clicking on a file or dropping other files onto it. The command can
  37. also prompt you for required parameters. Xfm makes it easy to configure
  38. special kinds of actions such as, e.g., replacing the contents of a compressed
  39. tar archive with a collection of selected files. A lot of corresponding
  40. examples can be found in the distribution, including a fully functional
  41. trashcan feature. Last not least, xfm can automatically mount and unmount
  42. special devices like floppies as you open and close the corresponding
  43. directories (mount points). So you won't have to fiddle around with mount or
  44. mtools commands any more if all you want to do is copy some files between the
  45. hard disk and your floppy drive.
  46.  
  47. The original version of this program was written by Simon Marlow at the
  48. University of Glasgow. I included Simon's README for reference purposes; see
  49. README-1.2. [Most of the information in this file is outdated; please refer to
  50. this README file and the man page for up-to-date installation and usage
  51. instructions.]
  52.  
  53. Release 1.3 stems from my efforts to resolve some nasty bugs in the 1.2 beta
  54. version distributed with Linux slackware, and to add XPM support for displaying
  55. color icons in the file and application windows. As it came out, I also added a
  56. plethora of other features to make xfm the tool I was looking for; see the
  57. ChangeLog for details. Realizing that my private xfm version might be useful
  58. for others as well, I contacted Simon and he told me to put together a new
  59. release and make it available on the net. So here it is! I hope you will find
  60. it as useful as I do -- I am now using xfm regularly, and can't imagine how I
  61. ever did without it. I think that this program compares well to other free --
  62. and even commercial -- file managers. It is fast, convenient to use, and offers
  63. a lot of built-in functionality and configuration options. If you are not
  64. addicted to the shell and like to shuffle around files with one hand in order
  65. to perform tasks such as moving, copying, deleting, compiling, formatting,
  66. archiving, compressing, etc. etc., then xfm is certainly for you.
  67.  
  68. Release 1.3.1 adds an automatic shell detection feature, which has been
  69. contributed by Robert Vogelgesang (vogelges@rhrk.uni-kl.de). We hope that this
  70. transparently fixes the problems with different shell argument passing
  71. conventions which have been encountered with release 1.3. The configuration
  72. files supplied with the package should now work with any popular shell -- if
  73. not, set the new X resource Xfm.BourneShells; see the man page for details.
  74.  
  75. Release 1.3.2 adds a bunch of new features; the most important are listed
  76. below:
  77.  
  78. * Improved support for creating symbolic links. The Link option now works
  79.   completely analogous to the Copy option; in particular, it is now possible
  80.   to create links for a selected set of files in a specified directory.
  81.  
  82. * Rearranging items in the application window, which used to be a pain in
  83.   earlier releases, is now a lot easier. Items in the application window
  84.   can now be moved and copied using drag and drop, and cut/copy/paste gives a
  85.   convenient way to move entries between different application files. There
  86.   also is a new option for installing application groups, and the Back and
  87.   Main buttons allow to navigate in the application group tree.
  88.  
  89. * "Magic headers," contributed by Juan D. Martin (juando@cnm.us.es). With
  90.   this feature it is now possible to identify file types by their mode and
  91.   contents in addition to the filename patterns. This is implemented using
  92.   a "magic" file format (see magic(5)) with some important extensions like
  93.   mode checking and regular expression matching. It also allows you to specify
  94.   custom icons for directories and executables in file windows. A sample
  95.   magic file is included. Also, Juan wrote a tiny program named xfmtype which
  96.   lets you determine the xfm magic type of a file.
  97.  
  98. * A Filter option for the View menu, contributed by Kevin Rodgers
  99.   (rodgers@lvs-emh.lvs.loral.com). This nice function allows you to restrict
  100.   the set of files  displayed in a file window -- for instance, only display
  101.   *.c files.
  102.  
  103. * A View option for the file popup menu (accompanied by a VIEW action which
  104.   can be used in push actions), contributed by Scott Heavner
  105.   (sdh@falstaff.MAE.cwru.edu). This option works analogous to the Edit
  106.   option, but invokes a program for viewing a file (e.g. xless, available
  107.   from ftp.x.org).
  108.  
  109. * Default values in parameter dialogs, contributed by Brian King
  110.   (ender@ee.WPI.EDU). Using the %parameter--value% notation, you can now
  111.   specify default values for parameters in push and drop actions.
  112.  
  113. * Lots of new icons, and a new set of standard config files. Juan D. Martin
  114.   has compiled a comprehensive collection of fileicons. Take a look at the
  115.   contrib/fileicons directory.
  116.  
  117. * Besides this, I cleaned up the source tree, fixed some bugs, overhauled
  118.   Imakefiles and added an "Imake.options" file for easier customization.
  119.  
  120. Thanks to all who reported bugs and contributed patches!
  121.  
  122.  
  123. INSTALLATION
  124. ------------
  125.  
  126. As distributed, xfm is set up to work with Arnaud Le Hors' XPM library. It can
  127. still be compiled and run without this library, if you comment out the #define
  128. XPM in Imake.options, but then you will have to edit the configuration files
  129. (xfmrc, Apps, etc.) to replace the pixmap icons by bitmaps (a few are supplied
  130. in the bitmaps directory). Versions of the XPM library less than 3.3 appear
  131. not to work.
  132.  
  133. Other options which can be controlled by corresponding #define's in
  134. Imake.options are XAW3D (which causes linkage with the Xaw3d library, and also
  135. adds some Xaw3d-specific lines to the applications default file) and
  136. MAGIC_HEADERS (which causes the magic headers code to be included, and also
  137. determines the standard xfmrc file to be installed on your system). XAW3D is
  138. disabled, MAGIC_HEADERS enabled by default.
  139.  
  140. Xfm 1.3 has been reported to compile and run successfully under Linux
  141. 0.99-1.1.91, BSDI 1.1, RS6000 with AIX 3.2.5 (using gcc), SUN workstations
  142. running SunOS 4.1 and Solaris 2.3, HP700 with HPUX 9.01, DECstation with
  143. Ultrix 4.3a, DEC Alpha with OSF/1, SGI Indigo with IRIX 4.0.5F and 5.2. I hope
  144. I didn't break this with the current release. We are still interested in
  145. getting Xfm compiled on as many platforms as possible (porting should be a
  146. piece of cake), so please continue to send us any patches so that they can be
  147. included in future releases.
  148.  
  149. NOTE for SUN users and other people running ol[v]wm: In order to get double
  150. clicks in xfm working, you may have to set olwm to the "focus-follows-mouse"
  151. (rather than the "click-to-focus") mode. This can be done by setting the
  152. SetInput resource to followmouse in your .OWdefaults file (see props(1)). In
  153. click-to-focus mode double clicks in xfm won't work. I consider this a bug in
  154. olwm, but if anybody has a fix to get double clicks working in click-to-focus
  155. mode I'd like to hear about it.
  156.  
  157. -------------
  158.  
  159. To customize the Imakefiles according to your preferences and your system,
  160. edit the file "Imake.options" at the top level of the distribution. This file
  161. is included by the different Imakefiles so that you usually won't have to edit
  162. the Imakefiles themselves. To build/install the software do the following:
  163.  
  164. xmkmf && make Makefiles && make && make install && make install.man
  165.  
  166. Of course, if you already have an xfm version >=1.3 running on your system,
  167. you might find it more convenient to execute an equivalent of the above from
  168. xfm. ;-)
  169.  
  170. NOTE: When upgrading from xfm-1.3 or xfm-1.3.1, you might wish to back up your
  171. old set of config files before installing the new files. Then, after having
  172. generated the Makefile with xmkmf, issue a `make uninstall' to remove the old
  173. installation before you do the `make install'. Release 1.3.2 includes a lot of
  174. additional icons (see ICONS). Unfortunately I had to rename a few icons, so
  175. you may have to edit your old configuration files if you want to reuse them
  176. with the new release.
  177.  
  178. If everything goes smoothly, you should have an xfm binary installed
  179. in your X bin directory, along with some other stuff (note the
  180. directories may not be identical on your system, it is up to Imake to
  181. install these things in the correct place):
  182.  
  183. /usr/X11/bin/xfm.install        The user installation program
  184. /usr/X11/lib/X11/xfm/
  185.     bitmaps                Some example bitmaps
  186.     pixmaps                Some example pixmaps
  187.     dot.xfm                Default config files (for xfm.install)
  188. /usr/X11/lib/X11/app-defaults/Xfm    application defaults for xfm
  189. /usr/X11/man/man1/xfm.1            the manual page
  190.  
  191. If everything didn't go smoothly, you may have to make xfm in the src
  192. subdirectory separately, and/or install things by hand.
  193.  
  194. To complete the installation, you will probably wish to edit the default
  195. configuration files and the application defaults file to reflect your local
  196. configuration.
  197.  
  198. Also you might wish to manually install additional icons and other stuff from
  199. the contrib dir.
  200.  
  201. Good luck! :-)
  202.  
  203.  
  204. ICONS
  205. -----
  206.  
  207. Xfm comes with a basic collection of bitmap and pixmaps icons from various
  208. sources on the net, including icons from Linux slackware, the X desktop
  209. manager (xdtm), the 0.91 beta release of the G.R.E.A.T. environment and the
  210. AIcons collection. Be warned that I had to edit some of these icons to be able
  211. to display them on my Linux box which only runs a 16 color X server. Therefore
  212. many of the icons aren't as colorful as could be.
  213.  
  214. A comprehensive set of both bitmap and pixmap fileicons has been collected and
  215. edited for use with xfm by Juan D. Martin (juando@cnm.us.es). To install
  216. these, simply copy the files in contrib/fileicons/{bit,pix}maps to the
  217. {bit,pix}maps directory in your xfm libdir, or some other directory specified
  218. with the {bit,pix}mapPath resource. You should also install the modified xfmrc
  219. file in the contrib/fileicons directory which makes use of the new icons.
  220.  
  221. Tons of other icons can be found on the net. For instance, take a look at the
  222. AIcons collection or pixmaps.tar.gz, both in the R5contrib directory on
  223. ftp.x.org. You might also consider to install the xbmbrowser program written
  224. by Ashley Roll and Anthony Thyssen (also on ftp.x.org), if you haven't done
  225. this already.
  226.  
  227.  
  228. STANDARD SETUP
  229. -------- -----
  230.  
  231. The standard setup (files in the lib directory) consists of the magic and
  232. xfmrc files for common filetypes, a sample xfmdev file (specifying how special
  233. devices like floppy disks are mounted and unmounted), and a set of useful
  234. application files. It is intended as a starting point for developing a
  235. personal setup which fits your taste and requirements. Currently the following
  236. standard application groups are provided:
  237.  
  238. * Apps -- the main group. It contains entries for common applications, namely
  239.   a shell tool (xterm), two different editors (emacs and OpenLook textedit), a
  240.   mailtool (xmailtool), a calculator (xcalc), a manpage reader (xman), a DVI
  241.   previewer (xdvi), WWW and news readers (mosaic and xrn), and the printer
  242.   (lpr). The group also contains entries for loading the Toolbox, Graphics and
  243.   Hosts groups (see below). Two entries, Home and Root, are used to open a
  244.   window on your home and the root directory, respectively, while the sample A:
  245.   and B: entries will be used to open file windows on the corresponding disk
  246.   drives (you may have to edit these entries, as well as the xfmdev file, to
  247.   reflect your system setup). The Trash entry implements a simple trashcan
  248.   feature using GNU mv (see TRASHCAN, below).
  249.  
  250. * Toolbox -- a collection of common utilities. It contains entries for
  251.   starting up a debugger (xxgdb), make (dropping a makefile prompts you for the
  252.   target), and various archiving and compression utilities. Furthermore, it
  253.   provides an interface to the grep and find utilities (you might wish to
  254.   replace these by appropriate X utilities if you have them available).
  255.  
  256. * Graphics -- graphics utilities. The standard setup includes entries for
  257.   ghostview, xfig, xv, xpaint, xbmbrowser, bitmap and pixmap.
  258.  
  259. * Hosts -- access to the network. This group contains two sample entries, one
  260.   for invoking a remote xterm in your local network (you should edit this entry
  261.   to specify a hostname), and one for opening an ftp connection to ftp.x.org.
  262.  
  263. You should inspect the entries in the application groups as well as the xfmrc
  264. file to find out exactly which push and drop actions are implemented.
  265.  
  266. Contributions are always welcome. If you have any nifty icons or interesting
  267. entries for the magic, xfmrc and application files, please send them to me so
  268. that I can include them in future releases.
  269.  
  270.  
  271. TRASHCAN
  272. --------
  273.  
  274. As I already mentioned, the standard setup includes a simple but useful
  275. trashcan feature. The corresponding line in the Apps applications file reads
  276. as follows:
  277.  
  278. Trash::.trash:trash.xpm:OPEN:shift; mv -f -b -V numbered $* ~/.trash
  279.  
  280. This line causes xfm to open a new window on the trashcan directory (.trash in
  281. the user's home directory) when double-clicking on the trashcan icon in the
  282. application window. This allows you to empty the trashcan, restore files,
  283. etc., by employing xfm's usual move/copy/delete operations. The second action
  284. is invoked when a collection of selected files is dropped onto the trashcan
  285. icon; it moves the selected files to the .trash directory. The "-b -V
  286. numbered" options of GNU mv are used to create numbered backup copies of files
  287. already present in .trash, instead of simply overwriting them. If you don't
  288. have GNU mv, you can omit these options (be aware that then files in .trash
  289. will be overwritten without notice) or replace the mv command with a shell
  290. script which creates the necessary backup copies before it invokes mv.
  291.  
  292.  
  293. Enjoy!
  294.  
  295. Albert Graef
  296. ag@muwiinfa.geschichte.uni-mainz.de
  297.