1 # Copyright (C) 2009, 2010, 2011 Roman Zimbelmann <romanz@lavabit.com>
3 # This program is free software: you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation, either version 3 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 A console file manager with VI key bindings.
19 It provides a minimalistic and nice curses interface with a view on the
20 directory hierarchy. The secondary task of ranger is to figure out which
21 program you want to use to open your files with.
29 __author__
= __maintainer__
= 'Roman Zimbelmann'
30 __email__
= 'romanz@lavabit.com'
33 RANGERDIR
= os
.path
.dirname(__file__
)
34 TICKS_BEFORE_COLLECTING_GARBAGE
= 100
35 TIME_BEFORE_FILE_BECOMES_GARBAGE
= 1200
37 LOGFILE
= '/tmp/ranger_errorlog'
38 USAGE
= '%prog [options] [path/filename]'
41 # If the environment variable XDG_CONFIG_HOME is non-empty, CONFDIR is ignored
42 # and the configuration directory will be $XDG_CONFIG_HOME/ranger instead.
43 CONFDIR
= '~/.config/ranger'
45 from ranger
.core
.main
import main