Update docs.

This commit is contained in:
Florian Bruhin 2016-01-13 18:13:30 +01:00
parent 7ccc58bb68
commit f61b9fd42c
4 changed files with 11 additions and 0 deletions

View File

@ -23,6 +23,11 @@ Added
- New `--quiet` argument for the `:debug-pyeval` command to not open a tab with
the results. Note `:debug-pyeval` is still only intended for debugging.
Changed
~~~~~~~
- Pasting multiple lines via `:paste` now opens each line in a new tab.
Fixed
~~~~~

View File

@ -160,6 +160,7 @@ Contributors, sorted by the number of commits in descending order:
* ZDarian
* John ShaggyTwoDope Jenkins
* Peter Vilim
* Tarcisio Fedrizzi
* Jonas Schürmann
* Panagiotis Ktistakis
* Jimmy

View File

@ -402,6 +402,8 @@ Syntax: +:paste [*--sel*] [*--tab*] [*--bg*] [*--window*]+
Open a page from the clipboard.
If the pasted text contains newlines, each line gets opened in its own tab.
==== optional arguments
* +*-s*+, +*--sel*+: Use the primary selection instead of the clipboard.
* +*-t*+, +*--tab*+: Open in a new tab.

View File

@ -809,6 +809,9 @@ class CommandDispatcher:
def paste(self, sel=False, tab=False, bg=False, window=False):
"""Open a page from the clipboard.
If the pasted text contains newlines, each line gets opened in its own
tab.
Args:
sel: Use the primary selection instead of the clipboard.
tab: Open in a new tab.