I've just pushed a new pager command which works like the less unix command
in master.
Supported features are:
  * line numbering
  * auto-quit at eof
  * line wrapping
  * horizontal and vertical movements
  * pattern searching / highlighting with movement
  * auto-adjustement with the terminal size
  * runtime change of options

It's far from a full less clone (missing customized prompt, line editing,
support for non printable chars, multiple files, etc...), but it provides
useful features.

The only real important thing missing is imho the buffering part: the input
is fully buffered and there's no special behavior difference between
standard input and files.  This means that if the file or standard input is
huge, it will end up being fully loaded in memory.

If anyone want to try it (or add features), especially on non-mac platforms
in order to make sure things work correctly, they're more than welcomed !

Cheers,
Guillaume

Reply via email to