about summary refs log tree commit diff stats
path: root/html/056trace.subx.html
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-12-05 23:42:34 -0800
committerKartik Agaram <vc@akkartik.com>2019-12-05 23:45:22 -0800
commitb6d62cc91c144ad15a2d8361a95be99b1003c5ae (patch)
treee8f8169a1f1c9e41bc04cbbdef69bbb2c9c2cd3c /html/056trace.subx.html
parent58467e6cbc4fce0c11a5200b9846c7a47ec874d9 (diff)
downloadmu-b6d62cc91c144ad15a2d8361a95be99b1003c5ae.tar.gz
5793
Start of a new script called treeshake to emit stats for minimal line counts
and binary sizes for all apps.

It doesn't actually do any dead-code deletion yet. But it does build and
run all apps successfully. (Except apps/mu; we'll ignore that for now.
It's probably not being disciplined about identifying internal labels.)
Diffstat (limited to 'html/056trace.subx.html')
0 files changed, 0 insertions, 0 deletions
a> 11
12
13
14
15
16
17
18










                                                                          
 


                               
 
                                        
                                                          
# 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")