From 05dabd816a8ead6ff0e949cc16bf30140811bad6 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 29 Jun 2020 17:58:01 -0700 Subject: 6594 - start standardizing the meaning of 'print' --- apps/crenshaw2-1b | Bin 44280 -> 44284 bytes 1 file changed, 0 insertions(+), 0 deletions(-) (limited to 'apps/crenshaw2-1b') diff --git a/apps/crenshaw2-1b b/apps/crenshaw2-1b index ec4c777c..a9ca75d0 100755 Binary files a/apps/crenshaw2-1b and b/apps/crenshaw2-1b differ -- cgit 1.4.1-2-gfad0 > index : ranger
mirror of ranger - a simple, vim-like file managerakspecs <akspecs@tilde.institute>
summary refs log blame commit diff stats
path: root/examples/plugin_linemode.py
blob: 52b9c60a29ba6da44f1f2e7fe9fd1d6f3d894de3 (plain) (tree)
1
2
3
4
5
6
7
8
9






                                                                          
                                                                  
 
             
 


                                             
 


                               
 

                                                          
 
                                         
                                 
# 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.

from __future__ import (absolute_import, division, print_function)

import codecs

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


@ranger.api.register_linemode
class MyLinemode(LinemodeBase):
    name = "rot13"

    def filetitle(self, fobj, metadata):
        return codecs.encode(fobj.relative_path, "rot_13")

    def infostring(self, fobj, metadata):
        raise NotImplementedError