diff options
author | hut <hut@lepus.uberspace.de> | 2016-06-18 19:53:35 +0200 |
---|---|---|
committer | hut <hut@lepus.uberspace.de> | 2016-06-18 19:53:35 +0200 |
commit | 9248f5d81088387f1705b12e5e739bd7ec01c9a8 (patch) | |
tree | ba8772c4c4fb23f0e4e6701f6da0f30208489c03 /examples | |
parent | ab41c7766ced3f1b8f6b4ed317f0db4e0d71b897 (diff) | |
parent | dded3cb8862d91bf20c5f8e4a4dd37b108c7b8ab (diff) | |
download | ranger-9248f5d81088387f1705b12e5e739bd7ec01c9a8.tar.gz |
Merge branch 'E301' of https://github.com/stepshal/ranger
Diffstat (limited to 'examples')
-rw-r--r-- | examples/plugin_ipc.py | 1 | ||||
-rw-r--r-- | examples/plugin_linemode.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/examples/plugin_ipc.py b/examples/plugin_ipc.py index cda10c59..47fb1c84 100644 --- a/examples/plugin_ipc.py +++ b/examples/plugin_ipc.py @@ -24,6 +24,7 @@ def hook_init(fm): import thread except ImportError: import _thread as thread + def ipc_reader(filepath): while True: with open(filepath, 'r') as fifo: diff --git a/examples/plugin_linemode.py b/examples/plugin_linemode.py index c05ff567..851d6213 100644 --- a/examples/plugin_linemode.py +++ b/examples/plugin_linemode.py @@ -13,5 +13,6 @@ 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") |