Skip to content

Commit

Permalink
feat: add search by ip
Browse files Browse the repository at this point in the history
Closes #87

Signed-off-by: Nathanael DEMACON <[email protected]>
  • Loading branch information
quantumsheep committed Jun 29, 2024
1 parent e87f16f commit 2743658
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ impl App {
move |host: &&ssh::Host, search_value: &str| -> bool {
search_value.is_empty()
|| matcher.fuzzy_match(&host.name, search_value).is_some()
|| matcher
.fuzzy_match(&host.destination, search_value)
.is_some()
|| matcher.fuzzy_match(&host.aliases, search_value).is_some()
},
),
Expand Down

0 comments on commit 2743658

Please sign in to comment.