Scroll to navigation

Tickit::Widget::Entry::Plugin::History(3pm) User Contributed Perl Documentation Tickit::Widget::Entry::Plugin::History(3pm)

NAME

"Tickit::Widget::Entry::Plugin::History" - add readline-like history to a Tickit::Widget::Entry

SYNOPSIS

   use Tickit::Widget::Entry;
   use Tickit::Widget::Entry::Plugin::History;
   my $entry = Tickit::Widget::Entry->new( ... );
   Tickit::Widget::Entry::Plugin::History->apply( $entry );
   ...

DESCRIPTION

This package applies code to a Tickit::Widget::Entry instance to implement a history mechanism, which stores previously-entered values allowing them to be recalled and reused later.

METHODS

apply

   Tickit::Widget::Entry::Plugin::History->apply( $entry, %opts )

Applies the plugin code to the given Tickit::Widget::Entry instance.

The following named options are recognised:

An optional reference to an array to store the history in. If absent, a new anonymous array will be created.
If true, an entry will not be pushed into history if it is equal to the most recent item already there.

AUTHOR

Paul Evans <leonerd@leonerd.org.uk>

2025-09-04 perl v5.40.1