pub struct TmuxConfig {Show 14 fields
pub tmux_enabled: bool,
pub tmux_path: String,
pub tmux_default_session: Option<String>,
pub tmux_auto_attach: bool,
pub tmux_auto_attach_session: Option<String>,
pub tmux_clipboard_sync: bool,
pub tmux_hide_gateway_tab: bool,
pub tmux_profile: Option<String>,
pub tmux_show_status_bar: bool,
pub tmux_status_bar_refresh_ms: u64,
pub tmux_prefix_key: String,
pub tmux_status_bar_use_native_format: bool,
pub tmux_status_bar_left: String,
pub tmux_status_bar_right: String,
}Expand description
tmux control-mode integration: discovery, auto-attach and status bar.
Fields§
§tmux_enabled: boolEnable tmux control mode integration
tmux_path: StringPath to tmux executable (default: “tmux” - uses PATH)
tmux_default_session: Option<String>Default session name when creating new tmux sessions
tmux_auto_attach: boolAuto-attach to existing tmux session on startup
tmux_auto_attach_session: Option<String>Session name to auto-attach to (if tmux_auto_attach is true)
tmux_clipboard_sync: boolSync clipboard with tmux paste buffer When copying in par-term, also update tmux’s paste buffer via set-buffer
tmux_hide_gateway_tab: boolHide the tmux control-mode gateway tab while tmux windows are active.
When enabled, the tab running tmux -CC is hidden from the tab bar once
the first tmux window tab appears. It is restored when the session ends.
Default: false
tmux_profile: Option<String>Profile to switch to when connected to tmux When profiles feature is implemented, this will automatically switch to the specified profile when entering tmux mode
tmux_show_status_bar: boolShow tmux status bar in par-term UI When connected to tmux, display the status bar at the bottom of the terminal
tmux_status_bar_refresh_ms: u64Tmux status bar refresh interval in milliseconds How often to poll tmux for updated status bar content. Lower values mean more frequent updates but slightly more CPU usage. Default: 1000 (1 second)
tmux_prefix_key: StringTmux prefix key for control mode In control mode, par-term intercepts this key combination and waits for a command key. Format: “C-b” (Ctrl+B, default), “C-Space” (Ctrl+Space), “C-a” (Ctrl+A), etc. The prefix + command key is translated to the appropriate tmux command.
tmux_status_bar_use_native_format: boolUse native tmux format strings for status bar content
When true, queries tmux for the actual status-left and status-right values
using display-message -p '#{T:status-left}' command.
When false, uses par-term’s configurable format strings below.
tmux_status_bar_left: StringTmux status bar left side format string.
Supported variables:
{session}- Session name{windows}- Window list with active marker (*){pane}- Focused pane ID{time:FORMAT}- Current time with strftime format (e.g.,{time:%H:%M}){hostname}- Machine hostname{user}- Current username
Default: [{session}] {windows}
tmux_status_bar_right: StringTmux status bar right side format string.
Same variables as tmux_status_bar_left.
Default: {pane} | {time:%H:%M}
Trait Implementations§
Source§impl Clone for TmuxConfig
impl Clone for TmuxConfig
Source§fn clone(&self) -> TmuxConfig
fn clone(&self) -> TmuxConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TmuxConfig
impl Debug for TmuxConfig
Source§impl Default for TmuxConfig
impl Default for TmuxConfig
Source§fn default() -> TmuxConfig
fn default() -> TmuxConfig
Source§impl<'de> Deserialize<'de> for TmuxConfig
impl<'de> Deserialize<'de> for TmuxConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TmuxConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TmuxConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for TmuxConfig
impl Serialize for TmuxConfig
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 TmuxConfig
impl RefUnwindSafe for TmuxConfig
impl Send for TmuxConfig
impl Sync for TmuxConfig
impl Unpin for TmuxConfig
impl UnsafeUnpin for TmuxConfig
impl UnwindSafe for TmuxConfig
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().