[][src]Module qutescript::env

Structs

CommandVars

Struct with methods for SpawnMode::Command-specific variables.

Fifo

FIFO file to write commands to.

HintsVars

Struct with methods for SpawnMode::Hints-specific variables.

Enums

SpawnMode

The method by which the userscript was launched, either hints (started via hints) or command (started via command or key binding).

Functions

commandline_text

Returns the text in qutebrowser's command line.

config_dir

Returns the path of the directory containing qutebrowser's configuration.

data_dir

Returns the path of the directory containing qutebrowser's data.

download_dir

Returns the path of the downloads directory.

fifo

Returns an instance of Fifo based on the environment variable QUTE_FIFO.

html

Returns the path of a file containing the HTML source of the current page.

mode

Returns SpawnMode based on environment variable QUTE_MODE.

text

Returns the path of a file containing the plain text of the current page.

user_agent

Returns the currently set user agent string.