update navigate-related help and function docs
This commit is contained in:
parent
d3e4d62d14
commit
060305279c
@ -480,6 +480,9 @@ This tries to automatically click on typical _Previous Page_ or _Next Page_ link
|
|||||||
* +*-b*+, +*--bg*+: Open in a background tab.
|
* +*-b*+, +*--bg*+: Open in a background tab.
|
||||||
* +*-w*+, +*--window*+: Open in a new window.
|
* +*-w*+, +*--window*+: Open in a new window.
|
||||||
|
|
||||||
|
==== count
|
||||||
|
For `increment` and `decrement`, the number to change the URL by. For `up`, the number of levels to go up in the URL.
|
||||||
|
|
||||||
[[open]]
|
[[open]]
|
||||||
=== open
|
=== open
|
||||||
Syntax: +:open [*--implicit*] [*--bg*] [*--tab*] [*--window*] ['url']+
|
Syntax: +:open [*--implicit*] [*--bg*] [*--tab*] [*--window*] ['url']+
|
||||||
|
@ -503,6 +503,8 @@ class CommandDispatcher:
|
|||||||
tab: Open in a new tab.
|
tab: Open in a new tab.
|
||||||
bg: Open in a background tab.
|
bg: Open in a background tab.
|
||||||
window: Open in a new window.
|
window: Open in a new window.
|
||||||
|
count: How much to increment or decrement the URL by, or number of
|
||||||
|
levels to go up in the current URL.
|
||||||
"""
|
"""
|
||||||
# save the pre-jump position in the special ' mark
|
# save the pre-jump position in the special ' mark
|
||||||
self.set_mark("'")
|
self.set_mark("'")
|
||||||
|
@ -36,6 +36,7 @@ def incdec(url, count, inc_or_dec):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
url: The current url.
|
url: The current url.
|
||||||
|
count: How much to increment or decrement by.
|
||||||
inc_or_dec: Either 'increment' or 'decrement'.
|
inc_or_dec: Either 'increment' or 'decrement'.
|
||||||
tab: Whether to open the link in a new tab.
|
tab: Whether to open the link in a new tab.
|
||||||
background: Open the link in a new background tab.
|
background: Open the link in a new background tab.
|
||||||
@ -54,6 +55,7 @@ def path_up(url, count):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
url: The current url.
|
url: The current url.
|
||||||
|
count: The number of levels to go up in the url.
|
||||||
"""
|
"""
|
||||||
path = url.path()
|
path = url.path()
|
||||||
if not path or path == '/':
|
if not path or path == '/':
|
||||||
|
@ -527,6 +527,7 @@ def incdec_number(url, incdec, count=1, segments=None):
|
|||||||
Args:
|
Args:
|
||||||
url: The current url
|
url: The current url
|
||||||
incdec: Either 'increment' or 'decrement'
|
incdec: Either 'increment' or 'decrement'
|
||||||
|
count: The number to increment or decrement by
|
||||||
segments: A set of URL segments to search. Valid segments are:
|
segments: A set of URL segments to search. Valid segments are:
|
||||||
'host', 'path', 'query', 'anchor'.
|
'host', 'path', 'query', 'anchor'.
|
||||||
Default: {'path', 'query'}
|
Default: {'path', 'query'}
|
||||||
|
Loading…
Reference in New Issue
Block a user