Merge branch 'lahwaacz-pretty-url'
This commit is contained in:
commit
aec887bc46
@ -677,7 +677,9 @@ class CommandDispatcher:
|
|||||||
"""Helper method for yank() to get the URL to copy."""
|
"""Helper method for yank() to get the URL to copy."""
|
||||||
assert what in ['url', 'pretty-url'], what
|
assert what in ['url', 'pretty-url'], what
|
||||||
flags = QUrl.RemovePassword
|
flags = QUrl.RemovePassword
|
||||||
if what != 'pretty-url':
|
if what == 'pretty-url':
|
||||||
|
flags |= QUrl.DecodeReserved
|
||||||
|
else:
|
||||||
flags |= QUrl.FullyEncoded
|
flags |= QUrl.FullyEncoded
|
||||||
url = QUrl(self._current_url())
|
url = QUrl(self._current_url())
|
||||||
url_query = QUrlQuery(url)
|
url_query = QUrlQuery(url)
|
||||||
|
@ -54,7 +54,7 @@ def replace_variables(win_id, arglist):
|
|||||||
'url': lambda: _current_url(tabbed_browser).toString(
|
'url': lambda: _current_url(tabbed_browser).toString(
|
||||||
QUrl.FullyEncoded | QUrl.RemovePassword),
|
QUrl.FullyEncoded | QUrl.RemovePassword),
|
||||||
'url:pretty': lambda: _current_url(tabbed_browser).toString(
|
'url:pretty': lambda: _current_url(tabbed_browser).toString(
|
||||||
QUrl.RemovePassword),
|
QUrl.DecodeReserved | QUrl.RemovePassword),
|
||||||
'clipboard': utils.get_clipboard,
|
'clipboard': utils.get_clipboard,
|
||||||
'primary': lambda: utils.get_clipboard(selection=True),
|
'primary': lambda: utils.get_clipboard(selection=True),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user