pub struct ActionContext<'a, N, T> {
Show 19 fields pub notifier: &'a mut N, pub terminal: &'a mut Term<T>, pub clipboard: &'a mut Clipboard, pub mouse: &'a mut Mouse, pub touch: &'a mut TouchPurpose, pub modifiers: &'a mut Modifiers, pub display: &'a mut Display, pub message_buffer: &'a mut MessageBuffer, pub config: &'a UiConfig, pub cursor_blink_timed_out: &'a mut bool, pub event_proxy: &'a EventLoopProxy<Event>, pub scheduler: &'a mut Scheduler, pub search_state: &'a mut SearchState, pub inline_search_state: &'a mut InlineSearchState, pub dirty: &'a mut bool, pub occluded: &'a mut bool, pub preserve_title: bool, pub master_fd: RawFd, pub shell_pid: u32,
}

Fields§

§notifier: &'a mut N§terminal: &'a mut Term<T>§clipboard: &'a mut Clipboard§mouse: &'a mut Mouse§touch: &'a mut TouchPurpose§modifiers: &'a mut Modifiers§display: &'a mut Display§message_buffer: &'a mut MessageBuffer§config: &'a UiConfig§cursor_blink_timed_out: &'a mut bool§event_proxy: &'a EventLoopProxy<Event>§scheduler: &'a mut Scheduler§search_state: &'a mut SearchState§inline_search_state: &'a mut InlineSearchState§dirty: &'a mut bool§occluded: &'a mut bool§preserve_title: bool§master_fd: RawFd§shell_pid: u32

Implementations§

source§

impl<'a, N: Notify + 'a, T: EventListener> ActionContext<'a, N, T>

source

fn search_reset_state(&mut self)

Reset terminal to the state before search was started.

source

fn goto_match(&mut self, limit: Option<usize>)

Jump to the first regex match from the search origin.

Cleanup the search state.

source

fn update_cursor_blinking(&mut self)

Update the cursor blinking state.

source

fn schedule_blinking(&mut self)

source

fn schedule_blinking_timeout(&mut self)

Perform vi mode inline search in the specified direction.

Trait Implementations§

source§

impl<'a, N: Notify + 'a, T: EventListener> ActionContext<T> for ActionContext<'a, N, T>

source§

fn mark_dirty(&mut self)

Request a redraw.

source§

fn search_history_previous(&mut self)

Go to the previous regex in the search history.

source§

fn search_history_next(&mut self)

Go to the previous regex in the search history.

source§

fn search_next( &mut self, origin: Point, direction: Direction, side: Side ) -> Option<Match>

Find the next search match.

source§

fn on_typing_start(&mut self)

Handle keyboard typing start.

This will temporarily disable some features like terminal cursor blinking or the mouse cursor.

All features are re-enabled again automatically.

source§

fn hint_input(&mut self, c: char)

Process a new character for keyboard hints.

source§

fn trigger_hint(&mut self, hint: &HintMatch)

Trigger a hint action.

source§

fn expand_selection(&mut self)

Expand the selection to the current mouse cursor position.

source§

fn on_terminal_input_start(&mut self)

Handle beginning of terminal text input.

source§

fn paste(&mut self, text: &str, bracketed: bool)

Paste a text into the terminal.

source§

fn toggle_vi_mode(&mut self)

Toggle the vi mode status.

source§

fn inline_search_state(&mut self) -> &mut InlineSearchState

Get vi inline search state.

Start vi mode inline search.

source§

fn inline_search_next(&mut self)

Jump to the next matching character in the line.

source§

fn inline_search_previous(&mut self)

Jump to the next matching character in the line.

source§

fn inline_search_input(&mut self, text: &str)

Process input during inline search.

source§

fn write_to_pty<B: Into<Cow<'static, [u8]>>>(&self, val: B)

source§

fn size_info(&self) -> SizeInfo

source§

fn scroll(&mut self, scroll: Scroll)

source§

fn copy_selection(&mut self, ty: ClipboardType)

source§

fn selection_is_empty(&self) -> bool

source§

fn clear_selection(&mut self)

source§

fn update_selection(&mut self, point: Point, side: Side)

source§

fn start_selection(&mut self, ty: SelectionType, point: Point, side: Side)

source§

fn toggle_selection(&mut self, ty: SelectionType, point: Point, side: Side)

source§

fn mouse_mode(&self) -> bool

source§

fn mouse_mut(&mut self) -> &mut Mouse

source§

fn mouse(&self) -> &Mouse

source§

fn touch_purpose(&mut self) -> &mut TouchPurpose

source§

fn modifiers(&mut self) -> &mut Modifiers

source§

fn window(&mut self) -> &mut Window

source§

fn display(&mut self) -> &mut Display

source§

fn terminal(&self) -> &Term<T>

source§

fn terminal_mut(&mut self) -> &mut Term<T>

source§

fn spawn_new_instance(&mut self)

source§

fn create_new_window(&mut self)

source§

fn spawn_daemon<I, S>(&self, program: &str, args: I)where I: IntoIterator<Item = S> + Debug + Copy, S: AsRef<OsStr>,

source§

fn change_font_size(&mut self, delta: f32)

source§

fn reset_font_size(&mut self)

source§

fn pop_message(&mut self)

source§

fn search_input(&mut self, c: char)

source§

fn search_pop_word(&mut self)

source§

fn advance_search_origin(&mut self, direction: Direction)

source§

fn search_direction(&self) -> Direction

source§

fn search_active(&self) -> bool

source§

fn message(&self) -> Option<&Message>

source§

fn config(&self) -> &UiConfig

source§

fn clipboard_mut(&mut self) -> &mut Clipboard

source§

fn scheduler_mut(&mut self) -> &mut Scheduler

Auto Trait Implementations§

§

impl<'a, N, T> !RefUnwindSafe for ActionContext<'a, N, T>

§

impl<'a, N, T> !Send for ActionContext<'a, N, T>

§

impl<'a, N, T> !Sync for ActionContext<'a, N, T>

§

impl<'a, N, T> Unpin for ActionContext<'a, N, T>

§

impl<'a, N, T> !UnwindSafe for ActionContext<'a, N, T>

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> Downcast for Twhere T: Any,

source§

fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>

Convert 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, Global>) -> Rc<dyn Any, Global>

Convert 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)

Convert &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)

Convert &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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere 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, U> TryFrom<U> for Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more