Skip to content

Commit 162e2eb

Browse files
committed
Add detail modals and improve file browser navigation
- Implement keyboard-triggered detail modals with 'i' key - Add directory history navigation with 'b' key - Show file/directory info in file browser, disk info for mount points - Improve error recovery for directory navigation failures - Optimize directory reading performance - Remove modal instruction text for cleaner UI - Update README with new features and keybindings
1 parent 955e977 commit 162e2eb

File tree

6 files changed

+542
-50
lines changed

6 files changed

+542
-50
lines changed

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ A terminal-based system monitor built with Rust and ratatui. Provides real-time
88

99
- Real-time CPU and memory monitoring with visual progress bars
1010
- Interactive process viewer sorted by resource usage
11-
- File system navigation with keyboard controls
11+
- File system navigation with keyboard controls and directory history
1212
- Network traffic visualization with sparkline graphs
13-
- Multi-interface network monitoring
13+
- Multi-interface network monitoring with overflow detection
14+
- Detail modals for processes, networks, system info, and files
1415
- Vim-style keyboard navigation
1516

1617
## Installation
@@ -44,6 +45,8 @@ cargo run
4445
- `Home/End` - Jump to first/last item in lists
4546
- `Enter` - Open directories in File Explorer
4647
- `Backspace` - Go up one directory
48+
- `b` - Go back in directory history
49+
- `i` - Show detailed information modal
4750
- `r` - Refresh all data
4851
- `?` - Show/hide help
4952
- `q` or `Esc` - Quit
@@ -53,9 +56,17 @@ cargo run
5356
1. **System Monitor** - CPU usage, memory statistics, process count, system information
5457
2. **System Status** - Current time/date, disk usage, network interface statistics, system load
5558
3. **Process Manager** - Live process list sorted by CPU usage
56-
4. **File Explorer** - Directory browser with folder/file icons
59+
4. **File Explorer** - Directory browser with folder/file icons and navigation history
5760
5. **Network Graph** - Real-time network traffic with interface cycling
5861

62+
### Detail Modals
63+
64+
Press `i` to show detailed information:
65+
- **Process Manager** - Process details (PID, CPU, memory, status, command)
66+
- **Network Graph** - Network interface details (totals, current rates)
67+
- **System panels** - System information (hostname, OS, kernel, hardware)
68+
- **File Explorer** - File/directory info or disk usage for mount points
69+
5970
## Technical Details
6071

6172
- Built with ratatui for terminal UI rendering
@@ -66,6 +77,9 @@ cargo run
6677
- Memory and network formatting with appropriate units
6778
- Bounds checking and overflow protection
6879
- String truncation for long names
80+
- Error recovery for directory navigation
81+
- Cached data structures for performance
82+
- Network counter overflow detection
6983

7084
## Requirements
7185

0 commit comments

Comments
 (0)