Loss is a modern terminal pager and log viewer designed for efficient log file viewing and navigation.
- Fast log file viewing with efficient memory usage
- Real-time log following
- Search/Jump support
- Timestamp-based navigation
- Bookmark support
- Finder with multiple slots
Several alternatives:
cargo install loss-viewer
Download binary from Release page and put it into $PATH
# clone the repository
git clone https://github.com/yourusername/loss.git
cd loss
# build the project
cargo build --release
# install the binary
cargo install --path .
To view a log file:
loss <filename>
Category | Key | Description |
---|---|---|
Basic | q |
Exit |
w |
Toggle wrap line | |
F |
Enter follow mode | |
h |
Toggle helper menu | |
Search | / |
Search down |
? |
Search up | |
n |
Search next | |
N |
Search previous | |
Jump | t |
Jump to timestamp |
j |
Jump down n lines | |
J |
Jump up n lines | |
PageUp/Down |
Jump up/down 5 lines | |
Ctrl+PageUp/Down |
Jump up/down 20 lines | |
Home |
Jump to start | |
End |
Jump to end | |
, |
Undo window vertical move | |
. |
Redo window vertical move | |
Bookmark | b |
Set bookmark |
g |
Open bookmark menu | |
Finder | + |
Add active slot |
- |
Remove active slot | |
0-9 |
Switch active slot | |
o |
Toggle highlight flag | |
r |
Toggle raw/regex pattern | |
x |
Clear slot content | |
m |
Open finder menu |