pub struct TabConfig {Show 17 fields
pub tab_style: TabStyle,
pub light_tab_style: TabStyle,
pub dark_tab_style: TabStyle,
pub tab_bar_mode: TabBarMode,
pub tab_title_mode: TabTitleMode,
pub remote_tab_title_format: RemoteTabTitleFormat,
pub remote_tab_title_osc_priority: bool,
pub tab_bar_height: f32,
pub tab_bar_position: TabBarPosition,
pub tab_bar_width: f32,
pub tab_show_close_button: bool,
pub tab_show_index: bool,
pub tab_inherit_cwd: bool,
pub max_tabs: usize,
pub show_profile_drawer_button: bool,
pub new_tab_shortcut_shows_profiles: bool,
pub new_tab_position: NewTabPosition,
}Expand description
Tab style presets, tab bar placement and new-tab behaviour.
Fields§
§tab_style: TabStyleTab visual style preset (dark, light, compact, minimal, high_contrast, automatic) Applies cosmetic color/size/spacing presets to the tab bar
light_tab_style: TabStyleTab style to use when system is in light mode (used when tab_style is Automatic)
dark_tab_style: TabStyleTab style to use when system is in dark mode (used when tab_style is Automatic)
tab_bar_mode: TabBarModeTab bar visibility mode (always, when_multiple, never)
tab_title_mode: TabTitleModeControls how tab titles are automatically updated (auto or osc_only)
remote_tab_title_format: RemoteTabTitleFormatFormat for tab title when shell integration detects a remote host
remote_tab_title_osc_priority: boolWhen true, explicit OSC title sequences override remote_tab_title_format
tab_bar_height: f32Tab bar height in pixels
tab_bar_position: TabBarPositionTab bar position (top, bottom, left)
tab_bar_width: f32Tab bar width in pixels (used when tab_bar_position is Left)
Show close button on tabs
tab_show_index: boolShow tab index numbers (for Cmd+1-9)
tab_inherit_cwd: boolNew tab inherits working directory from active tab
max_tabs: usizeMaximum tabs per window (0 = unlimited)
Show the profile drawer toggle button on the right edge of the terminal When disabled, the profile drawer can still be opened via keyboard shortcut
new_tab_shortcut_shows_profiles: boolWhen true, the new-tab keyboard shortcut (Cmd+T / Ctrl+Shift+T) shows the profile selection dropdown instead of immediately opening a default tab
new_tab_position: NewTabPositionWhere to insert new tabs in the tab bar.
end appends to the end (default); after_active inserts right of the active tab.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TabConfig
impl<'de> Deserialize<'de> for TabConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TabConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TabConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for TabConfig
impl Serialize for TabConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for TabConfig
impl RefUnwindSafe for TabConfig
impl Send for TabConfig
impl Sync for TabConfig
impl Unpin for TabConfig
impl UnsafeUnpin for TabConfig
impl UnwindSafe for TabConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().