Document {url} and {url:pretty} for :set-cmd-text

This commit is contained in:
Florian Bruhin 2016-05-15 11:09:16 +02:00
parent 3831dc38f7
commit a9ab6abafd
2 changed files with 5 additions and 0 deletions

View File

@ -650,6 +650,8 @@ Syntax: +:set-cmd-text [*--space*] [*--append*] 'text'+
Preset the statusbar to some text.
You can use the `{url}` and `{url:pretty}` variables here which will get replaced by the encoded/decoded URL.
==== positional arguments
* +'text'+: The commandline to set.

View File

@ -95,6 +95,9 @@ class Command(misc.MinimalLineEditMixin, misc.CommandLineEdit):
def set_cmd_text_command(self, text, space=False, append=False):
"""Preset the statusbar to some text.
You can use the `{url}` and `{url:pretty}` variables here which will get
replaced by the encoded/decoded URL.
//
Wrapper for set_cmd_text to check the arguments and allow multiple