12 releases
new 0.3.0 | Apr 21, 2025 |
---|---|
0.2.3 | Apr 21, 2025 |
0.1.7 | Apr 19, 2025 |
#1 in #slot
1,056 downloads per month
115KB
3K
SLoC
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
Building 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
Dependencies
~6–16MB
~226K SLoC