diff options
67 files changed, 677 insertions, 999 deletions
diff --git a/README b/README index 96b7e53e..6e386635 100644 --- a/README +++ b/README @@ -1,154 +1,86 @@ Ranger v.1.0.4 ============== -Ranger +Ranger is a console file manager with fast and straightforward navigation. +By efficiently using the screen space, it gives you a broad overview of +your file system. Ranger's hotkeys are similar to those of other common +unix programs such as VIM, Emacs and Midnight Commander, though it's +controllable with Arrow Keys just fine. - A keeper, guardian, or soldier who ranges over a region - to protect the area or enforce the law. - -This is the filemanager Chuck Norris the Texas Ranger would use -if he had a computer with a unix-like operating system. (He doesn't -trust computers though and prefers to do the calculations himself.) - -After all, as a professional ranger, he needs a broad overview of his -territory, and the multi-column display of ranger provides just that, -rather than restricting you to the current directory only. -You can preview the content of the selected file or directory, copy or move -files around with the VIM-like commands dd and yy, execute predefined -applications when opening a file, etc... - -Everything is fully customizable and written in Python (2.6 and 3.1 -compatible) using curses for the text-based user interface. +The program is written in Python (2.6 or 3.1) and uses curses for the +text-based user interface. About ----- -* Author: Roman Zimbelmann -* Email: romanz@lavabit.com +* Author: Roman Zimbelmann <romanz@lavabit.com> * Website: http://savannah.nongnu.org/projects/ranger -* Git repo: http://git.savannah.gnu.org/cgit/ranger.git +* Dependencies: Unix-like OS, Python 2.6 or 3.1 +* License: GNU General Public License Version 3 * Version: 1.0.4 +* Download URL of the newest stable version: +http://git.savannah.gnu.org/cgit/ranger.git/snapshot/ranger-stable.tar.gz + +* Git Clone URL: +git clone http://git.sv.gnu.org/r/ranger.git + Features -------- -* Multi-column display +* Multi-column display (Miller Columns) * Preview of the selected file/directory * Common file operations (create/chmod/copy/delete/...) -* Quickly find files or text inside files * VIM-like console and hotkeys -* Open files in external programs -* Mouse support +* Automatically determine file types and run them with correct programs * Change the directory of your shell after exiting ranger -* Bookmarks - - -Dependencies ------------- - -* A Unix-like Operating System -* Python 2.6 or 3.1 -* Python curses module (often but not always included with Python) - - -Bugs and Feature Requests -------------------------- - -Report bugs and feature requests on savannah: - https://savannah.nongnu.org/bugs/?func=additem&group=ranger - -Alternatively you can send an email to romanz@lavabit.com. - -Please include as much relevant information as possible. -Using ranger with the --debug option will abort the program and -print tracebacks rather than a red message in the statusbar. -If this applies to you, please include such a traceback in your report. +* Tabs, Bookmarks, Mouse support Getting Started --------------- -If you just want to check out ranger without installing it, type - - ./ranger.py --clean - -in the top directory of ranger. By using the --clean switch, it will -leave no trace on your system whatsoever. - -To properly install it, follow the instructions in the INSTALL file, -then type: +Ranger can be started without installing. Just run the executable (in +a terminal.) The switch "--clean" will prevent it from creating or +accessing configuration files. - ranger +Follow the instructions in the INSTALL file for installing ranger. -You should see 4 columns. The third is the directory where you are at -the moment. To the left, there are the directories above the current -working directory, and the column on the right is a preview of the selected -file/directory. +After starting ranger, you should see 4 columns. The third one is the main +column, the directory where you're currently at. To the left you see the +parent directories and to the right there's a preview of the object you're +pointing at. Now use the Arrow Keys to navigate, Enter to open a file +or type Q to quit. -Now use the arrow keys to navigate, press enter to open a file. +To customize ranger, copy the files from ranger/defaults/ to ~/.ranger/ +and modify them according to your wishes. -A list of commands with short descriptions can be viewed by -pressing "?" inside the program and following the instructions. -The file ranger/defaults/keys.py contains all key combinations, so that's -another place you may want to check out. - - -Opening Files with Ranger -------------------------- - -If you use the same applications like me, you'll be able to open -files by pressing the right arrow key. If not, you will have to -specify them in ranger/defaults/apps.py. It's explained -in the docstrings how exactly to do that. - -Once you've set up your applications, you can also use ranger to -open files from the shell: - ranger blabla.pdf - - -Customizing Ranger ------------------- -The file ranger/defaults/options.py contains most of the options. -apps.py defines how files are run, keys.py defines keybindings. +Troubleshooting, Getting Help +----------------------------- -The files in ranger/defaults/ can be copied into ~/.ranger/ for per-user -modifications. Colorschemes can be placed in ~/.ranger/colorschemes. +If you encounter an error, try running ranger with --debug. This will +sometimes display more detailed information about the error. Also, try +deactivating optimization: -The configuration files should be self-explanatory. If you need more -information, check out the source code. +PYTHONOPTIMIZE="" ranger --debug -Also, see the file HACKING for more detailed instructions on -modifying the program. +Report bugs on savannah: (please include as much information as possible) +http://savannah.nongnu.org/bugs/?func=additem&group=ranger +Ask questions on the mailing list: +http://lists.nongnu.org/mailman/listinfo/ranger-users -Roadmap -------- -Short term: - -* Performance improvements everywhere -* Simplification of the code - -Long term: - -* A plugin system -* Separate ranger into multiple programs: - 1. One daemon running in the background for slow IO operations - 2. A file launcher (ideally an already existing one) - 3. The actual program containing unseparable parts - - -Tips ----- +Further Reading +--------------- -Change the directory of your parent shell when you exit ranger: +Check the man page for information on common features and hotkeys. -ranger() { - command ranger --fail-if-run $@ && - cd "$(grep \^\' ~/.ranger/bookmarks | cut -b3-)" -} +The most detailed manual is accessible by pressing "?" from inside ranger. +It is also available at ranger/help/, contained in the *.py files. -This can be put into your ~/.bashrc or something similar. +The file ranger/defaults/keys.py contains all key combinations, so that's +another place you may want to check out. diff --git a/TODO b/TODO index b52c6928..84ecc811 100644 --- a/TODO +++ b/TODO @@ -55,6 +55,9 @@ General (X) #83 10/04/19 better ways to mark files. eg by regexp, filetype,.. ( ) #86 10/04/21 narg for move_parent ( ) #60 10/02/05 utf support improvable + ( ) #91 10/05/12 in keys.py, fm.move(right=N) should run with mode=N + ( ) #92 10/05/14 allow to enter the realpath of a directory + ( ) #93 10/05/15 pause after running program Bugs @@ -81,6 +84,9 @@ Bugs (X) #74 10/03/21 console doesn't scroll (X) #78 10/03/31 broken preview when deleting all files in a directory (X) #85 10/04/26 no automatic reload of directory after using :filter + ( ) #87 10/05/10 files are not properly closed after previewing + ( ) #88 10/05/10 race conditions for data loading from FS + (X) #90 10/05/11 no link target for broken links Ideas @@ -95,7 +101,6 @@ Ideas (X) #53 10/01/23 merge fm and environment won't do this (X) #68 10/03/10 threads, to seperate ui and loading - won't do this ( ) #72 10/03/21 ranger daemon which does the slow io tasks ( ) #75 10/03/28 navigate in history @@ -103,6 +108,7 @@ Ideas (X) #77 10/03/28 colorscheme overlay in options.py ( ) #82 10/04/19 :s command for batch renaming ( ) #84 10/04/25 use pygments for syntax highlighting + ( ) #89 10/05/10 branch view Blocking diff --git a/doc/pydoc/ranger.__main__.html b/doc/pydoc/ranger.__main__.html index 52cd201e..a30e6ffa 100644 --- a/doc/pydoc/ranger.__main__.html +++ b/doc/pydoc/ranger.__main__.html @@ -1,14 +1,14 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.__main__</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> <tr bgcolor="#7799ee"> <td valign=bottom> <br> -<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.__main__</strong></big></big> (version 1.0.4)</font></td +<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.__main__</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/__main__.py">/home/hut/ranger/ranger/__main__.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/__main__.py">/home/hut/code/ranger/ranger/__main__.py</a></font></td></tr></table> <p><tt># coding=utf-8<br> #<br> # Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> @@ -32,40 +32,19 @@ <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> -<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="ranger.ext.curses_interrupt_handler.html">ranger.ext.curses_interrupt_handler</a><br> -</td><td width="25%" valign=top><a href="os.html">os</a><br> -</td><td width="25%" valign=top><a href="ranger.html">ranger</a><br> +<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="os.html">os</a><br> </td><td width="25%" valign=top><a href="sys.html">sys</a><br> -</td></tr></table></td></tr></table><p> +</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#eeaa77"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> <tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> -<td width="100%"><dl><dt><a name="-load_settings"><strong>load_settings</strong></a>(fm, clean)</dt></dl> +<td width="100%"><dl><dt><a name="-allow_access_to_confdir"><strong>allow_access_to_confdir</strong></a>(confdir, allow)</dt></dl> + <dl><dt><a name="-load_apps"><strong>load_apps</strong></a>(fm, clean)</dt></dl> + <dl><dt><a name="-load_settings"><strong>load_settings</strong></a>(fm, clean)</dt></dl> <dl><dt><a name="-main"><strong>main</strong></a>()</dt><dd><tt>initialize objects and run the filemanager</tt></dd></dl> <dl><dt><a name="-parse_arguments"><strong>parse_arguments</strong></a>()</dt><dd><tt>Parse the program arguments</tt></dd></dl> - <dl><dt><a name="-signal"><strong>signal</strong></a>(...)</dt><dd><tt><a href="#-signal">signal</a>(sig, action) -> action<br> - <br> -Set the action for the given signal. The action can be SIG_DFL,<br> -SIG_IGN, or a callable Python object. The previous action is<br> -returned. See getsignal() for possible return values.<br> - <br> -*** IMPORTANT NOTICE ***<br> -A signal handler function is called with two arguments:<br> -the first is the signal number, the second is the interrupted stack frame.</tt></dd></dl> -</td></tr></table><p> -<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> -<tr bgcolor="#55aa55"> -<td colspan=3 valign=bottom> <br> -<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> - -<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> -<td width="100%"><strong>DEFAULT_CONFDIR</strong> = '~/.ranger'<br> -<strong>LC_ALL</strong> = 6<br> -<strong>SIGINT</strong> = 2<br> -<strong>SUPPRESS_HELP</strong> = 'SUPPRESSHELP'<br> -<strong>USAGE</strong> = '%prog [options] [path/filename]'<br> -<strong>__version__</strong> = '1.0.4'</td></tr></table> +</td></tr></table> </body></html> \ No newline at end of file diff --git a/doc/pydoc/ranger.colorschemes.default.html b/doc/pydoc/ranger.colorschemes.default.html index 23173585..93bc1c56 100644 --- a/doc/pydoc/ranger.colorschemes.default.html +++ b/doc/pydoc/ranger.colorschemes.default.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.colorschemes.default</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.colorschemes.html"><font color="#ffffff">colorschemes</font></a>.default</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/colorschemes/default.py">/home/hut/ranger/ranger/colorschemes/default.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/colorschemes/default.py">/home/hut/code/ranger/ranger/colorschemes/default.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> @@ -57,7 +57,7 @@ <dd><a href="ranger.colorschemes.default.html#Default">Default</a></dd> <dd><a href="ranger.gui.colorscheme.html#ColorScheme">ranger.gui.colorscheme.ColorScheme</a></dd> <dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> diff --git a/doc/pydoc/ranger.colorschemes.html b/doc/pydoc/ranger.colorschemes.html index 5dcb0f83..966e9978 100644 --- a/doc/pydoc/ranger.colorschemes.html +++ b/doc/pydoc/ranger.colorschemes.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: package ranger.colorschemes</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.colorschemes</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/colorschemes/__init__.py">/home/hut/ranger/ranger/colorschemes/__init__.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/colorschemes/__init__.py">/home/hut/code/ranger/ranger/colorschemes/__init__.py</a></font></td></tr></table> <p><tt>Colorschemes are required to be located here or in CONFDIR/colorschemes/</tt></p> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> @@ -20,7 +20,8 @@ <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="ranger.colorschemes.default.html">default</a><br> <a href="ranger.colorschemes.default88.html">default88</a><br> </td><td width="25%" valign=top><a href="ranger.colorschemes.jungle.html">jungle</a><br> -<a href="ranger.colorschemes.snow.html">snow</a><br> -</td><td width="25%" valign=top><a href="ranger.colorschemes.texas.html">texas</a><br> +<a href="ranger.colorschemes.plain.html">plain</a><br> +</td><td width="25%" valign=top><a href="ranger.colorschemes.snow.html">snow</a><br> +<a href="ranger.colorschemes.texas.html">texas</a><br> </td><td width="25%" valign=top></td></tr></table></td></tr></table> </body></html> \ No newline at end of file diff --git a/doc/pydoc/ranger.colorschemes.jungle.html b/doc/pydoc/ranger.colorschemes.jungle.html index c5a919a6..a07d605a 100644 --- a/doc/pydoc/ranger.colorschemes.jungle.html +++ b/doc/pydoc/ranger.colorschemes.jungle.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.colorschemes.jungle</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.colorschemes.html"><font color="#ffffff">colorschemes</font></a>.jungle</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/colorschemes/jungle.py">/home/hut/ranger/ranger/colorschemes/jungle.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/colorschemes/jungle.py">/home/hut/code/ranger/ranger/colorschemes/jungle.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> @@ -58,7 +58,7 @@ <dd><a href="ranger.colorschemes.default.html#Default">ranger.colorschemes.default.Default</a></dd> <dd><a href="ranger.gui.colorscheme.html#ColorScheme">ranger.gui.colorscheme.ColorScheme</a></dd> <dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> diff --git a/doc/pydoc/ranger.colorschemes.snow.html b/doc/pydoc/ranger.colorschemes.snow.html index 3d7b77b4..44b06cce 100644 --- a/doc/pydoc/ranger.colorschemes.snow.html +++ b/doc/pydoc/ranger.colorschemes.snow.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.colorschemes.snow</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.colorschemes.html"><font color="#ffffff">colorschemes</font></a>.snow</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/colorschemes/snow.py">/home/hut/ranger/ranger/colorschemes/snow.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/colorschemes/snow.py">/home/hut/code/ranger/ranger/colorschemes/snow.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> @@ -57,7 +57,7 @@ <dd><a href="ranger.colorschemes.snow.html#Snow">Snow</a></dd> <dd><a href="ranger.gui.colorscheme.html#ColorScheme">ranger.gui.colorscheme.ColorScheme</a></dd> <dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> diff --git a/doc/pydoc/ranger.container.bookmarks.html b/doc/pydoc/ranger.container.bookmarks.html index 2868a5ae..8ab685da 100644 --- a/doc/pydoc/ranger.container.bookmarks.html +++ b/doc/pydoc/ranger.container.bookmarks.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.container.bookmarks</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.container.html"><font color="#ffffff">container</font></a>.bookmarks</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/container/bookmarks.py">/home/hut/ranger/ranger/container/bookmarks.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/container/bookmarks.py">/home/hut/code/ranger/ranger/container/bookmarks.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> @@ -41,7 +41,7 @@ <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> <td width="100%"><dl> -<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> +<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a> </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="ranger.container.bookmarks.html#Bookmarks">Bookmarks</a> @@ -52,14 +52,14 @@ <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="Bookmarks">class <strong>Bookmarks</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> +<font color="#000000" face="helvetica, arial"><a name="Bookmarks">class <strong>Bookmarks</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr> <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> <td colspan=2><tt><a href="#Bookmarks">Bookmarks</a> is a container which associates keys with bookmarks.<br> <br> A key is a string with: len(key) == 1 and key in ALLOWED_KEYS.<br> <br> -A bookmark is an <a href="__builtin__.html#object">object</a> with: bookmark == bookmarktype(str(instance))<br> +A bookmark is an <a href="builtins.html#object">object</a> with: bookmark == bookmarktype(str(instance))<br> Which is true for str or FileSystemObject. This condition is required<br> so bookmark-objects can be saved to and loaded from a file.<br> <br> @@ -70,7 +70,7 @@ Optionally, a bookmark.go() method is used for&nbs <dl><dt><a name="Bookmarks-__getitem__"><strong>__getitem__</strong></a>(self, key)</dt><dd><tt>Get the bookmark associated with the key</tt></dd></dl> -<dl><dt><a name="Bookmarks-__init__"><strong>__init__</strong></a>(self, bookmarkfile, bookmarktype<font color="#909090">=<type 'str'></font>, autosave<font color="#909090">=False</font>)</dt><dd><tt><bookmarkfile> specifies the path to the file where<br> +<dl><dt><a name="Bookmarks-__init__"><strong>__init__</strong></a>(self, bookmarkfile, bookmarktype<font color="#909090">=<class 'str'></font>, autosave<font color="#909090">=False</font>)</dt><dd><tt><bookmarkfile> specifies the path to the file where<br> bookmarks are saved in.</tt></dd></dl> <dl><dt><a name="Bookmarks-__iter__"><strong>__iter__</strong></a>(self)</dt></dl> diff --git a/doc/pydoc/ranger.container.history.html b/doc/pydoc/ranger.container.history.html index 5a98f7ec..f1e804cf 100644 --- a/doc/pydoc/ranger.container.history.html +++ b/doc/pydoc/ranger.container.history.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.container.history</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.container.html"><font color="#ffffff">container</font></a>.history</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/container/history.py">/home/hut/ranger/ranger/container/history.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/container/history.py">/home/hut/code/ranger/ranger/container/history.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> @@ -31,16 +31,16 @@ <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> <td width="100%"><dl> -<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> +<dt><font face="helvetica, arial"><a href="builtins.html#Exception">builtins.Exception</a>(<a href="builtins.html#BaseException">builtins.BaseException</a>) </font></dt><dd> <dl> -<dt><font face="helvetica, arial"><a href="ranger.container.history.html#History">History</a> +<dt><font face="helvetica, arial"><a href="ranger.container.history.html#HistoryEmptyException">HistoryEmptyException</a> </font></dt></dl> </dd> -<dt><font face="helvetica, arial"><a href="exceptions.html#Exception">exceptions.Exception</a>(<a href="exceptions.html#BaseException">exceptions.BaseException</a>) +<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a> </font></dt><dd> <dl> -<dt><font face="helvetica, arial"><a href="ranger.container.history.html#HistoryEmptyException">HistoryEmptyException</a> +<dt><font face="helvetica, arial"><a href="ranger.container.history.html#History">History</a> </font></dt></dl> </dd> </dl> @@ -48,7 +48,7 @@ <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="History">class <strong>History</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> +<font color="#000000" face="helvetica, arial"><a name="History">class <strong>History</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr> <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> <td width="100%">Methods defined here:<br> @@ -90,14 +90,14 @@ Data descriptors defined here:<br> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="HistoryEmptyException">class <strong>HistoryEmptyException</strong></a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)</font></td></tr> +<font color="#000000" face="helvetica, arial"><a name="HistoryEmptyException">class <strong>HistoryEmptyException</strong></a>(<a href="builtins.html#Exception">builtins.Exception</a>)</font></td></tr> <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> <td width="100%"><dl><dt>Method resolution order:</dt> <dd><a href="ranger.container.history.html#HistoryEmptyException">HistoryEmptyException</a></dd> -<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd> -<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#Exception">builtins.Exception</a></dd> +<dd><a href="builtins.html#BaseException">builtins.BaseException</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Data descriptors defined here:<br> @@ -105,25 +105,19 @@ Data descriptors defined here:<br> <dd><tt>list of weak references to the object (if defined)</tt></dd> </dl> <hr> -Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> +Methods inherited from <a href="builtins.html#Exception">builtins.Exception</a>:<br> <dl><dt><a name="HistoryEmptyException-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#HistoryEmptyException-__init__">__init__</a>(...) initializes x; see x.__class__.__doc__ for signature</tt></dd></dl> <hr> -Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> -<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#HistoryEmptyException-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl> +Data and other attributes inherited from <a href="builtins.html#Exception">builtins.Exception</a>:<br> +<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#HistoryEmptyException-__new__">__new__</a>(S, ...) -> a new <a href="builtins.html#object">object</a> with type S, a subtype of T</tt></dl> <hr> -Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> +Methods inherited from <a href="builtins.html#BaseException">builtins.BaseException</a>:<br> <dl><dt><a name="HistoryEmptyException-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#HistoryEmptyException-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl> <dl><dt><a name="HistoryEmptyException-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#HistoryEmptyException-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl> -<dl><dt><a name="HistoryEmptyException-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#HistoryEmptyException-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl> - -<dl><dt><a name="HistoryEmptyException-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#HistoryEmptyException-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br> - <br> -Use of negative indices is not supported.</tt></dd></dl> - <dl><dt><a name="HistoryEmptyException-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl> <dl><dt><a name="HistoryEmptyException-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#HistoryEmptyException-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl> @@ -134,15 +128,22 @@ Use of negative indices is not supported.</tt></dd <dl><dt><a name="HistoryEmptyException-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#HistoryEmptyException-__str__">__str__</a>() <==> str(x)</tt></dd></dl> -<dl><dt><a name="HistoryEmptyException-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl> +<dl><dt><a name="HistoryEmptyException-with_traceback"><strong>with_traceback</strong></a>(...)</dt><dd><tt><a href="builtins.html#Exception">Exception</a>.<a href="#HistoryEmptyException-with_traceback">with_traceback</a>(tb) --<br> +set self.<strong>__traceback__</strong> to tb and return self.</tt></dd></dl> <hr> -Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> +Data descriptors inherited from <a href="builtins.html#BaseException">builtins.BaseException</a>:<br> +<dl><dt><strong>__cause__</strong></dt> +<dd><tt>exception cause</tt></dd> +</dl> +<dl><dt><strong>__context__</strong></dt> +<dd><tt>exception context</tt></dd> +</dl> <dl><dt><strong>__dict__</strong></dt> </dl> -<dl><dt><strong>args</strong></dt> +<dl><dt><strong>__traceback__</strong></dt> </dl> -<dl><dt><strong>message</strong></dt> +<dl><dt><strong>args</strong></dt> </dl> </td></tr></table></td></tr></table> </body></html> \ No newline at end of file diff --git a/doc/pydoc/ranger.container.html b/doc/pydoc/ranger.container.html index 4957d18a..28cd9e85 100644 --- a/doc/pydoc/ranger.container.html +++ b/doc/pydoc/ranger.container.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: package ranger.container</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.container</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/container/__init__.py">/home/hut/ranger/ranger/container/__init__.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/container/__init__.py">/home/hut/code/ranger/ranger/container/__init__.py</a></font></td></tr></table> <p><tt>This package includes container-objects which are<br> used to manage stored data</tt></p> <p> diff --git a/doc/pydoc/ranger.container.keybuffer.html b/doc/pydoc/ranger.container.keybuffer.html index c3f30471..e8d37991 100644 --- a/doc/pydoc/ranger.container.keybuffer.html +++ b/doc/pydoc/ranger.container.keybuffer.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.container.keybuffer</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.container.html"><font color="#ffffff">container</font></a>.keybuffer</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/container/keybuffer.py">/home/hut/ranger/ranger/container/keybuffer.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/container/keybuffer.py">/home/hut/code/ranger/ranger/container/keybuffer.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> @@ -39,7 +39,7 @@ <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> <td width="100%"><dl> -<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> +<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a> </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="ranger.container.keybuffer.html#KeyBuffer">KeyBuffer</a> @@ -50,7 +50,7 @@ <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="KeyBuffer">class <strong>KeyBuffer</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> +<font color="#000000" face="helvetica, arial"><a name="KeyBuffer">class <strong>KeyBuffer</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr> <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> <td colspan=2><tt>The evaluator and storage for pressed keys<br> </tt></td></tr> diff --git a/doc/pydoc/ranger.container.tags.html b/doc/pydoc/ranger.container.tags.html index 9f3ff6e8..23fba0b3 100644 --- a/doc/pydoc/ranger.container.tags.html +++ b/doc/pydoc/ranger.container.tags.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.container.tags</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.container.html"><font color="#ffffff">container</font></a>.tags</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/container/tags.py">/home/hut/ranger/ranger/container/tags.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/container/tags.py">/home/hut/code/ranger/ranger/container/tags.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> @@ -31,7 +31,7 @@ <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> <td width="100%"><dl> -<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> +<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a> </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="ranger.container.tags.html#Tags">Tags</a> @@ -42,7 +42,7 @@ <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="Tags">class <strong>Tags</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> +<font color="#000000" face="helvetica, arial"><a name="Tags">class <strong>Tags</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr> <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> <td width="100%">Methods defined here:<br> diff --git a/doc/pydoc/ranger.defaults.apps.html b/doc/pydoc/ranger.defaults.apps.html index 4f38da10..fb820921 100644 --- a/doc/pydoc/ranger.defaults.apps.html +++ b/doc/pydoc/ranger.defaults.apps.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.defaults.apps</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.defaults.html"><font color="#ffffff">defaults</font></a>.apps</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/defaults/apps.py">/home/hut/ranger/ranger/defaults/apps.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/defaults/apps.py">/home/hut/code/ranger/ranger/defaults/apps.py</a></font></td></tr></table> <p><tt>This is the default ranger configuration file for filetype detection<br> and application handling.<br> <br> @@ -30,10 +30,11 @@ This example modifies the behaviour of "feh" return tup('feh', '-F', *c)<br> <br> def app_default(self, c):<br> - if c.file.video or c.file.audio:<br> + f = c.file #shortcut<br> + if f.video or f.audio:<br> return app_kaffeine(c)<br> <br> - if c.file.image and c.mode == 0:<br> + if f.image and c.mode == 0:<br> return app_feh_fullscreen_by_default(c)<br> <br> return DefaultApps.app_default(self, c)<br> @@ -45,11 +46,10 @@ This example modifies the behaviour of "feh" <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> -<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="ranger.api.commands.html">ranger.api.commands</a><br> -</td><td width="25%" valign=top><a href="os.html">os</a><br> +<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="os.html">os</a><br> </td><td width="25%" valign=top><a href="re.html">re</a><br> </td><td width="25%" valign=top><a href="sys.html">sys</a><br> -</td></tr></table></td></tr></table><p> +</td><td width="25%" valign=top></td></tr></table></td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ee77aa"> <td colspan=3 valign=bottom> <br> @@ -76,11 +76,11 @@ This example modifies the behaviour of "feh" <dd><a href="ranger.api.apps.html#Applications">ranger.api.apps.Applications</a></dd> <dd><a href="ranger.shared.html#FileManagerAware">ranger.shared.FileManagerAware</a></dd> <dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> -<dl><dt><a name="CustomApplications-app_apvlv"><strong>app_apvlv</strong></a>(self, c)</dt></dl> +<dl><dt><strong>app_apvlv</strong> <em>lambda</em> self, context</dt></dl> <dl><dt><a name="CustomApplications-app_aunpack"><strong>app_aunpack</strong></a>(self, c)</dt></dl> @@ -90,43 +90,44 @@ Methods defined here:<br> <dl><dt><a name="CustomApplications-app_editor"><strong>app_editor</strong></a>(self, c)</dt></dl> -<dl><dt><a name="CustomApplications-app_elinks"><strong>app_elinks</strong></a>(self, c)</dt></dl> +<dl><dt><strong>app_elinks</strong> <em>lambda</em> self, context</dt></dl> -<dl><dt><a name="CustomApplications-app_evince"><strong>app_evince</strong></a>(self, c)</dt></dl> +<dl><dt><strong>app_eog</strong> <em>lambda</em> self, context</dt></dl> -<dl><dt><a name="CustomApplications-app_eye_of_gnome"><strong>app_eye_of_gnome</strong></a>(self, c)</dt></dl> +<dl><dt><strong>app_evince</strong> <em>lambda</em> self, context</dt></dl> -<dl><dt><a name="CustomApplications-app_fceux"><strong>app_fceux</strong></a>(self, c)</dt></dl> +<dl><dt><strong>app_fceux</strong> <em>lambda</em> self, context</dt></dl> <dl><dt><a name="CustomApplications-app_feh"><strong>app_feh</strong></a>(self, c)</dt></dl> -<dl><dt><a name="CustomApplications-app_firefox"><strong>app_firefox</strong></a>(self, c)</dt></dl> +<dl><dt><strong>app_firefox</strong> <em>lambda</em> self, context</dt></dl> -<dl><dt><a name="CustomApplications-app_gimp"><strong>app_gimp</strong></a>(self, c)</dt></dl> +<dl><dt><strong>app_gimp</strong> <em>lambda</em> self, context</dt></dl> <dl><dt><a name="CustomApplications-app_java"><strong>app_java</strong></a>(self, c)</dt></dl> -<dl><dt><a name="CustomApplications-app_javac"><strong>app_javac</strong></a>(self, c)</dt></dl> +<dl><dt><strong>app_javac</strong> <em>lambda</em> self, context</dt></dl> <dl><dt><a name="CustomApplications-app_make"><strong>app_make</strong></a>(self, c)</dt></dl> -<dl><dt><a name="CustomApplications-app_mirage"><strong>app_mirage</strong></a>(self, c)</dt></dl> +<dl><dt><strong>app_mirage</strong> <em>lambda</em> self, context</dt></dl> <dl><dt><a name="CustomApplications-app_mplayer"><strong>app_mplayer</strong></a>(self, c)</dt></dl> -<dl><dt><a name="CustomApplications-app_opera"><strong>app_opera</strong></a>(self, c)</dt></dl> +<dl><dt><strong>app_opera</strong> <em>lambda</em> self, context</dt></dl> -<dl><dt><a name="CustomApplications-app_pager"><strong>app_pager</strong></a>(self, c)</dt><dd><tt># ----------------------------------------- application definitions</tt></dd></dl> +<dl><dt><a name="CustomApplications-app_pager"><strong>app_pager</strong></a>(self, c)</dt><dd><tt># ----------------------------------------- application definitions<br> +# Note: Trivial applications are defined at the bottom</tt></dd></dl> <dl><dt><a name="CustomApplications-app_totem"><strong>app_totem</strong></a>(self, c)</dt></dl> -<dl><dt><a name="CustomApplications-app_vim"><strong>app_vim</strong></a>(self, c)</dt></dl> +<dl><dt><strong>app_vim</strong> <em>lambda</em> self, context</dt></dl> -<dl><dt><a name="CustomApplications-app_wine"><strong>app_wine</strong></a>(self, c)</dt></dl> +<dl><dt><strong>app_wine</strong> <em>lambda</em> self, context</dt></dl> -<dl><dt><a name="CustomApplications-app_zathura"><strong>app_zathura</strong></a>(self, c)</dt></dl> +<dl><dt><strong>app_zathura</strong> <em>lambda</em> self, context</dt></dl> -<dl><dt><a name="CustomApplications-app_zsnes"><strong>app_zsnes</strong></a>(self, c)</dt></dl> +<dl><dt><strong>app_zsnes</strong> <em>lambda</em> self, context</dt></dl> <hr> Methods inherited from <a href="ranger.api.apps.html#Applications">ranger.api.apps.Applications</a>:<br> @@ -143,6 +144,10 @@ Methods inherited from <a href="ranger.api.apps.html#Applications">ranger.api.ap <dl><dt><a name="CustomApplications-has"><strong>has</strong></a>(self, app)</dt><dd><tt>Returns whether an application is defined</tt></dd></dl> <hr> +Class methods inherited from <a href="ranger.api.apps.html#Applications">ranger.api.apps.Applications</a>:<br> +<dl><dt><a name="CustomApplications-generic"><strong>generic</strong></a>(cls, *args, **keywords)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt></dl> + +<hr> Data and other attributes inherited from <a href="ranger.shared.html#FileManagerAware">ranger.shared.FileManagerAware</a>:<br> <dl><dt><strong>fm</strong> = None</dl> diff --git a/doc/pydoc/ranger.defaults.html b/doc/pydoc/ranger.defaults.html index d0b18018..71de811b 100644 --- a/doc/pydoc/ranger.defaults.html +++ b/doc/pydoc/ranger.defaults.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: package ranger.defaults</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.defaults</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/defaults/__init__.py">/home/hut/ranger/ranger/defaults/__init__.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/defaults/__init__.py">/home/hut/code/ranger/ranger/defaults/__init__.py</a></font></td></tr></table> <p><tt>Default options and configration files</tt></p> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> diff --git a/doc/pydoc/ranger.defaults.options.html b/doc/pydoc/ranger.defaults.options.html index db0c9512..08736ab7 100644 --- a/doc/pydoc/ranger.defaults.options.html +++ b/doc/pydoc/ranger.defaults.options.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.defaults.options</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.defaults.html"><font color="#ffffff">defaults</font></a>.options</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/defaults/options.py">/home/hut/ranger/ranger/defaults/options.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/defaults/options.py">/home/hut/code/ranger/ranger/defaults/options.py</a></font></td></tr></table> <p><tt>This is the default configuration file of ranger.<br> <br> There are two ways of customizing ranger. The first and recommended<br> @@ -31,12 +31,11 @@ of the values stay the same.</tt></p> <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> -<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="ranger.colorschemes.html">ranger.colorschemes</a><br> -<a href="ranger.api.apps.html">ranger.api.apps</a><br> -</td><td width="25%" valign=top><a href="ranger.gui.color.html">ranger.gui.color</a><br> -<a href="ranger.api.commands.html">ranger.api.commands</a><br> -</td><td width="25%" valign=top><a href="ranger.api.keys.html">ranger.api.keys</a><br> -<a href="re.html">re</a><br> +<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="ranger.api.apps.html">ranger.api.apps</a><br> +<a href="ranger.gui.color.html">ranger.gui.color</a><br> +</td><td width="25%" valign=top><a href="ranger.api.commands.html">ranger.api.commands</a><br> +<a href="ranger.api.keys.html">ranger.api.keys</a><br> +</td><td width="25%" valign=top><a href="re.html">re</a><br> </td><td width="25%" valign=top></td></tr></table></td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#55aa55"> @@ -63,7 +62,7 @@ of the values stay the same.</tt></p> <strong>preview_directories</strong> = True<br> <strong>preview_files</strong> = True<br> <strong>save_console_history</strong> = True<br> -<strong>scroll_offset</strong> = 2<br> +<strong>scroll_offset</strong> = 8<br> <strong>shorten_title</strong> = 3<br> <strong>show_cursor</strong> = False<br> <strong>show_hidden</strong> = False<br> diff --git a/doc/pydoc/ranger.ext.accumulator.html b/doc/pydoc/ranger.ext.accumulator.html index e812c025..1a337e34 100644 --- a/doc/pydoc/ranger.ext.accumulator.html +++ b/doc/pydoc/ranger.ext.accumulator.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.ext.accumulator</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.ext.html"><font color="#ffffff">ext</font></a>.accumulator</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/ext/accumulator.py">/home/hut/ranger/ranger/ext/accumulator.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/ext/accumulator.py">/home/hut/code/ranger/ranger/ext/accumulator.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> @@ -31,7 +31,7 @@ <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> <td width="100%"><dl> -<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> +<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a> </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="ranger.ext.accumulator.html#Accumulator">Accumulator</a> @@ -42,13 +42,13 @@ <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="Accumulator">class <strong>Accumulator</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> +<font color="#000000" face="helvetica, arial"><a name="Accumulator">class <strong>Accumulator</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr> <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> <td width="100%">Methods defined here:<br> <dl><dt><a name="Accumulator-__init__"><strong>__init__</strong></a>(self)</dt></dl> -<dl><dt><a name="Accumulator-correct_pointer"><strong>correct_pointer</strong></a>(self)</dt></dl> +<dl><dt><a name="Accumulator-correct_pointer"><strong>correct_pointer</strong></a>(self)</dt><dd><tt># XXX Is this still necessary? <a href="#Accumulator-move">move</a>() ensures correct pointer position</tt></dd></dl> <dl><dt><a name="Accumulator-get_height"><strong>get_height</strong></a>(self)</dt><dd><tt>OVERRIDE THIS</tt></dd></dl> diff --git a/doc/pydoc/ranger.ext.command_parser.html b/doc/pydoc/ranger.ext.command_parser.html index 4944b924..e5066056 100644 --- a/doc/pydoc/ranger.ext.command_parser.html +++ b/doc/pydoc/ranger.ext.command_parser.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.ext.command_parser</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.ext.html"><font color="#ffffff">ext</font></a>.command_parser</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/ext/command_parser.py">/home/hut/ranger/ranger/ext/command_parser.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/ext/command_parser.py">/home/hut/code/ranger/ranger/ext/command_parser.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> @@ -39,7 +39,7 @@ <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> <td width="100%"><dl> -<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> +<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a> </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="ranger.ext.command_parser.html#LazyParser">LazyParser</a> @@ -50,7 +50,7 @@ <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="LazyParser">class <strong>LazyParser</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> +<font color="#000000" face="helvetica, arial"><a name="LazyParser">class <strong>LazyParser</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr> <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> <td colspan=2><tt>Parse commands and extract information<br> </tt></td></tr> diff --git a/doc/pydoc/ranger.ext.html b/doc/pydoc/ranger.ext.html index 1191463c..afd5aeb2 100644 --- a/doc/pydoc/ranger.ext.html +++ b/doc/pydoc/ranger.ext.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: package ranger.ext</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.ext</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/ext/__init__.py">/home/hut/ranger/ranger/ext/__init__.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/ext/__init__.py">/home/hut/code/ranger/ranger/ext/__init__.py</a></font></td></tr></table> <p><tt>This package includes extensions with broader usability</tt></p> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> @@ -30,6 +30,7 @@ <a href="ranger.ext.shell_escape.html">shell_escape</a><br> <a href="ranger.ext.shutil_generatorized.html">shutil_generatorized</a><br> </td><td width="25%" valign=top><a href="ranger.ext.signal_dispatcher.html">signal_dispatcher</a><br> +<a href="ranger.ext.spawn.html">spawn</a><br> <a href="ranger.ext.tree.html">tree</a><br> <a href="ranger.ext.waitpid_no_intr.html">waitpid_no_intr</a><br> </td></tr></table></td></tr></table> diff --git a/doc/pydoc/ranger.ext.human_readable.html b/doc/pydoc/ranger.ext.human_readable.html index efcb6494..9391e3af 100644 --- a/doc/pydoc/ranger.ext.human_readable.html +++ b/doc/pydoc/ranger.ext.human_readable.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.ext.human_readable</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.ext.html"><font color="#ffffff">ext</font></a>.human_readable</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/ext/human_readable.py">/home/hut/ranger/ranger/ext/human_readable.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/ext/human_readable.py">/home/hut/code/ranger/ranger/ext/human_readable.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> diff --git a/doc/pydoc/ranger.ext.openstruct.html b/doc/pydoc/ranger.ext.openstruct.html index d4340807..17a6525f 100644 --- a/doc/pydoc/ranger.ext.openstruct.html +++ b/doc/pydoc/ranger.ext.openstruct.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.ext.openstruct</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.ext.html"><font color="#ffffff">ext</font></a>.openstruct</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/ext/openstruct.py">/home/hut/ranger/ranger/ext/openstruct.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/ext/openstruct.py">/home/hut/code/ranger/ranger/ext/openstruct.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> @@ -31,7 +31,7 @@ <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> <td width="100%"><dl> -<dt><font face="helvetica, arial"><a href="__builtin__.html#dict">__builtin__.dict</a>(<a href="__builtin__.html#object">__builtin__.object</a>) +<dt><font face="helvetica, arial"><a href="builtins.html#dict">builtins.dict</a>(<a href="builtins.html#object">builtins.object</a>) </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="ranger.ext.openstruct.html#OpenStruct">OpenStruct</a> @@ -42,15 +42,15 @@ <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="OpenStruct">class <strong>OpenStruct</strong></a>(<a href="__builtin__.html#dict">__builtin__.dict</a>)</font></td></tr> +<font color="#000000" face="helvetica, arial"><a name="OpenStruct">class <strong>OpenStruct</strong></a>(<a href="builtins.html#dict">builtins.dict</a>)</font></td></tr> <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> -<td colspan=2><tt>The fusion of <a href="__builtin__.html#dict">dict</a> and struct<br> </tt></td></tr> +<td colspan=2><tt>The fusion of <a href="builtins.html#dict">dict</a> and struct<br> </tt></td></tr> <tr><td> </td> <td width="100%"><dl><dt>Method resolution order:</dt> <dd><a href="ranger.ext.openstruct.html#OpenStruct">OpenStruct</a></dd> -<dd><a href="__builtin__.html#dict">__builtin__.dict</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#dict">builtins.dict</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> @@ -65,9 +65,7 @@ Data descriptors defined here:<br> <dd><tt>list of weak references to the object (if defined)</tt></dd> </dl> <hr> -Methods inherited from <a href="__builtin__.html#dict">__builtin__.dict</a>:<br> -<dl><dt><a name="OpenStruct-__cmp__"><strong>__cmp__</strong></a>(...)</dt><dd><tt>x.<a href="#OpenStruct-__cmp__">__cmp__</a>(y) <==> cmp(x,y)</tt></dd></dl> - +Methods inherited from <a href="builtins.html#dict">builtins.dict</a>:<br> <dl><dt><a name="OpenStruct-__contains__"><strong>__contains__</strong></a>(...)</dt><dd><tt>D.<a href="#OpenStruct-__contains__">__contains__</a>(k) -> True if D has a key k, else False</tt></dd></dl> <dl><dt><a name="OpenStruct-__delitem__"><strong>__delitem__</strong></a>(...)</dt><dd><tt>x.<a href="#OpenStruct-__delitem__">__delitem__</a>(y) <==> del x[y]</tt></dd></dl> @@ -104,17 +102,9 @@ Methods inherited from <a href="__builtin__.html#dict">__builtin__.dict</a>:<br> <dl><dt><a name="OpenStruct-get"><strong>get</strong></a>(...)</dt><dd><tt>D.<a href="#OpenStruct-get">get</a>(k[,d]) -> D[k] if k in D, else d. d defaults to None.</tt></dd></dl> -<dl><dt><a name="OpenStruct-has_key"><strong>has_key</strong></a>(...)</dt><dd><tt>D.<a href="#OpenStruct-has_key">has_key</a>(k) -> True if D has a key k, else False</tt></dd></dl> - -<dl><dt><a name="OpenStruct-items"><strong>items</strong></a>(...)</dt><dd><tt>D.<a href="#OpenStruct-items">items</a>() -> list of D's (key, value) pairs, as 2-tuples</tt></dd></dl> - -<dl><dt><a name="OpenStruct-iteritems"><strong>iteritems</strong></a>(...)</dt><dd><tt>D.<a href="#OpenStruct-iteritems">iteritems</a>() -> an iterator over the (key, value) items of D</tt></dd></dl> - -<dl><dt><a name="OpenStruct-iterkeys"><strong>iterkeys</strong></a>(...)</dt><dd><tt>D.<a href="#OpenStruct-iterkeys">iterkeys</a>() -> an iterator over the keys of D</tt></dd></dl> - -<dl><dt><a name="OpenStruct-itervalues"><strong>itervalues</strong></a>(...)</dt><dd><tt>D.<a href="#OpenStruct-itervalues">itervalues</a>() -> an iterator over the values of D</tt></dd></dl> +<dl><dt><a name="OpenStruct-items"><strong>items</strong></a>(...)</dt><dd><tt>D.<a href="#OpenStruct-items">items</a>() -> a set-like object providing a view on D's items</tt></dd></dl> -<dl><dt><a name="OpenStruct-keys"><strong>keys</strong></a>(...)</dt><dd><tt>D.<a href="#OpenStruct-keys">keys</a>() -> list of D's keys</tt></dd></dl> +<dl><dt><a name="OpenStruct-keys"><strong>keys</strong></a>(...)</dt><dd><tt>D.<a href="#OpenStruct-keys">keys</a>() -> a set-like object providing a view on D's keys</tt></dd></dl> <dl><dt><a name="OpenStruct-pop"><strong>pop</strong></a>(...)</dt><dd><tt>D.<a href="#OpenStruct-pop">pop</a>(k[,d]) -> v, remove specified key and return the corresponding value.<br> If key is not found, d is returned if given, otherwise KeyError is raised</tt></dd></dl> @@ -124,20 +114,20 @@ If key is not found, d is returned if&nb <dl><dt><a name="OpenStruct-setdefault"><strong>setdefault</strong></a>(...)</dt><dd><tt>D.<a href="#OpenStruct-setdefault">setdefault</a>(k[,d]) -> D.<a href="#OpenStruct-get">get</a>(k,d), also set D[k]=d if k not in D</tt></dd></dl> -<dl><dt><a name="OpenStruct-update"><strong>update</strong></a>(...)</dt><dd><tt>D.<a href="#OpenStruct-update">update</a>(E, **F) -> None. Update D from <a href="__builtin__.html#dict">dict</a>/iterable E and F.<br> +<dl><dt><a name="OpenStruct-update"><strong>update</strong></a>(...)</dt><dd><tt>D.<a href="#OpenStruct-update">update</a>(E, **F) -> None. Update D from <a href="builtins.html#dict">dict</a>/iterable E and F.<br> If E has a .<a href="#OpenStruct-keys">keys</a>() method, does: for k in E: D[k] = E[k]<br> If E lacks .<a href="#OpenStruct-keys">keys</a>() method, does: for (k, v) in E: D[k] = v<br> In either case, this is followed by: for k in F: D[k] = F[k]</tt></dd></dl> -<dl><dt><a name="OpenStruct-values"><strong>values</strong></a>(...)</dt><dd><tt>D.<a href="#OpenStruct-values">values</a>() -> list of D's values</tt></dd></dl> +<dl><dt><a name="OpenStruct-values"><strong>values</strong></a>(...)</dt><dd><tt>D.<a href="#OpenStruct-values">values</a>() -> an object providing a view on D's values</tt></dd></dl> <hr> -Data and other attributes inherited from <a href="__builtin__.html#dict">__builtin__.dict</a>:<br> +Data and other attributes inherited from <a href="builtins.html#dict">builtins.dict</a>:<br> <dl><dt><strong>__hash__</strong> = None</dl> <dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#OpenStruct-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</tt></dl> -<dl><dt><strong>fromkeys</strong> = <built-in method fromkeys of type object><dd><tt><a href="__builtin__.html#dict">dict</a>.<a href="#OpenStruct-fromkeys">fromkeys</a>(S[,v]) -> New <a href="__builtin__.html#dict">dict</a> with keys from S and values equal to v.<br> +<dl><dt><strong>fromkeys</strong> = <built-in method fromkeys of type object><dd><tt><a href="builtins.html#dict">dict</a>.<a href="#OpenStruct-fromkeys">fromkeys</a>(S[,v]) -> New <a href="builtins.html#dict">dict</a> with keys from S and values equal to v.<br> v defaults to None.</tt></dl> </td></tr></table></td></tr></table> diff --git a/doc/pydoc/ranger.ext.shutil_generatorized.html b/doc/pydoc/ranger.ext.shutil_generatorized.html index fc938852..ecb3b644 100644 --- a/doc/pydoc/ranger.ext.shutil_generatorized.html +++ b/doc/pydoc/ranger.ext.shutil_generatorized.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.ext.shutil_generatorized</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.ext.html"><font color="#ffffff">ext</font></a>.shutil_generatorized</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/ext/shutil_generatorized.py">/home/hut/ranger/ranger/ext/shutil_generatorized.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/ext/shutil_generatorized.py">/home/hut/code/ranger/ranger/ext/shutil_generatorized.py</a></font></td></tr></table> <p><tt>Utility functions for copying files and directory trees.<br> <br> XXX The functions here don't copy the resource fork or other metadata on Mac.</tt></p> @@ -30,7 +30,7 @@ XXX The functions here don't copy the resourc <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> <td width="100%"><dl> -<dt><font face="helvetica, arial"><a href="exceptions.html#EnvironmentError">exceptions.EnvironmentError</a>(<a href="exceptions.html#StandardError">exceptions.StandardError</a>) +<dt><font face="helvetica, arial"><a href="builtins.html#EnvironmentError">builtins.EnvironmentError</a>(<a href="builtins.html#Exception">builtins.Exception</a>) </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="ranger.ext.shutil_generatorized.html#Error">Error</a> @@ -42,16 +42,15 @@ XXX The functions here don't copy the resourc <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="Error">class <strong>Error</strong></a>(<a href="exceptions.html#EnvironmentError">exceptions.EnvironmentError</a>)</font></td></tr> +<font color="#000000" face="helvetica, arial"><a name="Error">class <strong>Error</strong></a>(<a href="builtins.html#EnvironmentError">builtins.EnvironmentError</a>)</font></td></tr> <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> <td width="100%"><dl><dt>Method resolution order:</dt> <dd><a href="ranger.ext.shutil_generatorized.html#Error">Error</a></dd> -<dd><a href="exceptions.html#EnvironmentError">exceptions.EnvironmentError</a></dd> -<dd><a href="exceptions.html#StandardError">exceptions.StandardError</a></dd> -<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd> -<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#EnvironmentError">builtins.EnvironmentError</a></dd> +<dd><a href="builtins.html#Exception">builtins.Exception</a></dd> +<dd><a href="builtins.html#BaseException">builtins.BaseException</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Data descriptors defined here:<br> @@ -59,7 +58,7 @@ Data descriptors defined here:<br> <dd><tt>list of weak references to the object (if defined)</tt></dd> </dl> <hr> -Methods inherited from <a href="exceptions.html#EnvironmentError">exceptions.EnvironmentError</a>:<br> +Methods inherited from <a href="builtins.html#EnvironmentError">builtins.EnvironmentError</a>:<br> <dl><dt><a name="Error-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__init__">__init__</a>(...) initializes x; see x.__class__.__doc__ for signature</tt></dd></dl> <dl><dt><a name="Error-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl> @@ -67,7 +66,7 @@ Methods inherited from <a href="exceptions.html#EnvironmentError">exceptions.Env <dl><dt><a name="Error-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__str__">__str__</a>() <==> str(x)</tt></dd></dl> <hr> -Data descriptors inherited from <a href="exceptions.html#EnvironmentError">exceptions.EnvironmentError</a>:<br> +Data descriptors inherited from <a href="builtins.html#EnvironmentError">builtins.EnvironmentError</a>:<br> <dl><dt><strong>errno</strong></dt> <dd><tt>exception errno</tt></dd> </dl> @@ -78,42 +77,43 @@ Data descriptors inherited from <a href="exceptions.html#EnvironmentError">excep <dd><tt>exception strerror</tt></dd> </dl> <hr> -Data and other attributes inherited from <a href="exceptions.html#EnvironmentError">exceptions.EnvironmentError</a>:<br> +Data and other attributes inherited from <a href="builtins.html#EnvironmentError">builtins.EnvironmentError</a>:<br> <dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#Error-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</tt></dl> <hr> -Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> +Methods inherited from <a href="builtins.html#BaseException">builtins.BaseException</a>:<br> <dl><dt><a name="Error-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl> <dl><dt><a name="Error-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl> -<dl><dt><a name="Error-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl> - -<dl><dt><a name="Error-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br> - <br> -Use of negative indices is not supported.</tt></dd></dl> - <dl><dt><a name="Error-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl> <dl><dt><a name="Error-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#Error-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl> <dl><dt><a name="Error-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl> -<dl><dt><a name="Error-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl> +<dl><dt><a name="Error-with_traceback"><strong>with_traceback</strong></a>(...)</dt><dd><tt>Exception.<a href="#Error-with_traceback">with_traceback</a>(tb) --<br> +set self.<strong>__traceback__</strong> to tb and return self.</tt></dd></dl> <hr> -Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> +Data descriptors inherited from <a href="builtins.html#BaseException">builtins.BaseException</a>:<br> +<dl><dt><strong>__cause__</strong></dt> +<dd><tt>exception cause</tt></dd> +</dl> +<dl><dt><strong>__context__</strong></dt> +<dd><tt>exception context</tt></dd> +</dl> <dl><dt><strong>__dict__</strong></dt> </dl> -<dl><dt><strong>args</strong></dt> +<dl><dt><strong>__traceback__</strong></dt> </dl> -<dl><dt><strong>message</strong></dt> +<dl><dt><strong>args</strong></dt> </dl> </td></tr></table> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="SpecialFileError">class <strong>SpecialFileError</strong></a>(<a href="exceptions.html#EnvironmentError">exceptions.EnvironmentError</a>)</font></td></tr> +<font color="#000000" face="helvetica, arial"><a name="SpecialFileError">class <strong>SpecialFileError</strong></a>(<a href="builtins.html#EnvironmentError">builtins.EnvironmentError</a>)</font></td></tr> <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> <td colspan=2><tt>Raised when trying to do a kind of operation (e.g. copying) which is<br> @@ -121,11 +121,10 @@ not supported on a special file (e.g. a <tr><td> </td> <td width="100%"><dl><dt>Method resolution order:</dt> <dd><a href="ranger.ext.shutil_generatorized.html#SpecialFileError">SpecialFileError</a></dd> -<dd><a href="exceptions.html#EnvironmentError">exceptions.EnvironmentError</a></dd> -<dd><a href="exceptions.html#StandardError">exceptions.StandardError</a></dd> -<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd> -<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#EnvironmentError">builtins.EnvironmentError</a></dd> +<dd><a href="builtins.html#Exception">builtins.Exception</a></dd> +<dd><a href="builtins.html#BaseException">builtins.BaseException</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Data descriptors defined here:<br> @@ -133,7 +132,7 @@ Data descriptors defined here:<br> <dd><tt>list of weak references to the object (if defined)</tt></dd> </dl> <hr> -Methods inherited from <a href="exceptions.html#EnvironmentError">exceptions.EnvironmentError</a>:<br> +Methods inherited from <a href="builtins.html#EnvironmentError">builtins.EnvironmentError</a>:<br> <dl><dt><a name="SpecialFileError-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#SpecialFileError-__init__">__init__</a>(...) initializes x; see x.__class__.__doc__ for signature</tt></dd></dl> <dl><dt><a name="SpecialFileError-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl> @@ -141,7 +140,7 @@ Methods inherited from <a href="exceptions.html#EnvironmentError">exceptions.Env <dl><dt><a name="SpecialFileError-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#SpecialFileError-__str__">__str__</a>() <==> str(x)</tt></dd></dl> <hr> -Data descriptors inherited from <a href="exceptions.html#EnvironmentError">exceptions.EnvironmentError</a>:<br> +Data descriptors inherited from <a href="builtins.html#EnvironmentError">builtins.EnvironmentError</a>:<br> <dl><dt><strong>errno</strong></dt> <dd><tt>exception errno</tt></dd> </dl> @@ -152,36 +151,37 @@ Data descriptors inherited from <a href="exceptions.html#EnvironmentError">excep <dd><tt>exception strerror</tt></dd> </dl> <hr> -Data and other attributes inherited from <a href="exceptions.html#EnvironmentError">exceptions.EnvironmentError</a>:<br> +Data and other attributes inherited from <a href="builtins.html#EnvironmentError">builtins.EnvironmentError</a>:<br> <dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#SpecialFileError-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</tt></dl> <hr> -Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> +Methods inherited from <a href="builtins.html#BaseException">builtins.BaseException</a>:<br> <dl><dt><a name="SpecialFileError-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#SpecialFileError-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl> <dl><dt><a name="SpecialFileError-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#SpecialFileError-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl> -<dl><dt><a name="SpecialFileError-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#SpecialFileError-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl> - -<dl><dt><a name="SpecialFileError-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#SpecialFileError-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br> - <br> -Use of negative indices is not supported.</tt></dd></dl> - <dl><dt><a name="SpecialFileError-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#SpecialFileError-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl> <dl><dt><a name="SpecialFileError-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#SpecialFileError-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl> <dl><dt><a name="SpecialFileError-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl> -<dl><dt><a name="SpecialFileError-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl> +<dl><dt><a name="SpecialFileError-with_traceback"><strong>with_traceback</strong></a>(...)</dt><dd><tt>Exception.<a href="#SpecialFileError-with_traceback">with_traceback</a>(tb) --<br> +set self.<strong>__traceback__</strong> to tb and return self.</tt></dd></dl> <hr> -Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> +Data descriptors inherited from <a href="builtins.html#BaseException">builtins.BaseException</a>:<br> +<dl><dt><strong>__cause__</strong></dt> +<dd><tt>exception cause</tt></dd> +</dl> +<dl><dt><strong>__context__</strong></dt> +<dd><tt>exception context</tt></dd> +</dl> <dl><dt><strong>__dict__</strong></dt> </dl> -<dl><dt><strong>args</strong></dt> +<dl><dt><strong>__traceback__</strong></dt> </dl> -<dl><dt><strong>message</strong></dt> +<dl><dt><strong>args</strong></dt> </dl> </td></tr></table></td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> diff --git a/doc/pydoc/ranger.ext.waitpid_no_intr.html b/doc/pydoc/ranger.ext.waitpid_no_intr.html index c0ef5666..ccc2c161 100644 --- a/doc/pydoc/ranger.ext.waitpid_no_intr.html +++ b/doc/pydoc/ranger.ext.waitpid_no_intr.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.ext.waitpid_no_intr</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.ext.html"><font color="#ffffff">ext</font></a>.waitpid_no_intr</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/ext/waitpid_no_intr.py">/home/hut/ranger/ranger/ext/waitpid_no_intr.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/ext/waitpid_no_intr.py">/home/hut/code/ranger/ranger/ext/waitpid_no_intr.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> diff --git a/doc/pydoc/ranger.fsobject.directory.html b/doc/pydoc/ranger.fsobject.directory.html index 79dfc957..77790809 100644 --- a/doc/pydoc/ranger.fsobject.directory.html +++ b/doc/pydoc/ranger.fsobject.directory.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.fsobject.directory</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.fsobject.html"><font color="#ffffff">fsobject</font></a>.directory</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/fsobject/directory.py">/home/hut/ranger/ranger/fsobject/directory.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/fsobject/directory.py">/home/hut/code/ranger/ranger/fsobject/directory.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> @@ -32,7 +32,8 @@ <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="os.html">os</a><br> </td><td width="25%" valign=top><a href="ranger.html">ranger</a><br> -</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p> +</td><td width="25%" valign=top><a href="stat.html">stat</a><br> +</td><td width="25%" valign=top></td></tr></table></td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ee77aa"> <td colspan=3 valign=bottom> <br> @@ -40,13 +41,7 @@ <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> <td width="100%"><dl> -<dt><font face="helvetica, arial"><a href="exceptions.html#Exception">exceptions.Exception</a>(<a href="exceptions.html#BaseException">exceptions.BaseException</a>) -</font></dt><dd> -<dl> -<dt><font face="helvetica, arial"><a href="ranger.fsobject.directory.html#NoDirectoryGiven">NoDirectoryGiven</a> -</font></dt></dl> -</dd> -<dt><font face="helvetica, arial"><a href="ranger.ext.accumulator.html#Accumulator">ranger.ext.accumulator.Accumulator</a>(<a href="__builtin__.html#object">__builtin__.object</a>) +<dt><font face="helvetica, arial"><a href="ranger.ext.accumulator.html#Accumulator">ranger.ext.accumulator.Accumulator</a>(<a href="builtins.html#object">builtins.object</a>) </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="ranger.fsobject.directory.html#Directory">Directory</a>(<a href="ranger.fsobject.fsobject.html#FileSystemObject">ranger.fsobject.fsobject.FileSystemObject</a>, <a href="ranger.ext.accumulator.html#Accumulator">ranger.ext.accumulator.Accumulator</a>, <a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a>) @@ -58,7 +53,7 @@ <dt><font face="helvetica, arial"><a href="ranger.fsobject.directory.html#Directory">Directory</a>(<a href="ranger.fsobject.fsobject.html#FileSystemObject">ranger.fsobject.fsobject.FileSystemObject</a>, <a href="ranger.ext.accumulator.html#Accumulator">ranger.ext.accumulator.Accumulator</a>, <a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a>) </font></dt></dl> </dd> -<dt><font face="helvetica, arial"><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a>(<a href="__builtin__.html#object">__builtin__.object</a>) +<dt><font face="helvetica, arial"><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a>(<a href="builtins.html#object">builtins.object</a>) </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="ranger.fsobject.directory.html#Directory">Directory</a>(<a href="ranger.fsobject.fsobject.html#FileSystemObject">ranger.fsobject.fsobject.FileSystemObject</a>, <a href="ranger.ext.accumulator.html#Accumulator">ranger.ext.accumulator.Accumulator</a>, <a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a>) @@ -80,7 +75,7 @@ <dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd> <dd><a href="ranger.ext.accumulator.html#Accumulator">ranger.ext.accumulator.Accumulator</a></dd> <dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> @@ -90,7 +85,7 @@ Methods defined here:<br> <dl><dt><a name="Directory-__hash__"><strong>__hash__</strong></a>(self)</dt></dl> -<dl><dt><a name="Directory-__init__"><strong>__init__</strong></a>(self, path)</dt></dl> +<dl><dt><a name="Directory-__init__"><strong>__init__</strong></a>(self, path, **kw)</dt></dl> <dl><dt><a name="Directory-__len__"><strong>__len__</strong></a>(self)</dt><dd><tt>The number of containing files</tt></dd></dl> @@ -189,8 +184,6 @@ Methods inherited from <a href="ranger.fsobject.fsobject.html#FileSystemObject"> <dl><dt><a name="Directory-__str__"><strong>__str__</strong></a>(self)</dt><dd><tt>returns a string containing the absolute path</tt></dd></dl> -<dl><dt><a name="Directory-determine_infostring"><strong>determine_infostring</strong></a>(self)</dt></dl> - <dl><dt><a name="Directory-get_description"><strong>get_description</strong></a>(self)</dt></dl> <dl><dt><a name="Directory-get_permission_string"><strong>get_permission_string</strong></a>(self)</dt></dl> @@ -205,8 +198,6 @@ filesystem and caches it for later use</tt></dd></ <dl><dt><a name="Directory-load_if_outdated"><strong>load_if_outdated</strong></a>(self)</dt><dd><tt>Calls <a href="#Directory-load">load</a>() if the currently cached information is outdated<br> or nonexistant.</tt></dd></dl> -<dl><dt><a name="Directory-load_once"><strong>load_once</strong></a>(self)</dt><dd><tt>calls <a href="#Directory-load">load</a>() if it has not been called at least once yet</tt></dd></dl> - <dl><dt><a name="Directory-mark"><strong>mark</strong></a>(self, boolean)</dt></dl> <dl><dt><a name="Directory-set_mimetype"><strong>set_mimetype</strong></a>(self)</dt><dd><tt>assign attributes such as self.<strong>video</strong> according to the mimetype</tt></dd></dl> @@ -217,6 +208,10 @@ or nonexistant.</tt></dd></dl> Data descriptors inherited from <a href="ranger.fsobject.fsobject.html#FileSystemObject">ranger.fsobject.fsobject.FileSystemObject</a>:<br> <dl><dt><strong>filetype</strong></dt> </dl> +<dl><dt><strong>mimetype</strong></dt> +</dl> +<dl><dt><strong>mimetype_tuple</strong></dt> +</dl> <dl><dt><strong>shell_escaped_basename</strong></dt> </dl> <hr> @@ -263,14 +258,10 @@ Data and other attributes inherited from <a href="ranger.fsobject.fsobject.html# <dl><dt><strong>media</strong> = False</dl> -<dl><dt><strong>mimetype_tuple</strong> = ()</dl> - <dl><dt><strong>path</strong> = None</dl> <dl><dt><strong>permissions</strong> = None</dl> -<dl><dt><strong>readlink</strong> = None</dl> - <dl><dt><strong>runnable</strong> = False</dl> <dl><dt><strong>size</strong> = 0</dl> @@ -281,8 +272,6 @@ Data and other attributes inherited from <a href="ranger.fsobject.fsobject.html# <dl><dt><strong>tagged</strong> = False</dl> -<dl><dt><strong>type</strong> = 'unknown'</dl> - <dl><dt><strong>video</strong> = False</dl> <hr> @@ -315,64 +304,6 @@ Methods inherited from <a href="ranger.ext.accumulator.html#Accumulator">ranger. Data and other attributes inherited from <a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a>:<br> <dl><dt><strong>settings</strong> = {}</dl> -</td></tr></table> <p> -<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> -<tr bgcolor="#ffc8d8"> -<td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="NoDirectoryGiven">class <strong>NoDirectoryGiven</strong></a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)</font></td></tr> - -<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> -<td width="100%"><dl><dt>Method resolution order:</dt> -<dd><a href="ranger.fsobject.directory.html#NoDirectoryGiven">NoDirectoryGiven</a></dd> -<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd> -<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> -</dl> -<hr> -Data descriptors defined here:<br> -<dl><dt><strong>__weakref__</strong></dt> -<dd><tt>list of weak references to the object (if defined)</tt></dd> -</dl> -<hr> -Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> -<dl><dt><a name="NoDirectoryGiven-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#NoDirectoryGiven-__init__">__init__</a>(...) initializes x; see x.__class__.__doc__ for signature</tt></dd></dl> - -<hr> -Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> -<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#NoDirectoryGiven-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</tt></dl> - -<hr> -Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> -<dl><dt><a name="NoDirectoryGiven-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#NoDirectoryGiven-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl> - -<dl><dt><a name="NoDirectoryGiven-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#NoDirectoryGiven-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl> - -<dl><dt><a name="NoDirectoryGiven-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#NoDirectoryGiven-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl> - -<dl><dt><a name="NoDirectoryGiven-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#NoDirectoryGiven-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br> - <br> -Use of negative indices is not supported.</tt></dd></dl> - -<dl><dt><a name="NoDirectoryGiven-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl> - -<dl><dt><a name="NoDirectoryGiven-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#NoDirectoryGiven-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl> - -<dl><dt><a name="NoDirectoryGiven-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#NoDirectoryGiven-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl> - -<dl><dt><a name="NoDirectoryGiven-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl> - -<dl><dt><a name="NoDirectoryGiven-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#NoDirectoryGiven-__str__">__str__</a>() <==> str(x)</tt></dd></dl> - -<dl><dt><a name="NoDirectoryGiven-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl> - -<hr> -Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> -<dl><dt><strong>__dict__</strong></dt> -</dl> -<dl><dt><strong>args</strong></dt> -</dl> -<dl><dt><strong>message</strong></dt> -</dl> </td></tr></table></td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#eeaa77"> @@ -380,7 +311,8 @@ Data descriptors inherited from <a href="exceptions.html#BaseException">exceptio <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> <tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> -<td width="100%"><dl><dt><a name="-sort_by_basename"><strong>sort_by_basename</strong></a>(path)</dt><dd><tt>returns path.basename (for sorting)</tt></dd></dl> +<td width="100%"><dl><dt><a name="-accept_file"><strong>accept_file</strong></a>(fname, hidden_filter, name_filter)</dt></dl> + <dl><dt><a name="-sort_by_basename"><strong>sort_by_basename</strong></a>(path)</dt><dd><tt>returns path.basename (for sorting)</tt></dd></dl> <dl><dt><a name="-sort_by_basename_icase"><strong>sort_by_basename_icase</strong></a>(path)</dt><dd><tt>returns case-insensitive path.basename (for sorting)</tt></dd></dl> <dl><dt><a name="-sort_by_directory"><strong>sort_by_directory</strong></a>(path)</dt><dd><tt>returns 0 if path is a directory, otherwise 1 (for sorting)</tt></dd></dl> <dl><dt><a name="-time"><strong>time</strong></a>(...)</dt><dd><tt><a href="#-time">time</a>() -> floating point number<br> diff --git a/doc/pydoc/ranger.fsobject.file.html b/doc/pydoc/ranger.fsobject.file.html index 01188d95..948be90d 100644 --- a/doc/pydoc/ranger.fsobject.file.html +++ b/doc/pydoc/ranger.fsobject.file.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.fsobject.file</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.fsobject.html"><font color="#ffffff">fsobject</font></a>.file</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/fsobject/file.py">/home/hut/ranger/ranger/fsobject/file.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/fsobject/file.py">/home/hut/code/ranger/ranger/fsobject/file.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> @@ -51,7 +51,7 @@ <dd><a href="ranger.shared.mimetype.html#MimeTypeAware">ranger.shared.mimetype.MimeTypeAware</a></dd> <dd><a href="ranger.shared.html#FileManagerAware">ranger.shared.FileManagerAware</a></dd> <dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> @@ -67,14 +67,12 @@ Data and other attributes defined here:<br> <hr> Methods inherited from <a href="ranger.fsobject.fsobject.html#FileSystemObject">ranger.fsobject.fsobject.FileSystemObject</a>:<br> -<dl><dt><a name="File-__init__"><strong>__init__</strong></a>(self, path)</dt></dl> +<dl><dt><a name="File-__init__"><strong>__init__</strong></a>(self, path, preload<font color="#909090">=None</font>, path_is_abs<font color="#909090">=False</font>)</dt></dl> <dl><dt><a name="File-__repr__"><strong>__repr__</strong></a>(self)</dt></dl> <dl><dt><a name="File-__str__"><strong>__str__</strong></a>(self)</dt><dd><tt>returns a string containing the absolute path</tt></dd></dl> -<dl><dt><a name="File-determine_infostring"><strong>determine_infostring</strong></a>(self)</dt></dl> - <dl><dt><a name="File-get_description"><strong>get_description</strong></a>(self)</dt></dl> <dl><dt><a name="File-get_permission_string"><strong>get_permission_string</strong></a>(self)</dt></dl> @@ -89,8 +87,6 @@ filesystem and caches it for later use</tt></dd></ <dl><dt><a name="File-load_if_outdated"><strong>load_if_outdated</strong></a>(self)</dt><dd><tt>Calls <a href="#File-load">load</a>() if the currently cached information is outdated<br> or nonexistant.</tt></dd></dl> -<dl><dt><a name="File-load_once"><strong>load_once</strong></a>(self)</dt><dd><tt>calls <a href="#File-load">load</a>() if it has not been called at least once yet</tt></dd></dl> - <dl><dt><a name="File-mark"><strong>mark</strong></a>(self, boolean)</dt></dl> <dl><dt><a name="File-set_mimetype"><strong>set_mimetype</strong></a>(self)</dt><dd><tt>assign attributes such as self.<strong>video</strong> according to the mimetype</tt></dd></dl> @@ -101,6 +97,10 @@ or nonexistant.</tt></dd></dl> Data descriptors inherited from <a href="ranger.fsobject.fsobject.html#FileSystemObject">ranger.fsobject.fsobject.FileSystemObject</a>:<br> <dl><dt><strong>filetype</strong></dt> </dl> +<dl><dt><strong>mimetype</strong></dt> +</dl> +<dl><dt><strong>mimetype_tuple</strong></dt> +</dl> <dl><dt><strong>shell_escaped_basename</strong></dt> </dl> <hr> @@ -149,14 +149,10 @@ Data and other attributes inherited from <a href="ranger.fsobject.fsobject.html# <dl><dt><strong>media</strong> = False</dl> -<dl><dt><strong>mimetype_tuple</strong> = ()</dl> - <dl><dt><strong>path</strong> = None</dl> <dl><dt><strong>permissions</strong> = None</dl> -<dl><dt><strong>readlink</strong> = None</dl> - <dl><dt><strong>runnable</strong> = False</dl> <dl><dt><strong>size</strong> = 0</dl> @@ -167,8 +163,6 @@ Data and other attributes inherited from <a href="ranger.fsobject.fsobject.html# <dl><dt><strong>tagged</strong> = False</dl> -<dl><dt><strong>type</strong> = 'unknown'</dl> - <dl><dt><strong>video</strong> = False</dl> <hr> diff --git a/doc/pydoc/ranger.fsobject.fsobject.html b/doc/pydoc/ranger.fsobject.fsobject.html index 1a9517bc..869ecfbe 100644 --- a/doc/pydoc/ranger.fsobject.fsobject.html +++ b/doc/pydoc/ranger.fsobject.fsobject.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.fsobject.fsobject</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.fsobject.html"><font color="#ffffff">fsobject</font></a>.fsobject</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/fsobject/fsobject.py">/home/hut/ranger/ranger/fsobject/fsobject.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/fsobject/fsobject.py">/home/hut/code/ranger/ranger/fsobject/fsobject.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> @@ -25,15 +25,6 @@ # along with this program. If not, see <<a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>>.</tt></p> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> -<tr bgcolor="#aa55cc"> -<td colspan=3 valign=bottom> <br> -<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> - -<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> -<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="os.html">os</a><br> -</td><td width="25%" valign=top><a href="stat.html">stat</a><br> -</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p> -<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ee77aa"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> @@ -46,7 +37,7 @@ <dt><font face="helvetica, arial"><a href="ranger.fsobject.fsobject.html#FileSystemObject">FileSystemObject</a>(<a href="ranger.shared.mimetype.html#MimeTypeAware">ranger.shared.mimetype.MimeTypeAware</a>, <a href="ranger.shared.html#FileManagerAware">ranger.shared.FileManagerAware</a>) </font></dt></dl> </dd> -<dt><font face="helvetica, arial"><a href="ranger.shared.mimetype.html#MimeTypeAware">ranger.shared.mimetype.MimeTypeAware</a>(<a href="__builtin__.html#object">__builtin__.object</a>) +<dt><font face="helvetica, arial"><a href="ranger.shared.mimetype.html#MimeTypeAware">ranger.shared.mimetype.MimeTypeAware</a>(<a href="builtins.html#object">builtins.object</a>) </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="ranger.fsobject.fsobject.html#FileSystemObject">FileSystemObject</a>(<a href="ranger.shared.mimetype.html#MimeTypeAware">ranger.shared.mimetype.MimeTypeAware</a>, <a href="ranger.shared.html#FileManagerAware">ranger.shared.FileManagerAware</a>) @@ -65,18 +56,16 @@ <dd><a href="ranger.shared.mimetype.html#MimeTypeAware">ranger.shared.mimetype.MimeTypeAware</a></dd> <dd><a href="ranger.shared.html#FileManagerAware">ranger.shared.FileManagerAware</a></dd> <dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> -<dl><dt><a name="FileSystemObject-__init__"><strong>__init__</strong></a>(self, path)</dt></dl> +<dl><dt><a name="FileSystemObject-__init__"><strong>__init__</strong></a>(self, path, preload<font color="#909090">=None</font>, path_is_abs<font color="#909090">=False</font>)</dt></dl> <dl><dt><a name="FileSystemObject-__repr__"><strong>__repr__</strong></a>(self)</dt></dl> <dl><dt><a name="FileSystemObject-__str__"><strong>__str__</strong></a>(self)</dt><dd><tt>returns a string containing the absolute path</tt></dd></dl> -<dl><dt><a name="FileSystemObject-determine_infostring"><strong>determine_infostring</strong></a>(self)</dt></dl> - <dl><dt><a name="FileSystemObject-get_description"><strong>get_description</strong></a>(self)</dt></dl> <dl><dt><a name="FileSystemObject-get_permission_string"><strong>get_permission_string</strong></a>(self)</dt></dl> @@ -91,8 +80,6 @@ filesystem and caches it for later use</tt></dd></ <dl><dt><a name="FileSystemObject-load_if_outdated"><strong>load_if_outdated</strong></a>(self)</dt><dd><tt>Calls <a href="#FileSystemObject-load">load</a>() if the currently cached information is outdated<br> or nonexistant.</tt></dd></dl> -<dl><dt><a name="FileSystemObject-load_once"><strong>load_once</strong></a>(self)</dt><dd><tt>calls <a href="#FileSystemObject-load">load</a>() if it has not been called at least once yet</tt></dd></dl> - <dl><dt><a name="FileSystemObject-mark"><strong>mark</strong></a>(self, boolean)</dt></dl> <dl><dt><a name="FileSystemObject-set_mimetype"><strong>set_mimetype</strong></a>(self)</dt><dd><tt>assign attributes such as self.<strong>video</strong> according to the mimetype</tt></dd></dl> @@ -103,6 +90,10 @@ or nonexistant.</tt></dd></dl> Data descriptors defined here:<br> <dl><dt><strong>filetype</strong></dt> </dl> +<dl><dt><strong>mimetype</strong></dt> +</dl> +<dl><dt><strong>mimetype_tuple</strong></dt> +</dl> <dl><dt><strong>shell_escaped_basename</strong></dt> </dl> <hr> @@ -153,14 +144,10 @@ Data and other attributes defined here:<br> <dl><dt><strong>media</strong> = False</dl> -<dl><dt><strong>mimetype_tuple</strong> = ()</dl> - <dl><dt><strong>path</strong> = None</dl> <dl><dt><strong>permissions</strong> = None</dl> -<dl><dt><strong>readlink</strong> = None</dl> - <dl><dt><strong>runnable</strong> = False</dl> <dl><dt><strong>size</strong> = 0</dl> @@ -171,8 +158,6 @@ Data and other attributes defined here:<br> <dl><dt><strong>tagged</strong> = False</dl> -<dl><dt><strong>type</strong> = 'unknown'</dl> - <dl><dt><strong>video</strong> = False</dl> <hr> @@ -198,7 +183,31 @@ Data and other attributes inherited from <a href="ranger.shared.html#FileManager <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> <tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> -<td width="100%"><dl><dt><a name="-time"><strong>time</strong></a>(...)</dt><dd><tt><a href="#-time">time</a>() -> floating point number<br> +<td width="100%"><dl><dt><a name="-access"><strong>access</strong></a>(...)</dt><dd><tt><a href="#-access">access</a>(path, mode) -> True if granted, False otherwise<br> + <br> +Use the real uid/gid to test for access to a path. Note that most<br> +operations will use the effective uid/gid, therefore this routine can<br> +be used in a suid/sgid environment to test if the invoking user has the<br> +specified access to the path. The mode argument can be F_OK to test<br> +existence, or the inclusive-OR of R_OK, W_OK, and X_OK.</tt></dd></dl> + <dl><dt><a name="-listdir"><strong>listdir</strong></a>(...)</dt><dd><tt><a href="#-listdir">listdir</a>(path) -> list_of_strings<br> + <br> +Return a list containing the names of the entries in the directory.<br> + <br> + path: path of directory to list<br> + <br> +The list is in arbitrary order. It does not include the special<br> +entries '.' and '..' even if they are present in the directory.</tt></dd></dl> + <dl><dt><a name="-lstat"><strong>lstat</strong></a>(...)</dt><dd><tt><a href="#-lstat">lstat</a>(path) -> stat result<br> + <br> +Like <a href="#-stat">stat</a>(path), but do not follow symbolic links.</tt></dd></dl> + <dl><dt><a name="-readlink"><strong>readlink</strong></a>(...)</dt><dd><tt><a href="#-readlink">readlink</a>(path) -> path<br> + <br> +Return a string representing the path to which the symbolic link points.</tt></dd></dl> + <dl><dt><a name="-stat"><strong>stat</strong></a>(...)</dt><dd><tt><a href="#-stat">stat</a>(path) -> stat result<br> + <br> +Perform a stat system call on the given path.</tt></dd></dl> + <dl><dt><a name="-time"><strong>time</strong></a>(...)</dt><dd><tt><a href="#-time">time</a>() -> floating point number<br> <br> Return the current time in seconds since the Epoch.<br> Fractions of a second may be present if the system clock provides them.</tt></dd></dl> @@ -210,12 +219,5 @@ Fractions of a second may be present if <tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> <td width="100%"><strong>BAD_INFO</strong> = '?'<br> -<strong>CONTAINER_EXTENSIONS</strong> = ['rar', 'zip', 'tar', 'gz', 'bz', 'bz2', 'tgz', '7z', 'iso', 'cab']<br> -<strong>DOCUMENT_BASENAMES</strong> = ()<br> -<strong>DOCUMENT_EXTENSIONS</strong> = ()<br> -<strong>PIPE</strong> = -1<br> -<strong>T_DIRECTORY</strong> = 'directory'<br> -<strong>T_FILE</strong> = 'file'<br> -<strong>T_NONEXISTANT</strong> = 'nonexistant'<br> -<strong>T_UNKNOWN</strong> = 'unknown'</td></tr></table> +<strong>CONTAINER_EXTENSIONS</strong> = ('7z', 'ace', 'ar', 'arc', 'bz', 'bz2', 'cab', 'cpio', 'cpt', 'dgc', 'dmg', 'gz', 'iso', 'jar', 'msi', 'pkg', 'rar', 'shar', 'tar', 'tbz', ...)</td></tr></table> </body></html> \ No newline at end of file diff --git a/doc/pydoc/ranger.fsobject.html b/doc/pydoc/ranger.fsobject.html index 7014418a..76d5ca70 100644 --- a/doc/pydoc/ranger.fsobject.html +++ b/doc/pydoc/ranger.fsobject.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: package ranger.fsobject</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.fsobject</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/fsobject/__init__.py">/home/hut/ranger/ranger/fsobject/__init__.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/fsobject/__init__.py">/home/hut/code/ranger/ranger/fsobject/__init__.py</a></font></td></tr></table> <p><tt>FileSystemObjects are representation of files and directories<br> with fast access to their properties through caching</tt></p> <p> @@ -21,90 +21,12 @@ with fast access to their properties through <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="ranger.fsobject.directory.html">directory</a><br> </td><td width="25%" valign=top><a href="ranger.fsobject.file.html">file</a><br> </td><td width="25%" valign=top><a href="ranger.fsobject.fsobject.html">fsobject</a><br> -</td><td width="25%" valign=top><a href="ranger.fsobject.loader.html">loader</a><br> -</td></tr></table></td></tr></table><p> -<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> -<tr bgcolor="#ee77aa"> -<td colspan=3 valign=bottom> <br> -<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> - -<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> -<td width="100%"><dl> -<dt><font face="helvetica, arial"><a href="exceptions.html#Exception">exceptions.Exception</a>(<a href="exceptions.html#BaseException">exceptions.BaseException</a>) -</font></dt><dd> -<dl> -<dt><font face="helvetica, arial"><a href="ranger.fsobject.html#NotLoadedYet">NotLoadedYet</a> -</font></dt></dl> -</dd> -</dl> - <p> -<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> -<tr bgcolor="#ffc8d8"> -<td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="NotLoadedYet">class <strong>NotLoadedYet</strong></a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)</font></td></tr> - -<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> -<td width="100%"><dl><dt>Method resolution order:</dt> -<dd><a href="ranger.fsobject.html#NotLoadedYet">NotLoadedYet</a></dd> -<dd><a href="exceptions.html#Exception">exceptions.Exception</a></dd> -<dd><a href="exceptions.html#BaseException">exceptions.BaseException</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> -</dl> -<hr> -Data descriptors defined here:<br> -<dl><dt><strong>__weakref__</strong></dt> -<dd><tt>list of weak references to the object (if defined)</tt></dd> -</dl> -<hr> -Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> -<dl><dt><a name="NotLoadedYet-__init__"><strong>__init__</strong></a>(...)</dt><dd><tt>x.<a href="#NotLoadedYet-__init__">__init__</a>(...) initializes x; see x.__class__.__doc__ for signature</tt></dd></dl> - -<hr> -Data and other attributes inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br> -<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#NotLoadedYet-__new__">__new__</a>(S, ...) -> a new object with type S, a subtype of T</tt></dl> - -<hr> -Methods inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> -<dl><dt><a name="NotLoadedYet-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#NotLoadedYet-__delattr__">__delattr__</a>('name') <==> del x.name</tt></dd></dl> - -<dl><dt><a name="NotLoadedYet-__getattribute__"><strong>__getattribute__</strong></a>(...)</dt><dd><tt>x.<a href="#NotLoadedYet-__getattribute__">__getattribute__</a>('name') <==> x.name</tt></dd></dl> - -<dl><dt><a name="NotLoadedYet-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#NotLoadedYet-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl> - -<dl><dt><a name="NotLoadedYet-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#NotLoadedYet-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br> - <br> -Use of negative indices is not supported.</tt></dd></dl> - -<dl><dt><a name="NotLoadedYet-__reduce__"><strong>__reduce__</strong></a>(...)</dt></dl> - -<dl><dt><a name="NotLoadedYet-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#NotLoadedYet-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl> - -<dl><dt><a name="NotLoadedYet-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#NotLoadedYet-__setattr__">__setattr__</a>('name', value) <==> x.name = value</tt></dd></dl> - -<dl><dt><a name="NotLoadedYet-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl> - -<dl><dt><a name="NotLoadedYet-__str__"><strong>__str__</strong></a>(...)</dt><dd><tt>x.<a href="#NotLoadedYet-__str__">__str__</a>() <==> str(x)</tt></dd></dl> - -<dl><dt><a name="NotLoadedYet-__unicode__"><strong>__unicode__</strong></a>(...)</dt></dl> - -<hr> -Data descriptors inherited from <a href="exceptions.html#BaseException">exceptions.BaseException</a>:<br> -<dl><dt><strong>__dict__</strong></dt> -</dl> -<dl><dt><strong>args</strong></dt> -</dl> -<dl><dt><strong>message</strong></dt> -</dl> -</td></tr></table></td></tr></table><p> +</td><td width="25%" valign=top></td></tr></table></td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#55aa55"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> <tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> -<td width="100%"><strong>BAD_INFO</strong> = '?'<br> -<strong>T_DIRECTORY</strong> = 'directory'<br> -<strong>T_FILE</strong> = 'file'<br> -<strong>T_NONEXISTANT</strong> = 'nonexistant'<br> -<strong>T_UNKNOWN</strong> = 'unknown'</td></tr></table> +<td width="100%"><strong>BAD_INFO</strong> = '?'</td></tr></table> </body></html> \ No newline at end of file diff --git a/doc/pydoc/ranger.fsobject.loader.html b/doc/pydoc/ranger.fsobject.loader.html deleted file mode 100644 index c387f773..00000000 --- a/doc/pydoc/ranger.fsobject.loader.html +++ /dev/null @@ -1,135 +0,0 @@ - -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> -<html><head><title>Python: module ranger.fsobject.loader</title> -</head><body bgcolor="#f0f0f8"> - -<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> -<tr bgcolor="#7799ee"> -<td valign=bottom> <br> -<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.fsobject.html"><font color="#ffffff">fsobject</font></a>.loader</strong></big></big></font></td -><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/fsobject/loader.py">/home/hut/ranger/ranger/fsobject/loader.py</a></font></td></tr></table> - <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> -#<br> -# This program is free software: you can redistribute it and/or modify<br> -# it under the terms of the GNU General Public License as published by<br> -# the Free Software Foundation, either version 3 of the License, or<br> -# (at your option) any later version.<br> -#<br> -# This program is distributed in the hope that it will be useful,<br> -# but WITHOUT ANY WARRANTY; without even the implied warranty of<br> -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br> -# GNU General Public License for more details.<br> -#<br> -# You should have received a copy of the GNU General Public License<br> -# along with this program. If not, see <<a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>>.</tt></p> -<p> -<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> -<tr bgcolor="#aa55cc"> -<td colspan=3 valign=bottom> <br> -<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> - -<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> -<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="math.html">math</a><br> -</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p> -<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> -<tr bgcolor="#ee77aa"> -<td colspan=3 valign=bottom> <br> -<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> - -<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> -<td width="100%"><dl> -<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> -</font></dt><dd> -<dl> -<dt><font face="helvetica, arial"><a href="ranger.fsobject.loader.html#LoadableObject">LoadableObject</a> -</font></dt></dl> -</dd> -<dt><font face="helvetica, arial"><a href="ranger.shared.html#FileManagerAware">ranger.shared.FileManagerAware</a>(<a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a>) -</font></dt><dd> -<dl> -<dt><font face="helvetica, arial"><a href="ranger.fsobject.loader.html#Loader">Loader</a> -</font></dt></dl> -</dd> -</dl> - <p> -<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> -<tr bgcolor="#ffc8d8"> -<td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="LoadableObject">class <strong>LoadableObject</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> - -<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> -<td width="100%">Methods defined here:<br> -<dl><dt><a name="LoadableObject-__init__"><strong>__init__</strong></a>(self, gen, descr)</dt></dl> - -<dl><dt><a name="LoadableObject-get_description"><strong>get_description</strong></a>(self)</dt></dl> - -<hr> -Data descriptors defined here:<br> -<dl><dt><strong>__dict__</strong></dt> -<dd><tt>dictionary for instance variables (if defined)</tt></dd> -</dl> -<dl><dt><strong>__weakref__</strong></dt> -<dd><tt>list of weak references to the object (if defined)</tt></dd> -</dl> -</td></tr></table> <p> -<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> -<tr bgcolor="#ffc8d8"> -<td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="Loader">class <strong>Loader</strong></a>(<a href="ranger.shared.html#FileManagerAware">ranger.shared.FileManagerAware</a>)</font></td></tr> - -<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> -<td width="100%"><dl><dt>Method resolution order:</dt> -<dd><a href="ranger.fsobject.loader.html#Loader">Loader</a></dd> -<dd><a href="ranger.shared.html#FileManagerAware">ranger.shared.FileManagerAware</a></dd> -<dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> -</dl> -<hr> -Methods defined here:<br> -<dl><dt><a name="Loader-__init__"><strong>__init__</strong></a>(self)</dt></dl> - -<dl><dt><a name="Loader-add"><strong>add</strong></a>(self, obj)</dt><dd><tt>Add an <a href="__builtin__.html#object">object</a> to the queue.<br> -It should have a load_generator method.</tt></dd></dl> - -<dl><dt><a name="Loader-has_work"><strong>has_work</strong></a>(self)</dt><dd><tt>Is there anything to load?</tt></dd></dl> - -<dl><dt><a name="Loader-move"><strong>move</strong></a>(self, _from, to)</dt></dl> - -<dl><dt><a name="Loader-remove"><strong>remove</strong></a>(self, item<font color="#909090">=None</font>, index<font color="#909090">=None</font>)</dt></dl> - -<dl><dt><a name="Loader-rotate"><strong>rotate</strong></a>(self)</dt><dd><tt>Rotate the throbber</tt></dd></dl> - -<dl><dt><a name="Loader-work"><strong>work</strong></a>(self)</dt><dd><tt>Load items from the queue if there are any.<br> -Stop after approximately self.<strong>seconds_of_work_time</strong>.</tt></dd></dl> - -<hr> -Data and other attributes defined here:<br> -<dl><dt><strong>seconds_of_work_time</strong> = 0.029999999999999999</dl> - -<hr> -Data and other attributes inherited from <a href="ranger.shared.html#FileManagerAware">ranger.shared.FileManagerAware</a>:<br> -<dl><dt><strong>fm</strong> = None</dl> - -<hr> -Data descriptors inherited from <a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a>:<br> -<dl><dt><strong>__dict__</strong></dt> -<dd><tt>dictionary for instance variables (if defined)</tt></dd> -</dl> -<dl><dt><strong>__weakref__</strong></dt> -<dd><tt>list of weak references to the object (if defined)</tt></dd> -</dl> -</td></tr></table></td></tr></table><p> -<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> -<tr bgcolor="#eeaa77"> -<td colspan=3 valign=bottom> <br> -<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> - -<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> -<td width="100%"><dl><dt><a name="-status_generator"><strong>status_generator</strong></a>()</dt><dd><tt>Generate a rotating line which can be used as a throbber</tt></dd></dl> - <dl><dt><a name="-time"><strong>time</strong></a>(...)</dt><dd><tt><a href="#-time">time</a>() -> floating point number<br> - <br> -Return the current time in seconds since the Epoch.<br> -Fractions of a second may be present if the system clock provides them.</tt></dd></dl> -</td></tr></table> -</body></html> \ No newline at end of file diff --git a/doc/pydoc/ranger.gui.bar.html b/doc/pydoc/ranger.gui.bar.html index 0eab7f3b..988c736b 100644 --- a/doc/pydoc/ranger.gui.bar.html +++ b/doc/pydoc/ranger.gui.bar.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.gui.bar</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.gui.html"><font color="#ffffff">gui</font></a>.bar</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/gui/bar.py">/home/hut/ranger/ranger/gui/bar.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/gui/bar.py">/home/hut/code/ranger/ranger/gui/bar.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> @@ -31,13 +31,13 @@ <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> <td width="100%"><dl> -<dt><font face="helvetica, arial"><a href="__builtin__.html#list">__builtin__.list</a>(<a href="__builtin__.html#object">__builtin__.object</a>) +<dt><font face="helvetica, arial"><a href="builtins.html#list">builtins.list</a>(<a href="builtins.html#object">builtins.object</a>) </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="ranger.gui.bar.html#BarSide">BarSide</a> </font></dt></dl> </dd> -<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> +<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a> </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="ranger.gui.bar.html#Bar">Bar</a> @@ -49,7 +49,7 @@ <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="Bar">class <strong>Bar</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> +<font color="#000000" face="helvetica, arial"><a name="Bar">class <strong>Bar</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr> <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> <td width="100%">Methods defined here:<br> @@ -91,13 +91,13 @@ Data and other attributes defined here:<br> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="BarSide">class <strong>BarSide</strong></a>(<a href="__builtin__.html#list">__builtin__.list</a>)</font></td></tr> +<font color="#000000" face="helvetica, arial"><a name="BarSide">class <strong>BarSide</strong></a>(<a href="builtins.html#list">builtins.list</a>)</font></td></tr> <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> <td width="100%"><dl><dt>Method resolution order:</dt> <dd><a href="ranger.gui.bar.html#BarSide">BarSide</a></dd> -<dd><a href="__builtin__.html#list">__builtin__.list</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#list">builtins.list</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> @@ -122,17 +122,13 @@ Data descriptors defined here:<br> <dd><tt>list of weak references to the object (if defined)</tt></dd> </dl> <hr> -Methods inherited from <a href="__builtin__.html#list">__builtin__.list</a>:<br> +Methods inherited from <a href="builtins.html#list">builtins.list</a>:<br> <dl><dt><a name="BarSide-__add__"><strong>__add__</strong></a>(...)</dt><dd><tt>x.<a href="#BarSide-__add__">__add__</a>(y) <==> x+y</tt></dd></dl> <dl><dt><a name="BarSide-__contains__"><strong>__contains__</strong></a>(...)</dt><dd><tt>x.<a href="#BarSide-__contains__">__contains__</a>(y) <==> y in x</tt></dd></dl> <dl><dt><a name="BarSide-__delitem__"><strong>__delitem__</strong></a>(...)</dt><dd><tt>x.<a href="#BarSide-__delitem__">__delitem__</a>(y) <==> del x[y]</tt></dd></dl> -<dl><dt><a name="BarSide-__delslice__"><strong>__delslice__</strong></a>(...)</dt><dd><tt>x.<a href="#BarSide-__delslice__">__delslice__</a>(i, j) <==> del x[i:j]<br> - <br> -Use of negative indices is not supported.</tt></dd></dl> - <dl><dt><a name="BarSide-__eq__"><strong>__eq__</strong></a>(...)</dt><dd><tt>x.<a href="#BarSide-__eq__">__eq__</a>(y) <==> x==y</tt></dd></dl> <dl><dt><a name="BarSide-__ge__"><strong>__ge__</strong></a>(...)</dt><dd><tt>x.<a href="#BarSide-__ge__">__ge__</a>(y) <==> x>=y</tt></dd></dl> @@ -141,10 +137,6 @@ Use of negative indices is not supported.</tt></dd <dl><dt><a name="BarSide-__getitem__"><strong>__getitem__</strong></a>(...)</dt><dd><tt>x.<a href="#BarSide-__getitem__">__getitem__</a>(y) <==> x[y]</tt></dd></dl> -<dl><dt><a name="BarSide-__getslice__"><strong>__getslice__</strong></a>(...)</dt><dd><tt>x.<a href="#BarSide-__getslice__">__getslice__</a>(i, j) <==> x[i:j]<br> - <br> -Use of negative indices is not supported.</tt></dd></dl> - <dl><dt><a name="BarSide-__gt__"><strong>__gt__</strong></a>(...)</dt><dd><tt>x.<a href="#BarSide-__gt__">__gt__</a>(y) <==> x>y</tt></dd></dl> <dl><dt><a name="BarSide-__iadd__"><strong>__iadd__</strong></a>(...)</dt><dd><tt>x.<a href="#BarSide-__iadd__">__iadd__</a>(y) <==> x+=y</tt></dd></dl> @@ -165,51 +157,46 @@ Use of negative indices is not supported.</tt></dd <dl><dt><a name="BarSide-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#BarSide-__repr__">__repr__</a>() <==> repr(x)</tt></dd></dl> -<dl><dt><a name="BarSide-__reversed__"><strong>__reversed__</strong></a>(...)</dt><dd><tt>L.<a href="#BarSide-__reversed__">__reversed__</a>() -- return a reverse iterator over the <a href="__builtin__.html#list">list</a></tt></dd></dl> +<dl><dt><a name="BarSide-__reversed__"><strong>__reversed__</strong></a>(...)</dt><dd><tt>L.<a href="#BarSide-__reversed__">__reversed__</a>() -- return a reverse iterator over the <a href="builtins.html#list">list</a></tt></dd></dl> <dl><dt><a name="BarSide-__rmul__"><strong>__rmul__</strong></a>(...)</dt><dd><tt>x.<a href="#BarSide-__rmul__">__rmul__</a>(n) <==> n*x</tt></dd></dl> <dl><dt><a name="BarSide-__setitem__"><strong>__setitem__</strong></a>(...)</dt><dd><tt>x.<a href="#BarSide-__setitem__">__setitem__</a>(i, y) <==> x[i]=y</tt></dd></dl> -<dl><dt><a name="BarSide-__setslice__"><strong>__setslice__</strong></a>(...)</dt><dd><tt>x.<a href="#BarSide-__setslice__">__setslice__</a>(i, j, y) <==> x[i:j]=y<br> - <br> -Use of negative indices is not supported.</tt></dd></dl> - <dl><dt><a name="BarSide-__sizeof__"><strong>__sizeof__</strong></a>(...)</dt><dd><tt>L.<a href="#BarSide-__sizeof__">__sizeof__</a>() -- size of L in memory, in bytes</tt></dd></dl> -<dl><dt><a name="BarSide-append"><strong>append</strong></a>(...)</dt><dd><tt>L.<a href="#BarSide-append">append</a>(<a href="__builtin__.html#object">object</a>) -- append <a href="__builtin__.html#object">object</a> to end</tt></dd></dl> +<dl><dt><a name="BarSide-append"><strong>append</strong></a>(...)</dt><dd><tt>L.<a href="#BarSide-append">append</a>(<a href="builtins.html#object">object</a>) -- append <a href="builtins.html#object">object</a> to end</tt></dd></dl> <dl><dt><a name="BarSide-count"><strong>count</strong></a>(...)</dt><dd><tt>L.<a href="#BarSide-count">count</a>(value) -> integer -- return number of occurrences of value</tt></dd></dl> -<dl><dt><a name="BarSide-extend"><strong>extend</strong></a>(...)</dt><dd><tt>L.<a href="#BarSide-extend">extend</a>(iterable) -- extend <a href="__builtin__.html#list">list</a> by appending elements from the iterable</tt></dd></dl> +<dl><dt><a name="BarSide-extend"><strong>extend</strong></a>(...)</dt><dd><tt>L.<a href="#BarSide-extend">extend</a>(iterable) -- extend <a href="builtins.html#list">list</a> by appending elements from the iterable</tt></dd></dl> <dl><dt><a name="BarSide-index"><strong>index</strong></a>(...)</dt><dd><tt>L.<a href="#BarSide-index">index</a>(value, [start, [stop]]) -> integer -- return first index of value.<br> Raises ValueError if the value is not present.</tt></dd></dl> -<dl><dt><a name="BarSide-insert"><strong>insert</strong></a>(...)</dt><dd><tt>L.<a href="#BarSide-insert">insert</a>(index, <a href="__builtin__.html#object">object</a>) -- insert <a href="__builtin__.html#object">object</a> before index</tt></dd></dl> +<dl><dt><a name="BarSide-insert"><strong>insert</strong></a>(...)</dt><dd><tt>L.<a href="#BarSide-insert">insert</a>(index, <a href="builtins.html#object">object</a>) -- insert <a href="builtins.html#object">object</a> before index</tt></dd></dl> <dl><dt><a name="BarSide-pop"><strong>pop</strong></a>(...)</dt><dd><tt>L.<a href="#BarSide-pop">pop</a>([index]) -> item -- remove and return item at index (default last).<br> -Raises IndexError if <a href="__builtin__.html#list">list</a> is empty or index is out of range.</tt></dd></dl> +Raises IndexError if <a href="builtins.html#list">list</a> is empty or index is out of range.</tt></dd></dl> <dl><dt><a name="BarSide-remove"><strong>remove</strong></a>(...)</dt><dd><tt>L.<a href="#BarSide-remove">remove</a>(value) -- remove first occurrence of value.<br> Raises ValueError if the value is not present.</tt></dd></dl> <dl><dt><a name="BarSide-reverse"><strong>reverse</strong></a>(...)</dt><dd><tt>L.<a href="#BarSide-reverse">reverse</a>() -- reverse *IN PLACE*</tt></dd></dl> -<dl><dt><a name="BarSide-sort"><strong>sort</strong></a>(...)</dt><dd><tt>L.<a href="#BarSide-sort">sort</a>(cmp=None, key=None, reverse=False) -- stable sort *IN PLACE*;<br> -cmp(x, y) -> -1, 0, 1</tt></dd></dl> +<dl><dt><a name="BarSide-sort"><strong>sort</strong></a>(...)</dt><dd><tt>L.<a href="#BarSide-sort">sort</a>(key=None, reverse=False) -- stable sort *IN PLACE*</tt></dd></dl> <hr> -Data and other attributes inherited from <a href="__builtin__.html#list">__builtin__.list</a>:<br> +Data and other attributes inherited from <a href="builtins.html#list">builtins.list</a>:<br> <dl><dt><strong>__hash__</strong> = None</dl> -<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#BarSide-__new__">__new__</a>(S, ...) -> a new <a href="__builtin__.html#object">object</a> with type S, a subtype of T</tt></dl> +<dl><dt><strong>__new__</strong> = <built-in method __new__ of type object><dd><tt>T.<a href="#BarSide-__new__">__new__</a>(S, ...) -> a new <a href="builtins.html#object">object</a> with type S, a subtype of T</tt></dl> </td></tr></table> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="ColoredString">class <strong>ColoredString</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> +<font color="#000000" face="helvetica, arial"><a name="ColoredString">class <strong>ColoredString</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr> <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> <td width="100%">Methods defined here:<br> diff --git a/doc/pydoc/ranger.gui.color.html b/doc/pydoc/ranger.gui.color.html index 75545834..706b216c 100644 --- a/doc/pydoc/ranger.gui.color.html +++ b/doc/pydoc/ranger.gui.color.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.gui.color</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.gui.html"><font color="#ffffff">gui</font></a>.color</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/gui/color.py">/home/hut/ranger/ranger/gui/color.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/gui/color.py">/home/hut/code/ranger/ranger/gui/color.py</a></font></td></tr></table> <p><tt>Contains abbreviations to curses color/attribute constants.<br> <br> Multiple attributes can be combined with the | (or) operator, toggled<br> diff --git a/doc/pydoc/ranger.gui.colorscheme.html b/doc/pydoc/ranger.gui.colorscheme.html index c44d0873..771dee29 100644 --- a/doc/pydoc/ranger.gui.colorscheme.html +++ b/doc/pydoc/ranger.gui.colorscheme.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.gui.colorscheme</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.gui.html"><font color="#ffffff">gui</font></a>.colorscheme</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/gui/colorscheme.py">/home/hut/ranger/ranger/gui/colorscheme.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/gui/colorscheme.py">/home/hut/code/ranger/ranger/gui/colorscheme.py</a></font></td></tr></table> <p><tt>Colorschemes define colors for specific contexts.<br> <br> Generally, this works by passing a set of keywords (strings) to<br> @@ -51,7 +51,7 @@ colorscheme = colorschemes.filename.classname</tt></p> <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> <td width="100%"><dl> -<dt><font face="helvetica, arial"><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a>(<a href="__builtin__.html#object">__builtin__.object</a>) +<dt><font face="helvetica, arial"><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a>(<a href="builtins.html#object">builtins.object</a>) </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="ranger.gui.colorscheme.html#ColorScheme">ColorScheme</a> @@ -74,7 +74,7 @@ which fits to the given keys.<br> </tt></td></tr> <td width="100%"><dl><dt>Method resolution order:</dt> <dd><a href="ranger.gui.colorscheme.html#ColorScheme">ColorScheme</a></dd> <dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> diff --git a/doc/pydoc/ranger.gui.curses_shortcuts.html b/doc/pydoc/ranger.gui.curses_shortcuts.html index 724177b3..56fb8618 100644 --- a/doc/pydoc/ranger.gui.curses_shortcuts.html +++ b/doc/pydoc/ranger.gui.curses_shortcuts.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.gui.curses_shortcuts</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.gui.html"><font color="#ffffff">gui</font></a>.curses_shortcuts</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/gui/curses_shortcuts.py">/home/hut/ranger/ranger/gui/curses_shortcuts.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/gui/curses_shortcuts.py">/home/hut/code/ranger/ranger/gui/curses_shortcuts.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> @@ -39,7 +39,7 @@ <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> <td width="100%"><dl> -<dt><font face="helvetica, arial"><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a>(<a href="__builtin__.html#object">__builtin__.object</a>) +<dt><font face="helvetica, arial"><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a>(<a href="builtins.html#object">builtins.object</a>) </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">CursesShortcuts</a> @@ -63,7 +63,7 @@ <td width="100%"><dl><dt>Method resolution order:</dt> <dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">CursesShortcuts</a></dd> <dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> diff --git a/doc/pydoc/ranger.gui.defaultui.html b/doc/pydoc/ranger.gui.defaultui.html index 7bc180ed..93496aed 100644 --- a/doc/pydoc/ranger.gui.defaultui.html +++ b/doc/pydoc/ranger.gui.defaultui.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.gui.defaultui</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.gui.html"><font color="#ffffff">gui</font></a>.defaultui</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/gui/defaultui.py">/home/hut/ranger/ranger/gui/defaultui.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/gui/defaultui.py">/home/hut/code/ranger/ranger/gui/defaultui.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> @@ -55,7 +55,7 @@ <dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd> <dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd> <dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> diff --git a/doc/pydoc/ranger.gui.displayable.html b/doc/pydoc/ranger.gui.displayable.html index a749ec1e..2e0cf7b6 100644 --- a/doc/pydoc/ranger.gui.displayable.html +++ b/doc/pydoc/ranger.gui.displayable.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.gui.displayable</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.gui.html"><font color="#ffffff">gui</font></a>.displayable</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/gui/displayable.py">/home/hut/ranger/ranger/gui/displayable.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/gui/displayable.py">/home/hut/code/ranger/ranger/gui/displayable.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> @@ -120,7 +120,7 @@ Read-Only: (i.e. reccomended not to change manuall <dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd> <dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd> <dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> @@ -220,7 +220,7 @@ container -- a list with all contained object <dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd> <dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd> <dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> diff --git a/doc/pydoc/ranger.gui.html b/doc/pydoc/ranger.gui.html index 125b42ee..8153e361 100644 --- a/doc/pydoc/ranger.gui.html +++ b/doc/pydoc/ranger.gui.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: package ranger.gui</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.gui</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/gui/__init__.py">/home/hut/ranger/ranger/gui/__init__.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/gui/__init__.py">/home/hut/code/ranger/ranger/gui/__init__.py</a></font></td></tr></table> <p></p> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> diff --git a/doc/pydoc/ranger.gui.mouse_event.html b/doc/pydoc/ranger.gui.mouse_event.html index 8ad837c8..98ffe53a 100644 --- a/doc/pydoc/ranger.gui.mouse_event.html +++ b/doc/pydoc/ranger.gui.mouse_event.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.gui.mouse_event</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.gui.html"><font color="#ffffff">gui</font></a>.mouse_event</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/gui/mouse_event.py">/home/hut/ranger/ranger/gui/mouse_event.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/gui/mouse_event.py">/home/hut/code/ranger/ranger/gui/mouse_event.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> @@ -39,7 +39,7 @@ <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> <td width="100%"><dl> -<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> +<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a> </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="ranger.gui.mouse_event.html#MouseEvent">MouseEvent</a> @@ -50,11 +50,11 @@ <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="MouseEvent">class <strong>MouseEvent</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> +<font color="#000000" face="helvetica, arial"><a name="MouseEvent">class <strong>MouseEvent</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr> <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> <td width="100%">Methods defined here:<br> -<dl><dt><a name="MouseEvent-__init__"><strong>__init__</strong></a>(self, getmouse)</dt><dd><tt>Creates a <a href="#MouseEvent">MouseEvent</a> <a href="__builtin__.html#object">object</a> from the result of win.getmouse()</tt></dd></dl> +<dl><dt><a name="MouseEvent-__init__"><strong>__init__</strong></a>(self, getmouse)</dt><dd><tt>Creates a <a href="#MouseEvent">MouseEvent</a> <a href="builtins.html#object">object</a> from the result of win.getmouse()</tt></dd></dl> <dl><dt><a name="MouseEvent-alt"><strong>alt</strong></a>(self)</dt></dl> @@ -62,7 +62,7 @@ <dl><dt><a name="MouseEvent-key_invalid"><strong>key_invalid</strong></a>(self)</dt></dl> -<dl><dt><a name="MouseEvent-mouse_wheel_direction"><strong>mouse_wheel_direction</strong></a>(self)</dt></dl> +<dl><dt><a name="MouseEvent-mouse_wheel_direction"><strong>mouse_wheel_direction</strong></a>(self)</dt><dd><tt>Returns the direction of the scroll action, 0 if there was none</tt></dd></dl> <dl><dt><a name="MouseEvent-pressed"><strong>pressed</strong></a>(self, n)</dt><dd><tt>Returns whether the mouse key n is pressed</tt></dd></dl> @@ -78,6 +78,8 @@ Data descriptors defined here:<br> </dl> <hr> Data and other attributes defined here:<br> +<dl><dt><strong>CTRL_SCROLLWHEEL_MULTIPLIER</strong> = 5</dl> + <dl><dt><strong>PRESSED</strong> = [0, 2, 128, 8192, 524288]</dl> </td></tr></table></td></tr></table> diff --git a/doc/pydoc/ranger.gui.ui.html b/doc/pydoc/ranger.gui.ui.html index f0aece1d..8216ae1b 100644 --- a/doc/pydoc/ranger.gui.ui.html +++ b/doc/pydoc/ranger.gui.ui.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.gui.ui</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.gui.html"><font color="#ffffff">gui</font></a>.ui</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/gui/ui.py">/home/hut/ranger/ranger/gui/ui.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/gui/ui.py">/home/hut/code/ranger/ranger/gui/ui.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> @@ -65,7 +65,7 @@ <dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd> <dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd> <dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> diff --git a/doc/pydoc/ranger.gui.widgets.browsercolumn.html b/doc/pydoc/ranger.gui.widgets.browsercolumn.html index eaa97563..42407c57 100644 --- a/doc/pydoc/ranger.gui.widgets.browsercolumn.html +++ b/doc/pydoc/ranger.gui.widgets.browsercolumn.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.gui.widgets.browsercolumn</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.gui.html"><font color="#ffffff">gui</font></a>.<a href="ranger.gui.widgets.html"><font color="#ffffff">widgets</font></a>.browsercolumn</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/gui/widgets/browsercolumn.py">/home/hut/ranger/ranger/gui/widgets/browsercolumn.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/gui/widgets/browsercolumn.py">/home/hut/code/ranger/ranger/gui/widgets/browsercolumn.py</a></font></td></tr></table> <p><tt>The <a href="#BrowserColumn">BrowserColumn</a> widget displays the contents of a directory or file.</tt></p> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> @@ -51,7 +51,7 @@ <dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd> <dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd> <dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> diff --git a/doc/pydoc/ranger.gui.widgets.browserview.html b/doc/pydoc/ranger.gui.widgets.browserview.html index ca15d9e8..c07ea3d6 100644 --- a/doc/pydoc/ranger.gui.widgets.browserview.html +++ b/doc/pydoc/ranger.gui.widgets.browserview.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.gui.widgets.browserview</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.gui.html"><font color="#ffffff">gui</font></a>.<a href="ranger.gui.widgets.html"><font color="#ffffff">widgets</font></a>.browserview</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/gui/widgets/browserview.py">/home/hut/ranger/ranger/gui/widgets/browserview.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/gui/widgets/browserview.py">/home/hut/code/ranger/ranger/gui/widgets/browserview.py</a></font></td></tr></table> <p><tt>The <a href="#BrowserView">BrowserView</a> manages a set of BrowserColumns.</tt></p> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> @@ -56,7 +56,7 @@ <dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd> <dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd> <dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> @@ -84,12 +84,12 @@ Methods defined here:<br> Data and other attributes defined here:<br> <dl><dt><strong>draw_bookmarks</strong> = False</dl> +<dl><dt><strong>is_collapsed</strong> = False</dl> + <dl><dt><strong>need_clear</strong> = False</dl> <dl><dt><strong>preview</strong> = True</dl> -<dl><dt><strong>preview_available</strong> = True</dl> - <dl><dt><strong>ratios</strong> = None</dl> <dl><dt><strong>stretch_ratios</strong> = None</dl> diff --git a/doc/pydoc/ranger.gui.widgets.console.html b/doc/pydoc/ranger.gui.widgets.console.html index cb84b0cb..4c72eae7 100644 --- a/doc/pydoc/ranger.gui.widgets.console.html +++ b/doc/pydoc/ranger.gui.widgets.console.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.gui.widgets.console</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.gui.html"><font color="#ffffff">gui</font></a>.<a href="ranger.gui.widgets.html"><font color="#ffffff">widgets</font></a>.console</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/gui/widgets/console.py">/home/hut/ranger/ranger/gui/widgets/console.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/gui/widgets/console.py">/home/hut/code/ranger/ranger/gui/widgets/console.py</a></font></td></tr></table> <p><tt>The <a href="#Console">Console</a> widget implements a vim-like console for entering<br> commands, searching and executing files.</tt></p> <p> @@ -72,7 +72,7 @@ commands, searching and executing files.</tt></p> <dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd> <dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd> <dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> @@ -217,7 +217,7 @@ Data and other attributes inherited from <a href="ranger.shared.settings.html#Se <dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd> <dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd> <dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> @@ -357,7 +357,7 @@ Data and other attributes inherited from <a href="ranger.shared.settings.html#Se <dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd> <dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd> <dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> @@ -519,7 +519,7 @@ For a list of other flags than "d", chec <dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd> <dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd> <dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> @@ -678,7 +678,7 @@ and enter the parent directory saving you the <dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd> <dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd> <dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> @@ -851,7 +851,7 @@ open with: totem 1 Ds open in&nb <dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd> <dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd> <dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> @@ -997,7 +997,7 @@ Data and other attributes inherited from <a href="ranger.shared.settings.html#Se <dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd> <dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd> <dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> diff --git a/doc/pydoc/ranger.gui.widgets.console_mode.html b/doc/pydoc/ranger.gui.widgets.console_mode.html index 155fe07d..bdc8e371 100644 --- a/doc/pydoc/ranger.gui.widgets.console_mode.html +++ b/doc/pydoc/ranger.gui.widgets.console_mode.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.gui.widgets.console_mode</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.gui.html"><font color="#ffffff">gui</font></a>.<a href="ranger.gui.widgets.html"><font color="#ffffff">widgets</font></a>.console_mode</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/gui/widgets/console_mode.py">/home/hut/ranger/ranger/gui/widgets/console_mode.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/gui/widgets/console_mode.py">/home/hut/code/ranger/ranger/gui/widgets/console_mode.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> diff --git a/doc/pydoc/ranger.gui.widgets.html b/doc/pydoc/ranger.gui.widgets.html index a37dabc9..d08b2136 100644 --- a/doc/pydoc/ranger.gui.widgets.html +++ b/doc/pydoc/ranger.gui.widgets.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: package ranger.gui.widgets</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.gui.html"><font color="#ffffff">gui</font></a>.widgets</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/gui/widgets/__init__.py">/home/hut/ranger/ranger/gui/widgets/__init__.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/gui/widgets/__init__.py">/home/hut/code/ranger/ranger/gui/widgets/__init__.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> @@ -71,7 +71,7 @@ classification of widgets.<br> </tt></td></tr> <dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd> <dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd> <dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods inherited from <a href="ranger.gui.displayable.html#Displayable">ranger.gui.displayable.Displayable</a>:<br> diff --git a/doc/pydoc/ranger.gui.widgets.pager.html b/doc/pydoc/ranger.gui.widgets.pager.html index c46fc373..fff55482 100644 --- a/doc/pydoc/ranger.gui.widgets.pager.html +++ b/doc/pydoc/ranger.gui.widgets.pager.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.gui.widgets.pager</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.gui.html"><font color="#ffffff">gui</font></a>.<a href="ranger.gui.widgets.html"><font color="#ffffff">widgets</font></a>.pager</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/gui/widgets/pager.py">/home/hut/ranger/ranger/gui/widgets/pager.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/gui/widgets/pager.py">/home/hut/code/ranger/ranger/gui/widgets/pager.py</a></font></td></tr></table> <p><tt>The pager displays text and allows you to scroll inside it.</tt></p> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> @@ -49,7 +49,7 @@ <dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd> <dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd> <dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> diff --git a/doc/pydoc/ranger.gui.widgets.statusbar.html b/doc/pydoc/ranger.gui.widgets.statusbar.html index 169692b9..7fd7cb4b 100644 --- a/doc/pydoc/ranger.gui.widgets.statusbar.html +++ b/doc/pydoc/ranger.gui.widgets.statusbar.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.gui.widgets.statusbar</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.gui.html"><font color="#ffffff">gui</font></a>.<a href="ranger.gui.widgets.html"><font color="#ffffff">widgets</font></a>.statusbar</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/gui/widgets/statusbar.py">/home/hut/ranger/ranger/gui/widgets/statusbar.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/gui/widgets/statusbar.py">/home/hut/code/ranger/ranger/gui/widgets/statusbar.py</a></font></td></tr></table> <p><tt>The statusbar displays information about the current file and directory.<br> <br> On the left side, there is a display similar to what "ls -l" would<br> @@ -22,7 +22,7 @@ such as the space used by all the files& <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> <td width="100%"><dl> -<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> +<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a> </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="ranger.gui.widgets.statusbar.html#Message">Message</a> @@ -39,7 +39,7 @@ such as the space used by all the files& <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="Message">class <strong>Message</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> +<font color="#000000" face="helvetica, arial"><a name="Message">class <strong>Message</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr> <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> <td width="100%">Methods defined here:<br> @@ -85,7 +85,7 @@ such as the space used by all the files& <dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd> <dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd> <dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> @@ -124,7 +124,7 @@ Methods inherited from <a href="ranger.gui.displayable.html#Displayable">ranger. <dl><dt><a name="StatusBar-__bool__"><strong>__bool__</strong></a> = __nonzero__(self)</dt><dd><tt>Always True</tt></dd></dl> <dl><dt><a name="StatusBar-__contains__"><strong>__contains__</strong></a>(self, item)</dt><dd><tt>Is item inside the boundaries?<br> -item can be an iterable like [y, x] or an <a href="__builtin__.html#object">object</a> with x and y methods.</tt></dd></dl> +item can be an iterable like [y, x] or an <a href="builtins.html#object">object</a> with x and y methods.</tt></dd></dl> <dl><dt><a name="StatusBar-__nonzero__"><strong>__nonzero__</strong></a>(self)</dt><dd><tt>Always True</tt></dd></dl> @@ -134,9 +134,9 @@ item can be an iterable like [y, x] or&n Override this!</tt></dd></dl> <dl><dt><a name="StatusBar-contains_point"><strong>contains_point</strong></a>(self, y, x)</dt><dd><tt>Test whether the point (with absolute coordinates) lies<br> -within the boundaries of this <a href="__builtin__.html#object">object</a>.</tt></dd></dl> +within the boundaries of this <a href="builtins.html#object">object</a>.</tt></dd></dl> -<dl><dt><a name="StatusBar-destroy"><strong>destroy</strong></a>(self)</dt><dd><tt>Called when the <a href="__builtin__.html#object">object</a> is destroyed.<br> +<dl><dt><a name="StatusBar-destroy"><strong>destroy</strong></a>(self)</dt><dd><tt>Called when the <a href="builtins.html#object">object</a> is destroyed.<br> Override this!</tt></dd></dl> <dl><dt><a name="StatusBar-finalize"><strong>finalize</strong></a>(self)</dt><dd><tt>Called after every displayable is done drawing.<br> @@ -203,6 +203,9 @@ Return the current process's user id.</tt></dd></dl> <br> Convert seconds since the Epoch to a time tuple expressing local time.<br> When 'seconds' is not passed in, convert the current time instead.</tt></dd></dl> + <dl><dt><a name="-readlink"><strong>readlink</strong></a>(...)</dt><dd><tt><a href="#-readlink">readlink</a>(path) -> path<br> + <br> +Return a string representing the path to which the symbolic link points.</tt></dd></dl> <dl><dt><a name="-strftime"><strong>strftime</strong></a>(...)</dt><dd><tt><a href="#-strftime">strftime</a>(format[, tuple]) -> string<br> <br> Convert a time tuple to a string according to a format specification.<br> diff --git a/doc/pydoc/ranger.gui.widgets.taskview.html b/doc/pydoc/ranger.gui.widgets.taskview.html index 5ee06814..da7bfb62 100644 --- a/doc/pydoc/ranger.gui.widgets.taskview.html +++ b/doc/pydoc/ranger.gui.widgets.taskview.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.gui.widgets.taskview</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.gui.html"><font color="#ffffff">gui</font></a>.<a href="ranger.gui.widgets.html"><font color="#ffffff">widgets</font></a>.taskview</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/gui/widgets/taskview.py">/home/hut/ranger/ranger/gui/widgets/taskview.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/gui/widgets/taskview.py">/home/hut/code/ranger/ranger/gui/widgets/taskview.py</a></font></td></tr></table> <p><tt>The <a href="#TaskView">TaskView</a> allows you to modify what the loader is doing.</tt></p> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> @@ -26,7 +26,7 @@ <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> <td width="100%"><dl> -<dt><font face="helvetica, arial"><a href="ranger.ext.accumulator.html#Accumulator">ranger.ext.accumulator.Accumulator</a>(<a href="__builtin__.html#object">__builtin__.object</a>) +<dt><font face="helvetica, arial"><a href="ranger.ext.accumulator.html#Accumulator">ranger.ext.accumulator.Accumulator</a>(<a href="builtins.html#object">builtins.object</a>) </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="ranger.gui.widgets.taskview.html#TaskView">TaskView</a>(<a href="ranger.gui.widgets.html#Widget">ranger.gui.widgets.Widget</a>, <a href="ranger.ext.accumulator.html#Accumulator">ranger.ext.accumulator.Accumulator</a>) @@ -56,7 +56,7 @@ <dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd> <dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd> <dd><a href="ranger.ext.accumulator.html#Accumulator">ranger.ext.accumulator.Accumulator</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> @@ -136,7 +136,7 @@ Data and other attributes inherited from <a href="ranger.shared.settings.html#Se <hr> Methods inherited from <a href="ranger.ext.accumulator.html#Accumulator">ranger.ext.accumulator.Accumulator</a>:<br> -<dl><dt><a name="TaskView-correct_pointer"><strong>correct_pointer</strong></a>(self)</dt></dl> +<dl><dt><a name="TaskView-correct_pointer"><strong>correct_pointer</strong></a>(self)</dt><dd><tt># XXX Is this still necessary? <a href="#TaskView-move">move</a>() ensures correct pointer position</tt></dd></dl> <dl><dt><a name="TaskView-get_height"><strong>get_height</strong></a>(self)</dt><dd><tt>OVERRIDE THIS</tt></dd></dl> diff --git a/doc/pydoc/ranger.gui.widgets.titlebar.html b/doc/pydoc/ranger.gui.widgets.titlebar.html index b8b4829c..db129e45 100644 --- a/doc/pydoc/ranger.gui.widgets.titlebar.html +++ b/doc/pydoc/ranger.gui.widgets.titlebar.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.gui.widgets.titlebar</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.gui.html"><font color="#ffffff">gui</font></a>.<a href="ranger.gui.widgets.html"><font color="#ffffff">widgets</font></a>.titlebar</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/gui/widgets/titlebar.py">/home/hut/ranger/ranger/gui/widgets/titlebar.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/gui/widgets/titlebar.py">/home/hut/code/ranger/ranger/gui/widgets/titlebar.py</a></font></td></tr></table> <p><tt>The titlebar is the widget at the top, giving you broad orientation.<br> <br> It displays the current path among other things.</tt></p> @@ -43,7 +43,7 @@ It displays the current path among other thin <dd><a href="ranger.shared.html#Awareness">ranger.shared.Awareness</a></dd> <dd><a href="ranger.gui.curses_shortcuts.html#CursesShortcuts">ranger.gui.curses_shortcuts.CursesShortcuts</a></dd> <dd><a href="ranger.shared.settings.html#SettingsAware">ranger.shared.settings.SettingsAware</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> diff --git a/doc/pydoc/ranger.html b/doc/pydoc/ranger.html index d741ca6b..b8e4e198 100644 --- a/doc/pydoc/ranger.html +++ b/doc/pydoc/ranger.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: package ranger</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>ranger</strong></big></big> (version 1.0.4)</font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/__init__.py">/home/hut/ranger/ranger/__init__.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/__init__.py">/home/hut/code/ranger/ranger/__init__.py</a></font></td></tr></table> <p><tt>Ranger - file browser for the unix terminal</tt></p> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> @@ -48,7 +48,7 @@ Has the same arguments as print() in python3. <tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> <td width="100%"><strong>DEFAULT_CONFDIR</strong> = '~/.ranger'<br> <strong>LOGFILE</strong> = '/tmp/errorlog'<br> -<strong>RANGERDIR</strong> = '/home/hut/ranger/ranger'<br> +<strong>RANGERDIR</strong> = '/home/hut/code/ranger/ranger'<br> <strong>USAGE</strong> = '%prog [options] [path/filename]'<br> <strong>__author__</strong> = 'Roman Zimbelmann'<br> <strong>__copyright__</strong> = '<font color="#c040c0">\n</font>Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><font color="#c040c0">\n</font>'<br> diff --git a/doc/pydoc/ranger.shared.html b/doc/pydoc/ranger.shared.html index be6d5da8..3916f7c8 100644 --- a/doc/pydoc/ranger.shared.html +++ b/doc/pydoc/ranger.shared.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: package ranger.shared</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.shared</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/shared/__init__.py">/home/hut/ranger/ranger/shared/__init__.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/shared/__init__.py">/home/hut/code/ranger/ranger/shared/__init__.py</a></font></td></tr></table> <p><tt>Shared objects contain singleton variables which can be<br> inherited, essentially acting like global variables.</tt></p> <p> @@ -28,7 +28,7 @@ inherited, essentially acting like global variables.</t <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> <td width="100%"><dl> -<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> +<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a> </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="ranger.shared.html#Awareness">Awareness</a> @@ -45,7 +45,7 @@ inherited, essentially acting like global variables.</t <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="Awareness">class <strong>Awareness</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> +<font color="#000000" face="helvetica, arial"><a name="Awareness">class <strong>Awareness</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr> <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> <td width="100%">Data descriptors defined here:<br> @@ -65,7 +65,7 @@ inherited, essentially acting like global variables.</t <td width="100%"><dl><dt>Method resolution order:</dt> <dd><a href="ranger.shared.html#EnvironmentAware">EnvironmentAware</a></dd> <dd><a href="ranger.shared.html#Awareness">Awareness</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Data and other attributes defined here:<br> @@ -89,7 +89,7 @@ Data descriptors inherited from <a href="ranger.shared.html#Awareness">Awareness <td width="100%"><dl><dt>Method resolution order:</dt> <dd><a href="ranger.shared.html#FileManagerAware">FileManagerAware</a></dd> <dd><a href="ranger.shared.html#Awareness">Awareness</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Data and other attributes defined here:<br> diff --git a/doc/pydoc/ranger.shared.mimetype.html b/doc/pydoc/ranger.shared.mimetype.html index 5ed1c0ba..594c080d 100644 --- a/doc/pydoc/ranger.shared.mimetype.html +++ b/doc/pydoc/ranger.shared.mimetype.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.shared.mimetype</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.shared.html"><font color="#ffffff">shared</font></a>.mimetype</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/shared/mimetype.py">/home/hut/ranger/ranger/shared/mimetype.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/shared/mimetype.py">/home/hut/code/ranger/ranger/shared/mimetype.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> @@ -39,7 +39,7 @@ <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> <td width="100%"><dl> -<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> +<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a> </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="ranger.shared.mimetype.html#MimeTypeAware">MimeTypeAware</a> @@ -50,7 +50,7 @@ <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="MimeTypeAware">class <strong>MimeTypeAware</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> +<font color="#000000" face="helvetica, arial"><a name="MimeTypeAware">class <strong>MimeTypeAware</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr> <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> <td width="100%">Methods defined here:<br> diff --git a/doc/pydoc/ranger.shared.settings.html b/doc/pydoc/ranger.shared.settings.html index 4415a12e..ddee912d 100644 --- a/doc/pydoc/ranger.shared.settings.html +++ b/doc/pydoc/ranger.shared.settings.html @@ -1,6 +1,6 @@ - <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module ranger.shared.settings</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> @@ -8,7 +8,7 @@ <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="ranger.html"><font color="#ffffff">ranger</font></a>.<a href="ranger.shared.html"><font color="#ffffff">shared</font></a>.settings</strong></big></big></font></td ><td align=right valign=bottom -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/ranger/ranger/shared/settings.py">/home/hut/ranger/ranger/shared/settings.py</a></font></td></tr></table> +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/hut/code/ranger/ranger/shared/settings.py">/home/hut/code/ranger/ranger/shared/settings.py</a></font></td></tr></table> <p><tt># Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com><br> #<br> # This program is free software: you can redistribute it and/or modify<br> @@ -40,13 +40,13 @@ <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> <td width="100%"><dl> -<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> +<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a> </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="ranger.shared.settings.html#SettingsAware">SettingsAware</a> </font></dt></dl> </dd> -<dt><font face="helvetica, arial"><a href="ranger.ext.signal_dispatcher.html#SignalDispatcher">ranger.ext.signal_dispatcher.SignalDispatcher</a>(<a href="__builtin__.html#object">__builtin__.object</a>) +<dt><font face="helvetica, arial"><a href="ranger.ext.signal_dispatcher.html#SignalDispatcher">ranger.ext.signal_dispatcher.SignalDispatcher</a>(<a href="builtins.html#object">builtins.object</a>) </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="ranger.shared.settings.html#SettingObject">SettingObject</a> @@ -63,7 +63,7 @@ <td width="100%"><dl><dt>Method resolution order:</dt> <dd><a href="ranger.shared.settings.html#SettingObject">SettingObject</a></dd> <dd><a href="ranger.ext.signal_dispatcher.html#SignalDispatcher">ranger.ext.signal_dispatcher.SignalDispatcher</a></dd> -<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> +<dd><a href="builtins.html#object">builtins.object</a></dd> </dl> <hr> Methods defined here:<br> @@ -103,7 +103,7 @@ Data descriptors inherited from <a href="ranger.ext.signal_dispatcher.html#Signa <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> -<font color="#000000" face="helvetica, arial"><a name="SettingsAware">class <strong>SettingsAware</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> +<font color="#000000" face="helvetica, arial"><a name="SettingsAware">class <strong>SettingsAware</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr> <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> <td colspan=2><tt># -- globalize the settings --<br> </tt></td></tr> @@ -126,5 +126,5 @@ Data and other attributes defined here:<br> <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> <tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> -<td width="100%"><strong>ALLOWED_SETTINGS</strong> = {'autosave_bookmarks': <type 'bool'>, 'collapse_preview': <type 'bool'>, 'colorscheme': <type 'str'>, 'colorscheme_overlay': (<type 'NoneType'>, <type 'function'>), 'column_ratios': (<type 'tuple'>, <type 'list'>, <type 'set'>), 'dirname_in_tabs': <type 'bool'>, 'display_size_in_main_column': <type 'bool'>, 'display_size_in_status_bar': <type 'bool'>, 'draw_bookmark_borders': <type 'bool'>, 'draw_borders': <type 'bool'>, ...}</td></tr></table> +<td width="100%"><strong>ALLOWED_SETTINGS</strong> = {'autosave_bookmarks': <class 'bool'>, 'collapse_preview': <class 'bool'>, 'colorscheme': <class 'str'>, 'colorscheme_overlay': (<class 'NoneType'>, <class 'function'>), 'column_ratios': (<class 'tuple'>, <class 'list'>, <class 'set'>), 'dirname_in_tabs': <class 'bool'>, 'display_size_in_main_column': <class 'bool'>, 'display_size_in_status_bar': <class 'bool'>, 'draw_bookmark_borders': <class 'bool'>, 'draw_borders': <class 'bool'>, ...}</td></tr></table> </body></html> \ No newline at end of file diff --git a/ranger/__main__.py b/ranger/__main__.py index f941299e..9317d428 100644 --- a/ranger/__main__.py +++ b/ranger/__main__.py @@ -16,30 +16,19 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +# Most import statements in this module are inside the functions. +# This enables more convenient exception handling in ranger.py +# (ImportError will imply that this module can't be found) +# convenient exception handling in ranger.py (ImportError) + import os import sys -import ranger -import locale - -from optparse import OptionParser, SUPPRESS_HELP -from ranger.ext.openstruct import OpenStruct -from ranger import __version__, USAGE, DEFAULT_CONFDIR -import ranger.api.commands - -from signal import signal, SIGINT -from locale import getdefaultlocale, setlocale, LC_ALL - -from ranger.ext import curses_interrupt_handler -from ranger.core.runner import Runner -from ranger.core.fm import FM -from ranger.core.environment import Environment -from ranger.shared import (EnvironmentAware, FileManagerAware, - SettingsAware) -from ranger.gui.defaultui import DefaultUI as UI -from ranger.fsobject import File def parse_arguments(): """Parse the program arguments""" + from optparse import OptionParser, SUPPRESS_HELP + from ranger import __version__, USAGE, DEFAULT_CONFDIR + from ranger.ext.openstruct import OpenStruct parser = OptionParser(usage=USAGE, version='ranger ' + __version__) parser.add_option('-d', '--debug', action='store_true', @@ -84,6 +73,9 @@ def allow_access_to_confdir(confdir, allow): def load_settings(fm, clean): + import ranger.shared + import ranger.api.commands + import ranger.api.keys if not clean: allow_access_to_confdir(ranger.arg.confdir, True) @@ -106,10 +98,8 @@ def load_settings(fm, clean): from ranger.defaults import apps # Load keys - from ranger import shared, api - from ranger.api import keys - keymanager = shared.EnvironmentAware.env.keymanager - keys.keymanager = keymanager + keymanager = ranger.shared.EnvironmentAware.env.keymanager + ranger.api.keys.keymanager = keymanager from ranger.defaults import keys try: import keys @@ -124,6 +114,9 @@ def load_settings(fm, clean): else: comcont = ranger.api.commands.CommandContainer() ranger.api.commands.alias = comcont.alias + from ranger.api import keys + keymanager = ranger.shared.EnvironmentAware.env.keymanager + ranger.api.keys.keymanager = keymanager from ranger.defaults import commands, keys, apps comcont.load_commands_from_module(commands) commands = comcont @@ -133,6 +126,7 @@ def load_settings(fm, clean): def load_apps(fm, clean): + import ranger if not clean: allow_access_to_confdir(ranger.arg.confdir, True) try: @@ -153,8 +147,19 @@ def main(): print(errormessage) print('ranger requires the python curses module. Aborting.') sys.exit(1) - - locale.setlocale(locale.LC_ALL, '') + import locale + import ranger + from ranger.ext import curses_interrupt_handler + from ranger.core.runner import Runner + from ranger.core.fm import FM + from ranger.core.environment import Environment + from ranger.gui.defaultui import DefaultUI as UI + from ranger.fsobject import File + from ranger.shared import (EnvironmentAware, FileManagerAware, + SettingsAware) + + try: locale.setlocale(locale.LC_ALL, '') + except: print("Warning: Unable to set locale. Expect encoding problems.") arg = parse_arguments() ranger.arg = arg @@ -166,6 +171,8 @@ def main(): if arg.targets: target = arg.targets[0] + if target.startswith('file://'): + target = target[7:] if not os.access(target, os.F_OK): print("File or directory doesn't exist: %s" % target) sys.exit(1) @@ -181,6 +188,7 @@ def main(): else: path = '.' + crash_exception = None try: # Initialize objects EnvironmentAware._assign(Environment(path)) @@ -193,12 +201,25 @@ def main(): fm.initialize() fm.ui.initialize() fm.loop() + except Exception as e: + crash_exception = e + if not (arg.debug or arg.clean): + import traceback + dumpname = ranger.relpath_conf('traceback') + traceback.print_exc(file=open(dumpname, 'w')) finally: # Finish, clean up try: fm.ui.destroy() except (AttributeError, NameError): pass + if crash_exception: + print("Fatal: " + str(crash_exception)) + if arg.debug or arg.clean: + raise crash_exception + else: + print("A traceback has been saved to " + dumpname) + print("Please include it in a bugreport.") if __name__ == '__main__': diff --git a/ranger/colorschemes/default88.py b/ranger/colorschemes/default88.py index 9af6dca7..9c00d9ff 100644 --- a/ranger/colorschemes/default88.py +++ b/ranger/colorschemes/default88.py @@ -20,9 +20,7 @@ For now, just map each of the 8 base colors to new ones for brighter blue, etc. and do some minor modifications. """ -from ranger.gui.colorscheme import ColorScheme from ranger.gui.color import * - from ranger.colorschemes.default import Default import curses diff --git a/ranger/colorschemes/jungle.py b/ranger/colorschemes/jungle.py index 376091c0..af10a404 100644 --- a/ranger/colorschemes/jungle.py +++ b/ranger/colorschemes/jungle.py @@ -13,7 +13,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -from ranger.gui.colorscheme import ColorScheme from ranger.gui.color import * from ranger.colorschemes.default import Default diff --git a/ranger/colorschemes/texas.py b/ranger/colorschemes/texas.py index 93fd4791..26e8916d 100644 --- a/ranger/colorschemes/texas.py +++ b/ranger/colorschemes/texas.py @@ -17,9 +17,7 @@ Some experimental colorscheme. """ -from ranger.gui.colorscheme import ColorScheme from ranger.gui.color import * - from ranger.colorschemes.default import Default import curses diff --git a/ranger/container/bookmarks.py b/ranger/container/bookmarks.py index f06b7498..1e801638 100644 --- a/ranger/container/bookmarks.py +++ b/ranger/container/bookmarks.py @@ -156,7 +156,10 @@ class Bookmarks(object): for key, value in self.dct.items(): if type(key) == str\ and key in ALLOWED_KEYS: - f.write("{0}:{1}\n".format(str(key), str(value))) + try: + f.write("{0}:{1}\n".format(str(key), str(value))) + except: + pass f.close() self._update_mtime() diff --git a/ranger/core/actions.py b/ranger/core/actions.py index e1346612..7c996895 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -109,9 +109,6 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): self.move(to=1, percentage=True) # moves to 80% """ cwd = self.env.cwd - if not cwd or not cwd.accessible or not cwd.content_loaded: - return - direction = Direction(kw) if 'left' in direction or direction.left() > 0: steps = direction.left() @@ -122,25 +119,24 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): except: return self.env.enter_dir(directory) - - elif 'right' in direction: - mode = 0 - if narg is not None: - mode = narg - cf = self.env.cf - selection = self.env.get_selection() - if not self.env.enter_dir(cf) and selection: - if self.execute_file(selection, mode=mode) is False: - self.open_console(cmode.OPEN_QUICK) - - elif direction.vertical(): - newpos = direction.move( - direction=direction.down(), - override=narg, - maximum=len(cwd), - current=cwd.pointer, - pagesize=self.ui.browser.hei) - cwd.move(to=newpos) + if cwd and cwd.accessible and cwd.content_loaded: + if 'right' in direction: + mode = 0 + if narg is not None: + mode = narg + cf = self.env.cf + selection = self.env.get_selection() + if not self.env.enter_dir(cf) and selection: + if self.execute_file(selection, mode=mode) is False: + self.open_console(cmode.OPEN_QUICK) + elif direction.vertical(): + newpos = direction.move( + direction=direction.down(), + override=narg, + maximum=len(cwd), + current=cwd.pointer, + pagesize=self.ui.browser.hei) + cwd.move(to=newpos) def move_parent(self, n): self.enter_dir('..') diff --git a/ranger/core/environment.py b/ranger/core/environment.py index 296ba108..bb6abb36 100644 --- a/ranger/core/environment.py +++ b/ranger/core/environment.py @@ -190,10 +190,6 @@ class Environment(SettingsAware, SignalDispatcher): self.cwd = new_cwd self.cwd.load_content_if_outdated() - if self.cwd.files: - for dir in self.cwd.files: - if dir.is_directory and dir.infostring == 'unknown': - dir.determine_infostring() # build the pathway, a tuple of directory objects which lie # on the path to the current directory. diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py index b17e5e8f..8ecb50b8 100644 --- a/ranger/defaults/keys.py +++ b/ranger/defaults/keys.py @@ -184,7 +184,7 @@ map('du', fm.execute_command('du --max-depth=1 -h | less')) # -------------------------------------------------- toggle options map('z<bg>', fm.hint("[*cdfhimpPs*] show_*h*idden *p*review_files "\ "*P*review_dirs *f*ilter flush*i*nput *m*ouse")) -map('zh', fm.toggle_boolean_option('show_hidden')) +map('zh', '<C-h>', fm.toggle_boolean_option('show_hidden')) map('zp', fm.toggle_boolean_option('preview_files')) map('zP', fm.toggle_boolean_option('preview_directories')) map('zi', fm.toggle_boolean_option('flushinput')) @@ -280,7 +280,7 @@ map('um<bg>', fm.hint("delete which bookmark?")) # ---------------------------------------------------- change views map('i', fm.display_file()) -map('<C-P>', fm.display_log()) +map('W', fm.display_log()) map('?', fm.display_help()) map('w', lambda arg: arg.fm.ui.open_taskview()) @@ -313,8 +313,8 @@ map.merge(global_keys) map.merge(vim_aliases) # -------------------------------------------------------- movement -map('<left>', wdg.move(left=4)) -map('<right>', wdg.move(right=4)) +map('<left>', 'h', wdg.move(left=4)) +map('<right>', 'l', wdg.move(right=4)) map('<C-D>', 'd', wdg.move(down=0.5, pages=True)) map('<C-U>', 'u', wdg.move(up=0.5, pages=True)) map('<C-F>', 'f', '<pagedown>', wdg.move(down=1, pages=True)) diff --git a/ranger/defaults/options.py b/ranger/defaults/options.py index ac074e1c..d93d7685 100644 --- a/ranger/defaults/options.py +++ b/ranger/defaults/options.py @@ -88,7 +88,7 @@ max_history_size = 20 max_console_history_size = 20 # Try to keep so much space between the top/bottom border when scrolling: -scroll_offset = 2 +scroll_offset = 8 # Flush the input after each key hit? (Noticable when ranger lags) flushinput = True diff --git a/ranger/ext/spawn.py b/ranger/ext/spawn.py new file mode 100644 index 00000000..9723c1ed --- /dev/null +++ b/ranger/ext/spawn.py @@ -0,0 +1,27 @@ +# Copyright (C) 2009, 2010 Roman Zimbelmann <romanz@lavabit.com> +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +from subprocess import Popen, PIPE +ENCODING = 'utf-8' + +def spawn(*args): + """Runs a program, waits for its termination and returns its stdout""" + if len(args) == 1: + popen_arguments = args[0] + else: + popen_arguments = args + process = Popen(popen_arguments, stdout=PIPE) + stdout, stderr = process.communicate() + return stdout.decode(ENCODING) diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py index 60387e7b..930ecb70 100644 --- a/ranger/fsobject/directory.py +++ b/ranger/fsobject/directory.py @@ -231,7 +231,6 @@ class Directory(FileSystemObject, Accumulator, SettingsAware): self.cycle_list = None self.content_loaded = True - self.determine_infostring() self.last_update_time = time() self.correct_pointer() @@ -250,7 +249,8 @@ class Directory(FileSystemObject, Accumulator, SettingsAware): self.content_outdated = False if not self.loading: - self.load_once() + if not self.loaded: + self.load() if not self.accessible: self.content_loaded = True diff --git a/ranger/fsobject/fsobject.py b/ranger/fsobject/fsobject.py index 3a2f6012..afef48e4 100644 --- a/ranger/fsobject/fsobject.py +++ b/ranger/fsobject/fsobject.py @@ -13,63 +13,60 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -CONTAINER_EXTENSIONS = 'rar zip tar gz bz bz2 tgz 7z iso cab'.split() -DOCUMENT_EXTENSIONS = 'pdf doc ppt odt'.split() -DOCUMENT_BASENAMES = 'README TODO LICENSE COPYING INSTALL'.split() -DOCUMENT_EXTENSIONS = () -DOCUMENT_BASENAMES = () - -import stat -import os -from stat import S_ISLNK, S_ISCHR, S_ISBLK, S_ISSOCK, S_ISFIFO, \ - S_ISDIR, S_IXUSR +CONTAINER_EXTENSIONS = ('7z', 'ace', 'ar', 'arc', 'bz', 'bz2', 'cab', 'cpio', + 'cpt', 'dgc', 'dmg', 'gz', 'iso', 'jar', 'msi', 'pkg', 'rar', 'shar', + 'tar', 'tbz', 'tgz', 'xar', 'xz', 'zip') + +from os import access, listdir, lstat, readlink, stat from time import time -from subprocess import Popen, PIPE from os.path import abspath, basename, dirname, realpath from . import BAD_INFO from ranger.shared import MimeTypeAware, FileManagerAware from ranger.ext.shell_escape import shell_escape +from ranger.ext.spawn import spawn from ranger.ext.human_readable import human_readable class FileSystemObject(MimeTypeAware, FileManagerAware): - is_file = False - is_directory = False - content_loaded = False - force_load = False - path = None - basename = None - basename_lower = None - _shell_escaped_basename = None - _filetype = None - dirname = None - extension = None - exists = False - accessible = False - marked = False - tagged = False - loaded = False - runnable = False - is_link = False - is_device = False - is_socket = False - is_fifo = False - readlink = None - stat = None - infostring = None - permissions = None - size = 0 - - last_used = None - - stopped = False + (_filetype, + _shell_escaped_basename, + basename, + basename_lower, + dirname, + extension, + infostring, + last_used, + path, + permissions, + stat) = (None,) * 11 + + (content_loaded, + force_load, + + is_device, + is_directory, + is_file, + is_fifo, + is_link, + is_socket, + + accessible, + exists, + loaded, + marked, + runnable, + stopped, + tagged, + + audio, + container, + document, + image, + media, + video) = (False,) * 21 - video = False - image = False - audio = False - media = False - document = False - container = False mimetype_tuple = () + size = 0 + def __init__(self, path, preload=None, path_is_abs=False): MimeTypeAware.__init__(self) @@ -104,8 +101,7 @@ class FileSystemObject(MimeTypeAware, FileManagerAware): def filetype(self): if self._filetype is None: try: - got = Popen(["file", '-Lb', '--mime-type', self.path], - stdout=PIPE).communicate()[0] + got = spawn(["file", '-Lb', '--mime-type', self.path]) except OSError: self._filetype = '' else: @@ -139,9 +135,7 @@ class FileSystemObject(MimeTypeAware, FileManagerAware): self.image = self._mimetype.startswith('image') self.audio = self._mimetype.startswith('audio') self.media = self.video or self.image or self.audio - self.document = self._mimetype.startswith('text') \ - or (self.extension in DOCUMENT_EXTENSIONS) \ - or (self.basename in DOCUMENT_BASENAMES) + self.document = self._mimetype.startswith('text') self.container = self.extension in CONTAINER_EXTENSIONS keys = ('video', 'audio', 'image', 'media', 'document', 'container') @@ -174,33 +168,6 @@ class FileSystemObject(MimeTypeAware, FileManagerAware): """Called by directory.mark_item() and similar functions""" self.marked = bool(boolean) - def determine_infostring(self): - self.size = 0 - if self.is_device: - self.infostring = 'dev' - elif self.is_fifo: - self.infostring = 'fifo' - elif self.is_socket: - self.infostring = 'sock' - elif self.is_directory: - try: - self.size = len(os.listdir(self.path)) # bite me - except OSError: - self.infostring = BAD_INFO - self.accessible = False - else: - self.infostring = ' %d' % self.size - self.accessible = True - self.runnable = True - elif self.is_file: - if self.stat: - self.size = self.stat.st_size - self.infostring = ' ' + human_readable(self.size) - else: - self.infostring = BAD_INFO - if self.is_link: - self.infostring = '->' + self.infostring - def load(self): """ reads useful information about the filesystem-object from the @@ -209,82 +176,104 @@ class FileSystemObject(MimeTypeAware, FileManagerAware): self.loaded = True - # Get the stat object, either from preload or from os.[l]stat - self.stat = None + # Get the stat object, either from preload or from [l]stat + new_stat = None + path = self.path if self.preload: - self.stat = self.preload[1] - self.is_link = S_ISLNK(self.stat.st_mode) - if self.is_link: - self.stat = self.preload[0] + new_stat = self.preload[1] + is_link = (new_stat.st_mode & 0o120000) == 0o120000 + if is_link: + new_stat = self.preload[0] self.preload = None else: try: - self.stat = os.lstat(self.path) + new_stat = lstat(path) + is_link = (new_stat.st_mode & 0o120000) == 0o120000 + if is_link: + new_stat = stat(path) except: pass - else: - self.is_link = S_ISLNK(self.stat.st_mode) - if self.is_link: - try: - self.stat = os.stat(self.path) - except: - pass # Set some attributes - if self.stat: - mode = self.stat.st_mode - self.is_device = bool(S_ISCHR(mode) or S_ISBLK(mode)) - self.is_socket = bool(S_ISSOCK(mode)) - self.is_fifo = bool(S_ISFIFO(mode)) + if new_stat: + mode = new_stat.st_mode self.accessible = True - if os.access(self.path, os.F_OK): + self.is_device = (mode & 0o060000) == 0o060000 + self.is_fifo = (mode & 0o010000) == 0o010000 + self.is_link = is_link + self.is_socket = (mode & 0o140000) == 0o140000 + if access(path, 0): self.exists = True - if S_ISDIR(mode): - self.runnable = bool(mode & S_IXUSR) + if self.is_directory: + self.runnable = (mode & 0o0100) == 0o0100 else: self.exists = False self.runnable = False - if self.is_link and self.exists: - self.realpath = realpath(self.path) - self.readlink = os.readlink(self.path) + if is_link: + try: + self.realpath = realpath(path) + except OSError: + pass # it is impossible to get the link destination else: self.accessible = False - self.determine_infostring() + # Determine infostring + if self.is_file: + if new_stat: + self.size = new_stat.st_size + self.infostring = ' ' + human_readable(self.size) + else: + self.size = 0 + self.infostring = '?' + elif self.is_directory: + try: + self.size = len(listdir(path)) # bite me + except OSError: + self.size = 0 + self.infostring = '?' + self.accessible = False + else: + self.infostring = ' %d' % self.size + self.accessible = True + self.runnable = True + elif self.is_device: + self.size = 0 + self.infostring = 'dev' + elif self.is_fifo: + self.size = 0 + self.infostring = 'fifo' + elif self.is_socket: + self.size = 0 + self.infostring = 'sock' + if self.is_link: + self.infostring = '->' + self.infostring + + self.stat = new_stat def get_permission_string(self): if self.permissions is not None: return self.permissions - try: - mode = self.stat.st_mode - except: - return '----??----' - - if S_ISDIR(mode): + if self.is_directory: perms = ['d'] - elif S_ISLNK(mode): + elif self.is_link: perms = ['l'] else: perms = ['-'] - for who in ("USR", "GRP", "OTH"): - for what in "RWX": - if mode & getattr(stat, "S_I" + what + who): - perms.append(what.lower()) + mode = self.stat.st_mode + test = 0o0400 + while test: # will run 3 times because 0o400 >> 9 = 0 + for what in "rwx": + if mode & test: + perms.append(what) else: perms.append('-') + test >>= 1 self.permissions = ''.join(perms) return self.permissions - def load_once(self): - """calls load() if it has not been called at least once yet""" - if not self.loaded: - self.load() - return True - return False - def go(self): """enter the directory if the filemanager is running""" if self.fm: @@ -296,10 +285,11 @@ class FileSystemObject(MimeTypeAware, FileManagerAware): Calls load() if the currently cached information is outdated or nonexistant. """ - if self.load_once(): + if not self.loaded: + self.load() return True try: - real_mtime = os.lstat(self.path).st_mtime + real_mtime = lstat(self.path).st_mtime except OSError: real_mtime = None if self.stat: diff --git a/ranger/gui/curses_shortcuts.py b/ranger/gui/curses_shortcuts.py index 82d8c787..84df5930 100644 --- a/ranger/gui/curses_shortcuts.py +++ b/ranger/gui/curses_shortcuts.py @@ -18,6 +18,22 @@ import _curses from ranger.ext.iter_tools import flatten from ranger.shared import SettingsAware +def ascii_only(string): + # Some python versions have problems with invalid unicode strings. + # I think this exception is rare enough that this naive hack is enough. + # It simply removes all non-ascii chars from a string. + def validate_char(char): + try: + if ord(char) > 127: + return '?' + except: + return '?' + return char + if isinstance(string, str): + return ''.join(validate_char(c) for c in string) + return string + + class CursesShortcuts(SettingsAware): """ This class defines shortcuts to faciliate operations with curses. @@ -33,12 +49,22 @@ class CursesShortcuts(SettingsAware): self.win.addstr(*args) except (_curses.error, TypeError): pass + except UnicodeEncodeError: + try: + self.win.addstr(*(ascii_only(obj) for obj in args)) + except (_curses.error, TypeError): + pass def addnstr(self, *args): try: self.win.addnstr(*args) except (_curses.error, TypeError): pass + except UnicodeEncodeError: + try: + self.win.addnstr(*(ascii_only(obj) for obj in args)) + except (_curses.error, TypeError): + pass def color(self, *keys): """Change the colors from now on.""" diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py index e40003a2..b0c1a352 100644 --- a/ranger/gui/ui.py +++ b/ranger/gui/ui.py @@ -19,6 +19,7 @@ import curses import _curses from .displayable import DisplayableContainer +from ranger.gui.curses_shortcuts import ascii_only from ranger.container.keymap import CommandArgs from .mouse_event import MouseEvent @@ -185,12 +186,12 @@ class UI(DisplayableContainer): keys = [27, keys[1] - 128] self.handle_keys(*keys) self.set_load_mode(previous_load_mode) - if self.settings.flushinput: + if self.settings.flushinput and not self.console.visible: curses.flushinp() else: # Handle simple key presses, CTRL+X, etc here: if key > 0: - if self.settings.flushinput: + if self.settings.flushinput and not self.console.visible: curses.flushinp() if key == curses.KEY_MOUSE: self.handle_mouse() @@ -239,7 +240,10 @@ class UI(DisplayableContainer): split = cwd.rsplit(os.sep, self.settings.shorten_title) if os.sep in split[0]: cwd = os.sep.join(split[1:]) - sys.stdout.write("\033]2;ranger:" + cwd + "\007") + try: + sys.stdout.write("\033]2;ranger:" + cwd + "\007") + except UnicodeEncodeError: + sys.stdout.write("\033]2;ranger:" + ascii_only(cwd) + "\007") self.win.refresh() def finalize(self): diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py index 6e020e5f..1e24e2dd 100644 --- a/ranger/gui/widgets/browsercolumn.py +++ b/ranger/gui/widgets/browsercolumn.py @@ -117,7 +117,7 @@ class BrowserColumn(Pager): pass else: - if self.level > 0: + if self.level > 0 and not direction: self.fm.move(right=0) return True @@ -295,27 +295,22 @@ class BrowserColumn(Pager): this_color.append(drawn.exists and 'good' or 'bad') string = drawn.basename - try: - if self.main_column: - if tagged: - self.win.addnstr(line, 0, text, self.wid - 2) - elif self.wid > 1: - self.win.addnstr(line, 1, text, self.wid - 2) - else: - self.win.addnstr(line, 0, text, self.wid) - - if self.display_infostring and drawn.infostring \ - and self.settings.display_size_in_main_column: - info = drawn.infostring - x = self.wid - 1 - len(info) - if info is BAD_INFO: - bad_info_color = (x, len(str(info))) - if x > 0: - self.win.addstr(line, x, str(info) + ' ') - except: - # the drawing of the last string will cause an error - # because ncurses tries to move out of the bounds - pass + if self.main_column: + if tagged: + self.addnstr(line, 0, text, self.wid - 2) + elif self.wid > 1: + self.addnstr(line, 1, text, self.wid - 2) + else: + self.addnstr(line, 0, text, self.wid) + + if self.display_infostring and drawn.infostring \ + and self.settings.display_size_in_main_column: + info = drawn.infostring + x = self.wid - 1 - len(info) + if info is BAD_INFO: + bad_info_color = (x, len(str(info))) + if x > 0: + self.addstr(line, x, str(info) + ' ') self.color_at(line, 0, self.wid, this_color) if bad_info_color: diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py index 752bfd6b..3019930b 100644 --- a/ranger/gui/widgets/statusbar.py +++ b/ranger/gui/widgets/statusbar.py @@ -23,7 +23,7 @@ such as the space used by all the files in this directory. from pwd import getpwuid from grp import getgrgid -from os import getuid +from os import getuid, readlink from time import time, strftime, localtime from ranger.ext.human_readable import human_readable @@ -164,7 +164,10 @@ class StatusBar(Widget): if target.is_link: how = target.exists and 'good' or 'bad' - dest = target.readlink if target.readlink is not None else '?' + try: + dest = readlink(target.path) + except: + dest = '?' left.add(' -> ' + dest, 'link', how) else: if self.settings.display_size_in_status_bar and target.infostring: diff --git a/ranger/help/movement.py b/ranger/help/movement.py index 194dd3a9..3287e9bb 100644 --- a/ranger/help/movement.py +++ b/ranger/help/movement.py @@ -188,7 +188,7 @@ Clicking into the preview window will usually run the file. |2?| ============================================================================== 1.8 Misc keys - ^P Display the message log + W Display the message log du Display the disk usage of the current directory cd Open the console with ":cd " cw Open the console with ":rename " diff --git a/test/bm_loader.py b/test/bm_loader.py index 4bfc2db9..745e6f3b 100644 --- a/test/bm_loader.py +++ b/test/bm_loader.py @@ -127,6 +127,7 @@ class benchmark_load(object): self.loader.work() +@skip class benchmark_raw_load(object): def __init__(self): SettingsAware.settings = Fake() |