ratkit 0.2.14

A comprehensive collection of reusable TUI components for ratatui including resizable splits, tree views, markdown rendering, toast notifications, dialogs, and terminal embedding
Documentation
//! TreeNavigator::new constructor.

use crate::primitives::tree_view::keybindings::TreeKeyBindings;
use crate::primitives::tree_view::tree_navigator::TreeNavigator;

impl TreeNavigator {
    /// Creates a new tree navigator with default keybindings.
    ///
    /// # Returns
    ///
    /// A new `TreeNavigator` with default keybindings.
    ///
    /// # Example
    ///
    /// ```rust
    /// use ratatui_toolkit::tree_view::TreeNavigator;
    ///
    /// let navigator = TreeNavigator::new();
    /// ```
    pub fn new() -> Self {
        Self {
            keybindings: TreeKeyBindings::default(),
        }
    }
}