Add special cases of double quotes: eg {{url}}

This allows a second level of indirection quite cheaply, but is a
band-aid fix.

This commit should be taken as temporary until command arguments are
reworked.
This commit is contained in:
George Edward Bulmer 2018-02-05 21:45:49 +00:00
parent 8b29ce93ec
commit 22c33ddfb8

View File

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