TuiConfig

Struct TuiConfig 

Source
pub struct TuiConfig {
Show 17 fields pub version: Option<u32>, pub column_visibility: Vec<bool>, pub column_order: Vec<String>, pub refresh_interval_ms: Option<u64>, pub transcript_poll_interval_ms: Option<u64>, pub theme: Option<String>, pub show_borders: Option<bool>, pub profiles: HashMap<String, TuiColumnProfile>, pub group_panel_enabled: Option<bool>, pub animation_enabled: Option<bool>, pub animation_duration_ms: Option<u64>, pub sort_spec: Option<Vec<TuiSortSpec>>, pub auto_enable_frameworks: Option<bool>, pub terminal_spawn_method: Option<String>, pub shorten_model_names: Option<bool>, pub check_for_updates: Option<bool>, pub pane_backgrounds: Option<bool>,
}
Expand description

TUI configuration section for the unified config.

This struct is designed to be serialized as the [tui] section in config.toml. It stores values in a format that can be serialized/deserialized without depending on TUI-specific types like SessionField.

Fields§

§version: Option<u32>

Config version for migrations.

§column_visibility: Vec<bool>

Column visibility settings (one bool per column).

§column_order: Vec<String>

Column display order (field names as strings).

§refresh_interval_ms: Option<u64>

Refresh interval in milliseconds.

§transcript_poll_interval_ms: Option<u64>

Transcript poll interval in milliseconds.

§theme: Option<String>

Theme name (e.g., “default”, “minimal”, “dracula”).

§show_borders: Option<bool>

Override for border visibility.

§profiles: HashMap<String, TuiColumnProfile>

Named column profiles. Each profile contains visibility and order settings.

§group_panel_enabled: Option<bool>

Whether the group panel is enabled/visible.

§animation_enabled: Option<bool>

Whether animations are enabled (e.g., panel slide transitions).

§animation_duration_ms: Option<u64>

Animation duration in milliseconds.

§sort_spec: Option<Vec<TuiSortSpec>>

Sort specification - list of sort columns with direction.

§auto_enable_frameworks: Option<bool>

Whether to auto-enable newly detected frameworks.

§terminal_spawn_method: Option<String>

Method for spawning new terminals.

§shorten_model_names: Option<bool>

Whether to shorten model names (e.g., “gpt-5.2-codex” → “gpt-5.2”). Defaults to true.

§check_for_updates: Option<bool>

Whether to check for updates on startup. Defaults to true. When enabled, mi6 will check for new versions in the background on startup and notify if an update is available.

§pane_backgrounds: Option<bool>

Whether to use theme-defined pane background colors. Defaults to false for backward compatibility (uses terminal default). When enabled, uses the theme’s [panes] and [core] background colors.

Implementations§

Source§

impl TuiConfig

Source

pub fn is_empty(&self) -> bool

Check if the config is empty (all fields are default/None).

Trait Implementations§

Source§

impl Clone for TuiConfig

Source§

fn clone(&self) -> TuiConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TuiConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for TuiConfig

Source§

fn default() -> TuiConfig

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for TuiConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for TuiConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,