Add the modified keys with a loop
This commit is contained in:
parent
22c33ddfb8
commit
a6f09b1f73
@ -65,11 +65,10 @@ def replace_variables(win_id, arglist):
|
|||||||
QUrl.DecodeReserved | 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),
|
||||||
'{url}': lambda: '{url}',
|
|
||||||
'{url:pretty}': lambda: '{url:pretty}',
|
|
||||||
'{clipboard}': lambda: '{clipboard}',
|
|
||||||
'{primary}': lambda: '{primary}',
|
|
||||||
}
|
}
|
||||||
|
for key in list(variables):
|
||||||
|
modified_key = '{' + key + '}'
|
||||||
|
variables[modified_key] = lambda: modified_key
|
||||||
values = {}
|
values = {}
|
||||||
args = []
|
args = []
|
||||||
tabbed_browser = objreg.get('tabbed-browser', scope='window',
|
tabbed_browser = objreg.get('tabbed-browser', scope='window',
|
||||||
|
Loading…
Reference in New Issue
Block a user