Merge branch 'pkill-nine-upstream-master-cmdlinetext_userscript'
This commit is contained in:
commit
75eb547b3b
@ -17,6 +17,11 @@ This project adheres to http://semver.org/[Semantic Versioning].
|
||||
v0.10.0 (unreleased)
|
||||
--------------------
|
||||
|
||||
Added
|
||||
-----
|
||||
|
||||
- Userscripts now have a new `$QUTE_COMMANDLINE_TEXT` environment variable, containing the current commandline contents.
|
||||
|
||||
Changed
|
||||
~~~~~~~
|
||||
|
||||
|
@ -241,6 +241,7 @@ Contributors, sorted by the number of commits in descending order:
|
||||
* xd1le
|
||||
* rsteube
|
||||
* rmortens
|
||||
* pkill9
|
||||
* oniondreams
|
||||
* issue
|
||||
* haxwithaxe
|
||||
|
@ -38,6 +38,7 @@ The following environment variables will be set when a userscript is launched:
|
||||
- `QUTE_CONFIG_DIR`: Path of the directory containing qutebrowser's configuration.
|
||||
- `QUTE_DATA_DIR`: Path of the directory containing qutebrowser's data.
|
||||
- `QUTE_DOWNLOAD_DIR`: Path of the downloads directory.
|
||||
- `QUTE_COMMANDLINE_TEXT`: Text currently in qutebrowser's command line.
|
||||
|
||||
In `command` mode:
|
||||
|
||||
|
@ -419,6 +419,8 @@ def run_async(tab, cmd, *args, win_id, env, verbose=False):
|
||||
env['QUTE_CONFIG_DIR'] = standarddir.config()
|
||||
env['QUTE_DATA_DIR'] = standarddir.data()
|
||||
env['QUTE_DOWNLOAD_DIR'] = downloads.download_dir()
|
||||
env['QUTE_COMMANDLINE_TEXT'] = objreg.get('status-command', scope='window',
|
||||
window=win_id).text()
|
||||
|
||||
cmd_path = os.path.expanduser(cmd)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user