Logo Search packages:      
Sourcecode: lfm version File versions  Download package

__init__.py

# -*- coding: iso-8859-15 -*-

"""
Copyright (C) 2001-4, Iņigo Serna <inigoserna@telefonica.net>.
All rights reserved.

This software has been realised under the GPL License, see the COPYING
file that comes with this package. There is NO WARRANTY.

'Last File Manager' is (tries to be) a simple 'midnight commander'-type
application for UNIX console.
"""


##################################################
##################################################
AUTHOR = 'Iņigo Serna'
VERSION = '0.91'
DATE = '2001-4'

LFM_NAME = 'lfm - Last File Manager'
PYVIEW_NAME = 'pyview'

PREFSFILE = '.lfmrc'


##################################################
##### lfm
app = None

# defaultprogs = { 'shell': ('bash', 'ksh', 'tcsh', 'csh', 'sh'),
#                  'pager': ('pyview', 'less', 'more', 'biew'),
#                  'editor': ('mcedit', 'emacs', 'vi', 'joe'),
#                  'find': ('find', ),
#                  'egrep': ('egrep', 'grep'),
#                  'tar': ('tar', ),
#                  'gzip': ('gzip', ),
#                  'bzip2': ('bzip2', ),
#                  'zip': ('zip', ),
#                  'unzip': ('unzip', ),
#                  'web': ('galeon', 'mozilla', 'netscape', 'lynx', 'opera'),
#                  'ogg': ('ogg123', ),
#                  'mp3': ('mpg123', ),
#                  'audio': ('esdplay', 'play', ),
#                  'video': ('mplayer', 'xanim', 'aviplay'),
#                  'graphics': ('ee', 'eog', 'gthumb', 'xv', 'gimp'),
#                  'pdf' :('acroread', 'ggv', 'xpdf'),
#                  'ps': ('ggv', 'gv'),
#                  'tururu': ('tururu', 'sdfdsf', 'just to test') }
defaultprogs = { 'shell': 'bash',
                 'pager': 'pyview',
                 'editor': 'mcedit',
                 'find': 'find',
                 'egrep': 'egrep',
                 'tar': 'tar',
                 'gzip': 'gzip',
                 'bzip2': 'bzip2',
                 'zip': 'zip',
                 'unzip': 'unzip',
                 'web': 'galeon',
                 'ogg': 'ogg123',
                 'mp3': 'mpg123',
                 'audio': 'esdplay',
                 'video': 'mplayer',
                 'graphics': 'gthumb',
                 'pdf': 'gpdf',
                 'ps': 'ggv' }

filetypes = { 'web': ('html', 'htm'),
              'ogg': ('ogg', ),
              'mp3': ('mp3', ),
              'audio': ('wav', 'au', 'midi'),
              'video': ('mpeg', 'mpg', 'avi', 'asf'),
              'graphics': ('png', 'jpeg', 'jpg', 'gif', 'tiff', 'tif', 'xpm'),
              'pdf': ('pdf', ),
              'ps': ('ps', ) }


##################################################
##### pyview
MODE_TEXT, MODE_HEX = 0, 1
PYVIEW_README = """
    %s is a pager (viewer) written in Python.
Though  initially it was written to be used with 'lfm',
it can be used standalone too.
Since version 0.9 it can read from standard input too
(eg. $ ps efax | pyview)

This software has been realised under the GPL License,
see the COPYING file that comes with this package.
There is NO WARRANTY.

Keys:
=====
+ Movement
    - cursor_up, p, P
    - cursor_down, n, N
    - previous page, backspace, Ctrl-P
    - next page, space, Ctrl-N
    - home: first line
    - end: last line
    - cursor_left
    - cursor_right

+ Actions
    - h, H, F1: help
    - w, W, F2: toggle un / wrap (only in text mode)
    - m, M, F4: toggle text / hex mode
    - g, G, F5: goto line / byte offset
    - /: find (new search)
    - F6: find previous or find
    - F7: find next or find
    - 0..9: go to bookmark #
    - b, B: set bookmark #
    - Ctrl-O: open shell 'sh'. Type 'exit' to return to pyview
    - q, Q, x, X, F3, F10: exit

Goto Line / Byte Offset
=======================
    Enter the line number / byte offset you want to show.
If number / byte is preceded by '0x' it is interpreted as hexadecimal.
You can scroll relative lines from the current position using '+' or '-' 
character.

Find
====
    Type the string to search. It ignores case.
""" % PYVIEW_NAME

##################################################
##################################################

Generated by  Doxygen 1.6.0   Back to index