summary refs log tree commit diff stats
path: root/doc/pydoc/ranger.container.keybuffer.html
Commit message (Expand)AuthorAgeFilesLines
* updated pydoc documentationhut2010-01-131-1/+13
* moved pydoc pages to doc/pydochut2009-12-251-0/+76
a id='n3' href='#n3'>3 4 5 6 7 8 9 10 11 12 13 14 15
16














                                                                          
                                                          
# Compatible since ranger 1.7.0
#
# This sample plugin adds a new linemode displaying the filename in rot13.
# Load this plugin by copying it to ~/.config/ranger/plugins/ and activate
# the linemode by typing ":linemode rot13" in ranger.  Type Mf to restore
# the default linemode.

import codecs
import ranger.api
from ranger.core.linemode import LinemodeBase

@ranger.api.register_linemode
class MyLinemode(LinemodeBase):
    name = "rot13"
    def filetitle(self, file, metadata):
        return codecs.encode(file.relative_path, "rot_13")