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:
parent
8b29ce93ec
commit
22c33ddfb8
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user