More(3pm)

๐Ÿ“ฆ
version 0.9943 ยท 6 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

๐Ÿ’– Tk::More โ€” the more/less text widget, but make it Perl ๐ŸŽ€

okay bestie, gather round, because this is More(3pm) โ€” a User Contributed Perl Documentation page, aka the manual for Tk::More ๐Ÿ’…


โœจ NAME โœจ

Tk::More โ€” a more or less like text widget. literally that's the whole vibe ๐Ÿฆ‹


๐ŸŒธ SYNOPSIS ๐ŸŒธ

use Tk::More;

$more = $parent->More(...text widget options ...);
$more->Load(FILENAME);

๐Ÿ’œ DESCRIPTION ๐Ÿ’œ

Tk::More is a readonly text widget, but with extra key bindings on top โ€” the same ones you'd find in those UNI* command line tools more or less. And just like in more, there's a bonus status/command line chillin' at the bottom. no cap ๐Ÿ‘‘


๐ŸŽ€ ADDITIONAL BINDINGS ๐ŸŽ€

okay so here's the whole keybind menu, bestie. memorize it, it's giving cheat sheet ๐Ÿ“‹โœจ

  • Key-g or Home โ€” goto beginning of file ๐Ÿ 
  • Key-G or End โ€” goto end of file ๐Ÿ
  • Key-f or Next โ€” forward screen โฉ
  • Key-b or Prior โ€” backward screen โช
  • Key-k or Up โ€” up one line โฌ†๏ธ
  • Key-j or Down โ€” down one line โฌ‡๏ธ
  • Key-/ โ€” search forward ๐Ÿ”
  • Key-? โ€” search backward ๐Ÿ”Ž
  • Key-n โ€” find next match โญ๏ธ
  • Key-N โ€” find previous match โฎ๏ธ
  • Key-u โ€” up half screen ๐ŸŒ—
  • Key-d โ€” down half screen ๐ŸŒ“
  • Key-Return โ€” down one line โ†ฉ๏ธ
  • Key-h โ€” invoke help window ๐Ÿ†˜

๐ŸŒˆ OPTIONS ๐ŸŒˆ

each one comes with its Name / Class / Switch trio, keep them straight bestie ๐Ÿซถ

  • Name: fixedFont โ€” Class: FixedFont โ€” Switch: -font โ€” sets the font of the viewer widget. by default it's a fixed font. iconic behavior honestly ๐Ÿ–‹๏ธ
  • Name: searchCase โ€” Class: SearchCase โ€” Switch: -searchcase โ€” sets whether searching should be done case-insensitive. defaults to true. yes queen, case-insensitive by default ๐Ÿ’…
  • Switch: -helpcommand โ€” sets the command for the "h" (help) key. the help key needed a whole command, periodt ๐Ÿ“ข

๐Ÿฆ‹ METHODS ๐Ÿฆ‹

Load($file, %args)

loads $file into the widget. %args may be one of the following:

  • -encoding => $encoding โ€” assume the encoding of the file to be $encoding. if none is given, then assume no encoding (which is equivalent to iso-8859-1). the math is mathing ๐Ÿ“

AddQuitBindings

convenience method to add the bindinds Key-q and Control-Key-q to close the Toplevel window containing this More widget. (yes, "bindinds" โ€” that's the original spelling, we don't touch the lore ๐Ÿ™ˆ) bye bye window ๐Ÿ‘‹


๐Ÿ’€ BUGS ๐Ÿ’€

besides that, most of the more bindings are not implemented. and honestly? it bugs the author most. here's the list, high to low priority ๐Ÿ”ฅ

  • better status line implementation
  • Cursor movement: up/down move displayed area regardless where insert cursor is
  • add History, Load, Search (also as popup menu)
not me listing the bugs with the same energy as a ranked tier list ๐Ÿ˜ญ

โญ SEE ALSO โญ

Tk::ROText, more(1), tkmore, less(1) โ€” go read those too, bestie, iykyk ๐Ÿ“š


๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Achim Bohnet <ach@mpe.mpg.de> ๐Ÿ’Œ

Currently maintained by Slaven Rezic <slaven@rezic.de>.

Copyright (c) 1997-1998 Achim Bohnet. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. ๐Ÿ“œ


and that's a wrap bestie!! this page shipped with perl v5.34.0 and got its lil timestamp on 2022-06-28 ๐ŸŒธ๐Ÿ’– slay, go forth and scroll ๐Ÿ’…โœจ

๐Ÿ“ฆ where this page comes from