loss-viewer

Crates.ioloss-viewer
lib.rsloss-viewer
version0.3.0
created_at2025-04-19 14:11:15.902827+00
updated_at2025-04-21 15:00:05.81117+00
descriptionA modern terminal pager and log viewer.
homepagehttps://github.com/Gusabary/Loss
repositoryhttps://github.com/Gusabary/Loss
max_upload_size
id1640687
size135,243
Tao Bocheng (Gusabary)

documentation

https://github.com/Gusabary/Loss/blob/main/README.md

README

Loss

Loss is a modern terminal pager and log viewer designed for efficient log file viewing and navigation.

Features

  • Fast log file viewing with efficient memory usage
  • Real-time log following
  • Search/Jump support
  • Timestamp-based navigation
  • Bookmark support
  • Finder with multiple slots

Installation

Several alternatives:

Install from crates.io

cargo install loss-viewer

Download from github release

Download binary from Release page and put it into $PATH

Build from source

# 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 .

Usage

To view a log file:

loss <filename>

Key Bindings

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

License

MIT

Commit count: 88

cargo fmt