diff options
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 a9e79205..cfb546fa 100644 --- a/examples/plugin_ipc.py +++ b/examples/plugin_ipc.py @@ -22,6 +22,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 8a92552e..be34e6c5 100644 --- a/examples/plugin_linemode.py +++ b/examples/plugin_linemode.py @@ -12,5 +12,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") |