summary refs log tree commit diff stats
path: root/examples
Commit message (Expand)AuthorAgeFilesLines
* Merge branch 'vifon/pmount' of https://github.com/Vifon/rangerhut2015-11-141-0/+30
|\
| * Add plugin_pmount.pyWojciech Siewierski2015-10-091-0/+30
* | examples/rc_emacs.conf: re-enable numeric modifier keyshut2015-10-201-1/+0
|/
* Add ability to use ranger as file-chooser in gvimNg Oon-Ee2015-08-041-1/+5
* added examples/plugin_ipc.pyWojciech Siewierski2015-06-211-0/+45
* Fix mktemp invocation to work on Mac OS X and LinuxJesse Byler2015-06-101-1/+1
* Replaced file.basename with file.relative_path where appropriate.Wojciech Siewierski2015-05-082-3/+3
* added examples/rc_emacs.confhut2015-05-041-0/+533
* added example plugin that adds a linemodehut2015-04-191-0/+16
* Should I dual ranger/cleric or wait for the THAC0 bonus? v1.7.0hut2015-04-1410-10/+10
* moved "doc/examples" to "examples" for more visibilityhut2015-04-1311-0/+221
* move examples to doc/exampleshut2013-03-0911-200/+0
* examples/rifle_sxiv: fix rifle_sxiv with chars like []hut2013-03-091-1/+1
* Fixed the sxiv workaround to handle spaces and be more POSIX compliant.Pierre Neidhardt2013-03-051-7/+21
* Added version info to exampleshut2013-03-0111-0/+22
* use 4-space-indents in files that had 2-space-indentshut2013-02-221-5/+5
* core.main: added RANGER_LOAD_DEFAULT_RC environment variablehut2013-02-221-9/+0
* examples/plugin_chmod_keybindings.py: fixed crashhut2013-02-221-1/+1
* examples/rifle_sxiv.sh: removed realpath dependencyhut2013-02-181-1/+8
* examples/rifle_sxiv.sh: remove bash dependencyhut2013-02-181-1/+1
* fsobject.directory.accept_file: pass directory, not dirnamehut2013-02-151-3/+3
* examples/README: add instructions on how to install pluginshut2013-02-131-0/+3
* removed all trailing whitespaceshut2013-02-101-1/+1
* replaced tabs with 4 spaces in all python fileshut2013-02-101-7/+7
* added examples/rifle_different_file_opener.confhut2012-12-041-0/+7
* added examples/plugin_hello_world.pyhut2012-12-041-0/+21
* updated man page, improved hookshut2012-12-041-5/+5
* removed options.py, improved plugins. *UPDATE YOUR COMMANDS.PY*hut2012-12-046-1/+69
* examples/rifle_sxiv.sh: fix symlink handlinghut2012-08-071-1/+1
* added the examples from the man page to the examples directoryhut2012-08-065-0/+67
">: self.win.addstr(*args) except curses.error: if len(args) > 1: self.win.move(y, x) try: self.win.addstr(*_fix_surrogates(args)) except (curses.error, UnicodeError): pass def addnstr(self, *args): y, x = self.win.getyx() try: self.win.addnstr(*args) except curses.error: if len(args) > 2: self.win.move(y, x) try: self.win.addnstr(*_fix_surrogates(args)) except (curses.error, UnicodeError): pass def addch(self, *args): if REVERSE_ADDCH_ARGS and len(args) >= 3: args = [args[1], args[0]] + list(args[2:]) try: self.win.addch(*args) except curses.error: pass def color(self, *keys): """Change the colors from now on.""" attr = self.settings.colorscheme.get_attr(*keys) try: self.win.attrset(attr) except curses.error: pass def color_at(self, y, x, wid, *keys): """Change the colors at the specified position""" attr = self.settings.colorscheme.get_attr(*keys) try: self.win.chgat(y, x, wid, attr) except curses.error: pass def set_fg_bg_attr(self, fg, bg, attr): try: self.win.attrset(curses.color_pair(get_color(fg, bg)) | attr) except curses.error: pass def color_reset(self): """Change the colors to the default colors""" CursesShortcuts.color(self, 'reset')