Add measure_widths config option

This commit is contained in:
Joscha 2023-04-24 18:21:46 +02:00
parent 39026a217d
commit f7f200a608
3 changed files with 16 additions and 3 deletions

View file

@ -90,6 +90,18 @@ pub struct Config {
#[document(default = "`false`")]
pub ephemeral: bool,
/// Whether to measure the width of characters as displayed by the terminal
/// emulator instead of guessing the width.
///
/// Enabling this makes rendering a bit slower but more accurate. The screen
/// might also flash when encountering new characters (or, more accurately,
/// graphemes).
///
/// See also the `--measure-graphemes` command line option.
#[serde(default)]
#[document(default = "`false`")]
pub measure_widths: bool,
/// Whether to start in offline mode.
///
/// In offline mode, cove won't automatically join rooms marked via the