pub enum Action {
Show 52 variants
Esc(String),
Command(Program),
Hint(Hint),
ViMotion(ViMotion),
Vi(ViAction),
Search(SearchAction),
Mouse(MouseAction),
Paste,
Copy,
CopySelection,
PasteSelection,
IncreaseFontSize,
DecreaseFontSize,
ResetFontSize,
ScrollPageUp,
ScrollPageDown,
ScrollHalfPageUp,
ScrollHalfPageDown,
ScrollLineUp,
ScrollLineDown,
ScrollToTop,
ScrollToBottom,
ClearHistory,
Hide,
HideOtherApplications,
Minimize,
Quit,
ClearLogNotice,
SpawnNewInstance,
SelectNextTab,
SelectPreviousTab,
SelectTab1,
SelectTab2,
SelectTab3,
SelectTab4,
SelectTab5,
SelectTab6,
SelectTab7,
SelectTab8,
SelectTab9,
SelectLastTab,
CreateNewWindow,
CreateNewTab,
ToggleFullscreen,
ToggleMaximized,
ToggleSimpleFullscreen,
ClearSelection,
ToggleViMode,
ReceiveChar,
SearchForward,
SearchBackward,
None,
}
Variants§
Esc(String)
Write an escape sequence.
Command(Program)
Run given command.
Hint(Hint)
Regex keyboard hints.
ViMotion(ViMotion)
Move vi mode cursor.
Vi(ViAction)
Perform vi mode action.
Search(SearchAction)
Perform search mode action.
Mouse(MouseAction)
Perform mouse binding exclusive action.
Paste
Paste contents of system clipboard.
Copy
Store current selection into clipboard.
CopySelection
Store current selection into selection buffer.
PasteSelection
Paste contents of selection buffer.
IncreaseFontSize
Increase font size.
DecreaseFontSize
Decrease font size.
ResetFontSize
Reset font size to the config value.
ScrollPageUp
Scroll exactly one page up.
ScrollPageDown
Scroll exactly one page down.
ScrollHalfPageUp
Scroll half a page up.
ScrollHalfPageDown
Scroll half a page down.
ScrollLineUp
Scroll one line up.
ScrollLineDown
Scroll one line down.
ScrollToTop
Scroll all the way to the top.
ScrollToBottom
Scroll all the way to the bottom.
ClearHistory
Clear the display buffer(s) to remove history.
Hide
Hide the Alacritty window.
HideOtherApplications
Hide all windows other than Alacritty on macOS.
Minimize
Minimize the Alacritty window.
Quit
Quit Alacritty.
ClearLogNotice
Clear warning and error notices.
SpawnNewInstance
Spawn a new instance of Alacritty.
SelectNextTab
Select next tab.
SelectPreviousTab
Select previous tab.
SelectTab1
Select the first tab.
SelectTab2
Select the second tab.
SelectTab3
Select the third tab.
SelectTab4
Select the fourth tab.
SelectTab5
Select the fifth tab.
SelectTab6
Select the sixth tab.
SelectTab7
Select the seventh tab.
SelectTab8
Select the eighth tab.
SelectTab9
Select the ninth tab.
SelectLastTab
Select the last tab.
CreateNewWindow
Create a new Alacritty window.
CreateNewTab
Create new window in a tab.
ToggleFullscreen
Toggle fullscreen.
ToggleMaximized
Toggle maximized.
ToggleSimpleFullscreen
Toggle simple fullscreen on macOS.
ClearSelection
Clear active selection.
ToggleViMode
Toggle vi mode.
ReceiveChar
Allow receiving char input.
SearchForward
Start a forward buffer search.
SearchBackward
Start a backward buffer search.
None
No action.
Implementations§
source§impl Action
impl Action
fn toggle_selection<T, A>(ctx: &mut A, ty: SelectionType)where
A: ActionContext<T>,
T: EventListener,
Trait Implementations§
source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
source§impl<T: EventListener> Execute<T> for Action
impl<T: EventListener> Execute<T> for Action
fn execute<A: ActionContext<T>>(&self, ctx: &mut A)
source§impl From<MouseAction> for Action
impl From<MouseAction> for Action
source§fn from(action: MouseAction) -> Self
fn from(action: MouseAction) -> Self
source§impl From<SearchAction> for Action
impl From<SearchAction> for Action
source§fn from(action: SearchAction) -> Self
fn from(action: SearchAction) -> Self
source§impl PartialEq for Action
impl PartialEq for Action
source§impl SerdeReplace for Action
impl SerdeReplace for Action
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl !RefUnwindSafe for Action
impl !Send for Action
impl !Sync for Action
impl Unpin for Action
impl !UnwindSafe for Action
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.