pager
[pager] table). Pager-related configuration ([pager] table).Pager-related configuration ([pager] table).
Pager-related configuration ([pager] table).
struct Settings
pub struct SettingsSettings from the [pager] configuration table.
Controls whether and how gest pipes long output through a pager program.
Wiring into the pager helper is intentionally deferred – this struct only
defines the schema, defaults, and serde plumbing so the values can be read
and written via gest config get / gest config set.
| Field | Type | Description |
|---|---|---|
command |
Option<String> | Optional pager command override (e.g. "less -FR"). An empty string is treated as “unset” by Settings::command, so users can disable an inherited value from a less-specific config file by writing pager.command = "". This mirrors the convention used by the PAGER environment variable. |
enabled |
bool | Whether the pager is enabled. Defaults to true. When false, gest should print long output directly to stdout without spawning a pager process. |
Implements Clone, Debug, Deserialize<'de>, PartialEq, Serialize, Default.
Settings::enabled
pub fn enabled(&self) -> boolWhether the pager is enabled.
Defaults to true. When false, gest should print long output directly
to stdout without spawning a pager process.
| Parameter | Type | Description |
|---|---|---|
| returns | bool |
Settings::command
pub fn command(&self) -> Option<&str>The configured pager command, if any.
Returns None when the value is unset or set to an empty string. The
empty-string case lets users explicitly clear an inherited value via
gest config set pager.command "".
| Parameter | Type | Description |
|---|---|---|
| returns | Option<&str> | The non-empty pager command. |