pub fn format_window_title(
    app_name: &str,
    path: Option<&std::path::Path>,
    modified: bool,
) -> String {
    match path {
        Some(path) => {
            if modified {
                format!("{} - {} (*)", app_name, path.display())
            } else {
                format!("{} - {}", app_name, path.display())
            }
        }
        None => app_name.to_string(),
    }
}
