App-sdview-Output-Tickit
view release on metacpan or search on metacpan
Revision history for App-sdview-Output-Tickit
0.10 2024-08-08
[CHANGES]
* Initial attempt at supporting tables
* Improved percentage progress indicator on scrolling
* Optional whole-word only matches when searching
0.09 2024-07-26
[CHANGES]
* Less jumpy scrolling when moving between search matches
* Keybindings '<' and '>' as synonyms for Home and End
* Keybindings '[' and ']' to jump between headings
[BUGFIXES]
* Ensure formatting applies to fixed-width paragraphs, so syntax
lib/App/sdview/Output/Tickit.pm view on Meta::CPAN
$t->term->await_started( 0.050 );
$t->bind_key( q => sub { $t->stop; } );
require Tickit::Widget::Scroller;
Tickit::Widget::Scroller->VERSION( '0.33' );
$scroller = Tickit::Widget::Scroller->new;
$scroller->set_gen_bottom_indicator(
sub ( $scroller ) {
# It feels better for progress if we claim the percentage of ofscreen
# lines that are above the screen.
my $lines_above = $scroller->lines_above;
my $lines_total = $lines_above + $scroller->lines_below;
return "" if $lines_total < 1;
return sprintf( "%d of %d (%d%%)",
$lines_above, $lines_total, 100 * $lines_above / $lines_total );
}
);
# Ugh
( run in 0.331 second using v1.01-cache-2.11-cpan-05162d3a2b1 )