From 3ae56e9a2fb9485ea62ce78883d22bac07531cd2 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Mon, 18 Apr 2011 19:28:49 +0100 Subject: uberprompt: added documentation for all the uberprompt settings, including the new uberprompt_*_hook commands. Updated Readme. --- prompt_info/README.pod | 56 ++++++++++++++++++++++++++++++++++++++++++++++- prompt_info/uberprompt.pl | 56 ++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 110 insertions(+), 2 deletions(-) (limited to 'prompt_info') diff --git a/prompt_info/README.pod b/prompt_info/README.pod index 882553d..d8e3b3e 100644 --- a/prompt_info/README.pod +++ b/prompt_info/README.pod @@ -57,7 +57,9 @@ show help for uberprompt commands =back -=head1 UBERPROMPT FORMAT: +=head1 SETTINGS + +=head2 UBERPROMPT FORMAT CformatE> @@ -77,6 +79,58 @@ B This setting completely overrides the C line in your different form of prompt. It can be simply copied from the theme file into the above setting. +=head2 OTHER SETTINGS + +=over 4 + +=item * C + +Boolean value, which determines if uberprompt should enable itself automatically +upon loading. If Off, it must be enabled manually with C. Defaults to On. + +=item * C + +Boolean value, which determines if uberprompt should print debugging information. +Defaults to Off, and should probably be left that way unless requested for bug-tracing +purposes. + +=item * C + +String value containing the format-string which uberprompt uses to display the +prompt. Defaults to "C<[$*$uber] >", where C<$*> is the content the prompt would +normally display, and C<$uber> is a placeholder variable for dynamic content, as +described in the section above. + +=item * C + +String value which can contain one or more commands to be run whenever the uberprompt +is enabled, either via autostart, or C. Defaults to the empty string, in +which case no commands are run. Some examples include: + +C or + +C for those using vim_mode.pl who want +the command status indicator on the prompt line. + +=item * C + +String value, defaulting to the empty string, which can contain commands which +are executed when the uberprompt is disabled, either by unloading the script, +or by the command C. + +=item * C + +Boolean value, defaults to Off. If enabled, the format string for the prompt +will be subject to the I section of the theme. The most obvious +effect of this is that bracket characters C<[ ]> are displayed in a different +colour, typically quite dark. + +=back + +B For both C settings above, multiple commands can +be chained together in the form C. The C<^> prevents +any output from the commands (such as error messages) being displayed. + =head2 SCRIPTING USAGE The primary purpose of uberprompt is to be used by other scripts to diff --git a/prompt_info/uberprompt.pl b/prompt_info/uberprompt.pl index 71638a5..62bda13 100644 --- a/prompt_info/uberprompt.pl +++ b/prompt_info/uberprompt.pl @@ -57,7 +57,9 @@ show help for uberprompt commands =back -=head1 UBERPROMPT FORMAT: +=head1 SETTINGS + +=head2 UBERPROMPT FORMAT CformatE> @@ -77,6 +79,58 @@ B This setting completely overrides the C line in your different form of prompt. It can be simply copied from the theme file into the above setting. +=head2 OTHER SETTINGS + +=over 4 + +=item * C + +Boolean value, which determines if uberprompt should enable itself automatically +upon loading. If Off, it must be enabled manually with C. Defaults to On. + +=item * C + +Boolean value, which determines if uberprompt should print debugging information. +Defaults to Off, and should probably be left that way unless requested for bug-tracing +purposes. + +=item * C + +String value containing the format-string which uberprompt uses to display the +prompt. Defaults to "C<[$*$uber] >", where C<$*> is the content the prompt would +normally display, and C<$uber> is a placeholder variable for dynamic content, as +described in the section above. + +=item * C + +String value which can contain one or more commands to be run whenever the uberprompt +is enabled, either via autostart, or C. Defaults to the empty string, in +which case no commands are run. Some examples include: + +C or + +C for those using vim_mode.pl who want +the command status indicator on the prompt line. + +=item * C + +String value, defaulting to the empty string, which can contain commands which +are executed when the uberprompt is disabled, either by unloading the script, +or by the command C. + +=item * C + +Boolean value, defaults to Off. If enabled, the format string for the prompt +will be subject to the I section of the theme. The most obvious +effect of this is that bracket characters C<[ ]> are displayed in a different +colour, typically quite dark. + +=back + +B For both C settings above, multiple commands can +be chained together in the form C. The C<^> prevents +any output from the commands (such as error messages) being displayed. + =head2 SCRIPTING USAGE The primary purpose of uberprompt is to be used by other scripts to -- cgit v1.2.3