From d2c7d024290ee95afa418975c728ad64172dcfec Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 9 Mar 2013 18:48:02 +0100 Subject: move examples to doc/examples --- examples/plugin_new_sorting_method.py | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 examples/plugin_new_sorting_method.py (limited to 'examples/plugin_new_sorting_method.py') diff --git a/examples/plugin_new_sorting_method.py b/examples/plugin_new_sorting_method.py deleted file mode 100644 index 02abbc47..00000000 --- a/examples/plugin_new_sorting_method.py +++ /dev/null @@ -1,9 +0,0 @@ -# Compatible with ranger 1.6.* -# -# This plugin adds the sorting algorithm called 'random'. To enable it, type -# ":set sort=random" or create a key binding with ":map oz set sort=random" - -from ranger.fsobject.directory import Directory -from random import random -Directory.sort_dict['random'] = lambda path: random() - -- cgit 1.4.1-2-gfad0