From 677c9ae868fcab6f97f964d59c6784398e08377b Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 17 Feb 2015 23:24:46 +0100 Subject: config/commands_sample.py: added comments --- ranger/config/commands_sample.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ranger/config/commands_sample.py b/ranger/config/commands_sample.py index 698a92ca..b65bc172 100644 --- a/ranger/config/commands_sample.py +++ b/ranger/config/commands_sample.py @@ -4,9 +4,13 @@ # documentation. Do NOT add them all here, or you may end up with defunct # commands when upgrading ranger. -# You need to import ranger.api.commands to get the Command class: +# You always need to import ranger.api.commands here to get the Command class: from ranger.api.commands import * -# Import any other python modules as needed: + +# A simple command for demonstration purposes follows. +#------------------------------------------------------------------------------ + +# You can import any python module as needed. import os # Any class that is a subclass of "Command" will be integrated into ranger as a -- cgit 1.4.1-2-gfad0