From fe56c9c8494f961505c6f63d9814f961ec070ae3 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 24 May 2016 15:22:01 +0200 Subject: Manpage: added documentation about commands in plugins --- doc/ranger.1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'doc/ranger.1') diff --git a/doc/ranger.1 b/doc/ranger.1 index ac655e78..7e57307e 100644 --- a/doc/ranger.1 +++ b/doc/ranger.1 @@ -133,7 +133,7 @@ .\" ======================================================================== .\" .IX Title "RANGER 1" -.TH RANGER 1 "ranger-1.7.2" "04/15/2016" "ranger manual" +.TH RANGER 1 "ranger-1.7.2" "05/24/2016" "ranger manual" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -406,6 +406,9 @@ a function that ranger uses. This allows you to change pretty much every part of ranger, but there is no guarantee that things will continue to work in future versions as the source code evolves. .PP +Adding new commands via a plugin as simple as specifying them like you would do +in the \fIcommands.py\fR. +.PP There are some hooks that are specifically made for the use in plugins. They are functions that start with hook_ and can be found throughout the code. .PP @@ -1287,7 +1290,8 @@ and settings are defined here. .IP "commands.py" 10 .IX Item "commands.py" A python module that defines commands which can be used in ranger's console by -typing \*(L":\*(R" or in the rc.conf file. +typing \*(L":\*(R" or in the rc.conf file. Note that you can define commands in the +same manner within plugins. .IP "commands_full.py" 10 .IX Item "commands_full.py" This file is copied by \-\-copy\-config=commands_full and serves as a reference -- cgit 1.4.1-2-gfad0