Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pythops committed Oct 8, 2024
1 parent d216eef commit 2225013
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 59 deletions.
103 changes: 63 additions & 40 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 15 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

- Real-time traffic inspection and visualization.
- Comprehensive Traffic Statistics.
- Firewall functionalities.
- Fuzzy search.

## 💡 Prerequisites
Expand Down Expand Up @@ -103,14 +104,26 @@ sudo oryx

`f`: Update the applied filters.

`i`: Show more infos about the selected packet.

`ctrl + r`: Reset the app.

`ctrl + s`: Export the capture to `~/oryx/capture` file.

### Inspection Section

`i`: Show more infos about the selected packet.

`/`: Start fuzzy search.

### Firewall Section

`Space`: Toggle firewall rules status.

`n` : Add new firewall rule.

`e`: Edit a firewall rule.

`Enter`: Create or Save a firewall rule.

## ⚖️ License

GPLv3
39 changes: 22 additions & 17 deletions oryx-tui/src/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,35 +25,40 @@ impl Help {
state,
keys: vec![
(
Cell::from("Esc").bold().yellow(),
Cell::from("Esc").bold(),
"Dismiss different pop-ups and modes",
),
(
Cell::from("Tab or Shift+Tab").bold().yellow(),
Cell::from("Tab or Shift+Tab").bold(),
"Switch between different sections",
),
(Cell::from("j or Down").bold().yellow(), "Scroll down"),
(Cell::from("k or Up").bold().yellow(), "Scroll up"),
(Cell::from("?").bold().yellow(), "Show help"),
(Cell::from("q or ctrl+c").bold().yellow(), "Quit"),
(Cell::from("ctrl + r").bold().yellow(), "Reset the app"),
(Cell::from("j or Down").bold(), "Scroll down"),
(Cell::from("k or Up").bold(), "Scroll up"),
(Cell::from("?").bold(), "Show help"),
(Cell::from("q or ctrl+c").bold(), "Quit"),
(
Cell::from("Space").bold().yellow(),
Cell::from("Space").bold(),
"Select/Deselect interface or filter",
),
(Cell::from("/").bold().yellow(), "Start fuzzy finding"),
(Cell::from("f").bold(), "Update the applied filters"),
(Cell::from("ctrl + r").bold(), "Reset the app"),
(
Cell::from("f").bold().yellow(),
"Update the applied filters",
Cell::from("ctrl + s").bold(),
"Export the capture to ~/oryx/capture file",
),
(Cell::from(""), ""),
(Cell::from("## Inspection").bold().yellow(), ""),
(
Cell::from("i").bold().yellow(),
Cell::from("i").bold(),
"Show more infos about the selected packet",
),
(
Cell::from("ctrl + s").bold().yellow(),
"Export the capture to ~/oryx/capture file",
),
(Cell::from("/").bold(), "Start fuzzy finding"),
(Cell::from(""), ""),
(Cell::from("## Firewall").bold().yellow(), ""),
(Cell::from("n").bold(), "Add new firewall rule"),
(Cell::from("e").bold(), "Edit a firewall rule"),
(Cell::from("Space").bold(), "Toggle firewall rule status"),
(Cell::from("Enter").bold(), "Create or Save a firewall rule"),
],
}
}
Expand Down Expand Up @@ -92,7 +97,7 @@ impl Help {
.direction(Direction::Vertical)
.constraints([
Constraint::Fill(1),
Constraint::Length(18),
Constraint::Length(26),
Constraint::Fill(1),
])
.flex(ratatui::layout::Flex::SpaceBetween)
Expand Down

0 comments on commit 2225013

Please sign in to comment.