lwl | Less with links. |
| download: http://git.y1.nz/archives/lwl.tar.gz | |
| README | Files | Log | Refs |
README
1 LWL: less with links
2
3 A tiny reimplementation of Less, plus markdown-y links.
4
5 Build:
6 Update config.mk and config.h to match your
7 preferences, then run 'make' to create the lwl
8 binary. You can then install it by running
9 'make install' with the necessary permissions.
10
11 Dependencies:
12 This project only requires (TODO: C99-compatible)
13 libc, and has no other dependencies.
14
15 The default controls use [bro](http://git.y1.nz/bro/files.html).
16 This can be omitted if you don't want to use
17 lwl as part of the bro web browser.
18
19 Note: lwl does not use any form of the curses
20 library. Because of this, it only supports vt100-like
21 terminals. It only uses graphical rendition and basic
22 navigation/clearing controls though, so it should be
23 relatively easy to port it to support other terminals.
24 Or make it use curses if that's your jam.
25
26 Controls:
27 The controls are all descriptively defined in
28 config.h. They are intended to be easy to edit
29 by the user, if she so prefers.
30
31 q - exit
32 jk - scroll up/down (one line)
33 ud - scroll up/down (1/3 of screen height)
34 gG - jump to top/bottom of file
35 nN - step between links or text-search results
36 mM - step 8x between links or text-search results
37 / - enter search mode
38 backspace - un-type one character or exit search mode
39 enter - do search
40 else - type character (ignores non-printing chars)
41 > - enter fork mode
42 backspace - un-type one character or exit fork mode
43 enter - set env LINK, run the command, then resume lwl.
44 else - type character (ignores non-printing chars)
45 enter - same as `>bro "$LINK"`
46 z - navigate to previous page (TODO unimplemented)
47 v - same as >echo `"$LINK"`
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.