Raxol.Terminal.Clipboard.History (Raxol v0.5.0)
View SourceManages clipboard history for the terminal.
Summary
Functions
Adds content to the clipboard history.
Clears the clipboard history.
Gets content from the clipboard history by index.
Gets all entries from the clipboard history with the specified format.
Creates a new clipboard history with the specified size limit.
Types
@type t() :: %Raxol.Terminal.Clipboard.History{ entries: [{String.t(), String.t()}], max_size: non_neg_integer() }
Functions
Adds content to the clipboard history.
Clears the clipboard history.
@spec get(t(), non_neg_integer(), String.t()) :: {:ok, String.t()} | {:error, :not_found}
Gets content from the clipboard history by index.
@spec get_all(t(), String.t(), non_neg_integer() | :infinity) :: {:ok, [String.t()], t()}
Gets all entries from the clipboard history with the specified format.
@spec new(non_neg_integer()) :: t()
Creates a new clipboard history with the specified size limit.