Make {suburl} expand to {url}

This is useful for the following case from IRC:
`:set aliases '{"twmpv": "spawn mpv {suburl}"}'

which now sets:
:twmpv -> spawn mpv {url}
This commit is contained in:
George Edward Bulmer 2018-02-05 21:00:29 +00:00
parent 6f028e9ad0
commit bfeac178e2

View File

@ -65,6 +65,7 @@ def replace_variables(win_id, arglist):
QUrl.DecodeReserved | QUrl.RemovePassword),
'clipboard': utils.get_clipboard,
'primary': lambda: utils.get_clipboard(selection=True),
'suburl': lambda: '{url}'
}
values = {}
args = []