purple-ssh 3.28.0

Free, open-source terminal SSH manager and SSH config editor in Rust for macOS and Linux that keeps ~/.ssh/config in sync with 18 cloud providers, monitors live SSH tunnels and manages Docker and Podman containers fleet-wide. Spin up a VM, it shows up. Destroy it, it dims. Plus scp, Vault SSH certs and an MCP server for AI agents. MIT licensed.
Documentation
//! Group filter helpers. Implements `impl App` continuation for clearing the
//! active group filter.

use super::HostListItem;
use crate::app::App;

impl App {
    /// Clear group filter (Esc from filtered mode).
    pub fn clear_group_filter(&mut self) {
        if self.hosts_state.group_filter.is_none() {
            return;
        }
        self.hosts_state.group_filter = None;
        self.apply_sort();
        for (i, item) in self.hosts_state.display_list.iter().enumerate() {
            if matches!(item, HostListItem::Host { .. }) {
                self.ui.list_state.select(Some(i));
                break;
            }
        }
    }
}