pub struct AppStateContainer { /* private fields */ }
Expand description
Main application state container
Implementations§
Source§impl AppStateContainer
impl AppStateContainer
Sourcepub fn format_number_compact(n: usize) -> String
pub fn format_number_compact(n: usize) -> String
Format numbers in a compact way (1000 -> 1k, 1500000 -> 1.5M, etc.)
pub fn new(buffers: BufferManager) -> Result<Self>
pub fn current_buffer(&self) -> Option<&Buffer>
pub fn current_buffer_mut(&mut self) -> Option<&mut Buffer>
pub fn buffers(&self) -> &BufferManager
pub fn buffers_mut(&mut self) -> &mut BufferManager
pub fn command_input(&self) -> Ref<'_, InputState>
pub fn command_input_mut(&self) -> RefMut<'_, InputState>
pub fn set_input_text(&self, text: String)
pub fn set_input_text_with_cursor(&self, text: String, cursor: usize)
pub fn set_last_executed_query(&self, query: String)
pub fn search(&self) -> Ref<'_, SearchState>
pub fn search_mut(&self) -> RefMut<'_, SearchState>
Sourcepub fn start_search(&self, pattern: String) -> usize
pub fn start_search(&self, pattern: String) -> usize
Start a new search with the given pattern
Sourcepub fn update_search_matches(&self, matches: Vec<(usize, usize, usize, usize)>)
pub fn update_search_matches(&self, matches: Vec<(usize, usize, usize, usize)>)
Update search matches
Sourcepub fn next_search_match(&self) -> Option<(usize, usize)>
pub fn next_search_match(&self) -> Option<(usize, usize)>
Navigate to next search match
Sourcepub fn previous_search_match(&self) -> Option<(usize, usize)>
pub fn previous_search_match(&self) -> Option<(usize, usize)>
Navigate to previous search match
Sourcepub fn clear_search(&self)
pub fn clear_search(&self)
Clear current search
Sourcepub fn perform_search(
&self,
data: &[Vec<String>],
) -> Vec<(usize, usize, usize, usize)>
pub fn perform_search( &self, data: &[Vec<String>], ) -> Vec<(usize, usize, usize, usize)>
Perform search on provided data Returns the search matches as a vector of (row, col, row_end, col_end) tuples
Sourcepub fn get_current_match(&self) -> Option<(usize, usize)>
pub fn get_current_match(&self) -> Option<(usize, usize)>
Get current search match position (for highlighting)
pub fn filter(&self) -> Ref<'_, FilterState>
pub fn filter_mut(&self) -> RefMut<'_, FilterState>
pub fn column_search(&self) -> Ref<'_, ColumnSearchState>
pub fn column_search_mut(&self) -> RefMut<'_, ColumnSearchState>
Sourcepub fn start_column_search(&self, pattern: String)
pub fn start_column_search(&self, pattern: String)
Start column search with pattern
Sourcepub fn update_column_search_matches(
&self,
columns: &[(String, usize)],
pattern: &str,
) -> Vec<(usize, String)>
pub fn update_column_search_matches( &self, columns: &[(String, usize)], pattern: &str, ) -> Vec<(usize, String)>
Update column search matches
Sourcepub fn next_column_match(&self) -> Option<(usize, String)>
pub fn next_column_match(&self) -> Option<(usize, String)>
Navigate to next column match
Sourcepub fn previous_column_match(&self) -> Option<(usize, String)>
pub fn previous_column_match(&self) -> Option<(usize, String)>
Navigate to previous column match
Sourcepub fn clear_column_search(&self)
pub fn clear_column_search(&self)
Clear column search
Sourcepub fn accept_column_match(&self) -> Option<(usize, String)>
pub fn accept_column_match(&self) -> Option<(usize, String)>
Accept current column match
Sourcepub fn sort_by_column(
&self,
column_index: usize,
column_name: String,
row_count: usize,
)
pub fn sort_by_column( &self, column_index: usize, column_name: String, row_count: usize, )
Sort by column
Sourcepub fn clear_sort(&self)
pub fn clear_sort(&self)
Clear all sorting
Sourcepub fn get_next_sort_order(&self, column_index: usize) -> SortOrder
pub fn get_next_sort_order(&self, column_index: usize) -> SortOrder
Get next sort order for a column
Sourcepub fn advance_sort_state(
&self,
column_index: usize,
column_name: Option<String>,
new_order: SortOrder,
)
pub fn advance_sort_state( &self, column_index: usize, column_name: Option<String>, new_order: SortOrder, )
Advance the sort state for a column
Sourcepub fn selection(&self) -> Ref<'_, SelectionState>
pub fn selection(&self) -> Ref<'_, SelectionState>
Get current selection state (read-only) - DEPRECATED: Will be removed after migration
Sourcepub fn selection_mut(&self) -> RefMut<'_, SelectionState>
pub fn selection_mut(&self) -> RefMut<'_, SelectionState>
Get current selection state (mutable) - DEPRECATED: Will be removed after migration
Sourcepub fn selection_proxy(&self) -> SelectionProxy<'_>
pub fn selection_proxy(&self) -> SelectionProxy<'_>
NEW: Proxy-based selection access (single source of truth)
pub fn selection_proxy_mut(&mut self) -> SelectionProxyMut<'_>
Sourcepub fn set_selection_mode(&self, mode: SelectionMode)
pub fn set_selection_mode(&self, mode: SelectionMode)
Set selection mode
Sourcepub fn select_row(&self, row: Option<usize>)
pub fn select_row(&self, row: Option<usize>)
Select a row
Sourcepub fn select_column(&self, column: usize)
pub fn select_column(&self, column: usize)
Select a column
Sourcepub fn select_cell(&self, row: usize, column: usize)
pub fn select_cell(&self, row: usize, column: usize)
Select a cell
Sourcepub fn toggle_selection_mode(&self)
pub fn toggle_selection_mode(&self)
Toggle selection mode between Row/Cell/Column
Sourcepub fn clear_selections(&self)
pub fn clear_selections(&self)
Clear all selections
Sourcepub fn get_selection_mode(&self) -> SelectionMode
pub fn get_selection_mode(&self) -> SelectionMode
Get current selection mode
Sourcepub fn get_selected_row(&self) -> Option<usize>
pub fn get_selected_row(&self) -> Option<usize>
Get selected row
Sourcepub fn get_selected_column(&self) -> usize
pub fn get_selected_column(&self) -> usize
Get selected column
Sourcepub fn get_current_position(&self) -> (usize, usize)
pub fn get_current_position(&self) -> (usize, usize)
Get the current selected position from NavigationState This is the primary source of truth for cursor position
Sync selection state with navigation position Called when navigation changes to update selection tracking
Sourcepub fn handle_yank_by_mode(&self) -> Option<String>
pub fn handle_yank_by_mode(&self) -> Option<String>
Handle yank chord based on selection mode Returns the action taken for status messaging
Sourcepub fn get_table_selected_row(&self) -> Option<usize>
pub fn get_table_selected_row(&self) -> Option<usize>
Get the selected row for table widget (ratatui compatibility)
Sourcepub fn set_table_selected_row(&self, row: Option<usize>)
pub fn set_table_selected_row(&self, row: Option<usize>)
Set the selected row (updates navigation state)
Sourcepub fn get_current_column(&self) -> usize
pub fn get_current_column(&self) -> usize
Get the current column index
Sourcepub fn set_current_column(&self, column: usize)
pub fn set_current_column(&self, column: usize)
Set the current column index
pub fn completion(&self) -> Ref<'_, CompletionState>
pub fn completion_mut(&self) -> RefMut<'_, CompletionState>
pub fn clear_completion(&self)
pub fn set_completion_suggestions(&self, suggestions: Vec<String>)
pub fn next_completion(&self)
pub fn get_current_completion(&self) -> Option<String>
pub fn is_completion_active(&self) -> bool
pub fn update_completion_context(&self, query: String, cursor_pos: usize)
pub fn is_same_completion_context(&self, query: &str, cursor_pos: usize) -> bool
pub fn start_history_search(&self, original_input: String)
pub fn update_history_search(&self, query: String)
Sourcepub fn update_history_search_with_schema(
&self,
query: String,
columns: &[String],
source: Option<&str>,
)
pub fn update_history_search_with_schema( &self, query: String, columns: &[String], source: Option<&str>, )
Update history search with schema context (columns and source)
Sourcepub fn history_search_add_char(&self, c: char)
pub fn history_search_add_char(&self, c: char)
Handle character input during history search
Sourcepub fn history_search_backspace(&self)
pub fn history_search_backspace(&self)
Handle backspace during history search
pub fn history_search_next(&self)
pub fn history_search_previous(&self)
pub fn get_selected_history_command(&self) -> Option<String>
pub fn accept_history_search(&self) -> Option<String>
pub fn cancel_history_search(&self) -> String
pub fn history_search(&self) -> Ref<'_, HistorySearchState>
pub fn is_history_search_active(&self) -> bool
pub fn update_data_size(&self, rows: usize, columns: usize)
pub fn set_viewport_size(&self, rows: usize, columns: usize)
pub fn toggle_viewport_lock(&self)
pub fn toggle_cursor_lock(&self)
pub fn is_cursor_locked(&self) -> bool
pub fn get_scroll_offset(&self) -> (usize, usize)
pub fn is_viewport_locked(&self) -> bool
Sourcepub fn set_results(
&self,
results: QueryResponse,
execution_time: Duration,
from_cache: bool,
) -> Result<()>
pub fn set_results( &self, results: QueryResponse, execution_time: Duration, from_cache: bool, ) -> Result<()>
Set query results with comprehensive logging and performance tracking
Sourcepub fn get_results(&self) -> Option<QueryResponse>
pub fn get_results(&self) -> Option<QueryResponse>
Get current query results
Sourcepub fn cache_results(
&self,
query_key: String,
results: QueryResponse,
) -> Result<()>
pub fn cache_results( &self, query_key: String, results: QueryResponse, ) -> Result<()>
Cache query results with logging
Sourcepub fn get_cached_results(&self, query_key: &str) -> Option<QueryResponse>
pub fn get_cached_results(&self, query_key: &str) -> Option<QueryResponse>
Get cached results with access tracking
Sourcepub fn clear_results_cache(&self)
pub fn clear_results_cache(&self)
Clear results cache
Sourcepub fn clipboard(&self) -> Ref<'_, ClipboardState>
pub fn clipboard(&self) -> Ref<'_, ClipboardState>
Get clipboard state (read-only)
Sourcepub fn clipboard_mut(&self) -> RefMut<'_, ClipboardState>
pub fn clipboard_mut(&self) -> RefMut<'_, ClipboardState>
Get clipboard state (mutable)
Sourcepub fn chord(&self) -> Ref<'_, ChordState>
pub fn chord(&self) -> Ref<'_, ChordState>
Get chord state (read-only)
Sourcepub fn chord_mut(&self) -> RefMut<'_, ChordState>
pub fn chord_mut(&self) -> RefMut<'_, ChordState>
Get chord state (mutable)
Sourcepub fn undo_redo(&self) -> Ref<'_, UndoRedoState>
pub fn undo_redo(&self) -> Ref<'_, UndoRedoState>
Get undo/redo state (read-only)
Sourcepub fn undo_redo_mut(&self) -> RefMut<'_, UndoRedoState>
pub fn undo_redo_mut(&self) -> RefMut<'_, UndoRedoState>
Get undo/redo state (mutable)
Sourcepub fn scroll(&self) -> Ref<'_, ScrollState>
pub fn scroll(&self) -> Ref<'_, ScrollState>
Get scroll state (read-only)
Sourcepub fn scroll_mut(&self) -> RefMut<'_, ScrollState>
pub fn scroll_mut(&self) -> RefMut<'_, ScrollState>
Get scroll state (mutable)
Sourcepub fn yank_cell(
&self,
row: usize,
column: usize,
value: String,
preview: String,
) -> Result<()>
pub fn yank_cell( &self, row: usize, column: usize, value: String, preview: String, ) -> Result<()>
Yank a cell to clipboard
Sourcepub fn yank_row(&self, row: usize, value: String, preview: String) -> Result<()>
pub fn yank_row(&self, row: usize, value: String, preview: String) -> Result<()>
Yank a row to clipboard
Sourcepub fn yank_column(
&self,
column_name: String,
column_index: usize,
value: String,
preview: String,
) -> Result<()>
pub fn yank_column( &self, column_name: String, column_index: usize, value: String, preview: String, ) -> Result<()>
Yank a column to clipboard
Sourcepub fn yank_all(&self, value: String, preview: String) -> Result<()>
pub fn yank_all(&self, value: String, preview: String) -> Result<()>
Yank all data to clipboard
Sourcepub fn yank_test_case(&self, value: String) -> Result<()>
pub fn yank_test_case(&self, value: String) -> Result<()>
Yank a test case to clipboard
Sourcepub fn yank_debug_context(&self, value: String) -> Result<()>
pub fn yank_debug_context(&self, value: String) -> Result<()>
Yank debug context to clipboard
Sourcepub fn clear_clipboard(&self)
pub fn clear_clipboard(&self)
Clear clipboard
Sourcepub fn get_clipboard_stats(&self) -> String
pub fn get_clipboard_stats(&self) -> String
Get clipboard statistics for debug display
Sourcepub fn read_from_clipboard(&self) -> Result<String>
pub fn read_from_clipboard(&self) -> Result<String>
Read from system clipboard
Sourcepub fn write_to_clipboard(&self, text: &str) -> Result<()>
pub fn write_to_clipboard(&self, text: &str) -> Result<()>
Write to system clipboard without tracking
Sourcepub fn get_results_stats(&self) -> (CacheStats, PerformanceStats)
pub fn get_results_stats(&self) -> (CacheStats, PerformanceStats)
Get comprehensive results statistics
Sourcepub fn is_results_from_cache(&self) -> bool
pub fn is_results_from_cache(&self) -> bool
Check if current results are from cache
Sourcepub fn get_last_execution_time(&self) -> Duration
pub fn get_last_execution_time(&self) -> Duration
Get last query execution time
Sourcepub fn get_results_memory_usage(&self) -> (usize, usize)
pub fn get_results_memory_usage(&self) -> (usize, usize)
Get memory usage information
pub fn widgets(&self) -> &WidgetStates
pub fn widgets_mut(&mut self) -> &mut WidgetStates
pub fn cache_list(&self) -> &CacheListState
pub fn cache_list_mut(&mut self) -> &mut CacheListState
pub fn column_stats(&self) -> &ColumnStatsState
pub fn column_stats_mut(&mut self) -> &mut ColumnStatsState
pub fn jump_to_row(&self) -> &JumpToRowState
pub fn jump_to_row_mut(&mut self) -> &mut JumpToRowState
pub fn command_history(&self) -> Ref<'_, CommandHistory>
pub fn command_history_mut(&self) -> RefMut<'_, CommandHistory>
pub fn results_cache(&self) -> &ResultsCache
pub fn results_cache_mut(&mut self) -> &mut ResultsCache
pub fn current_mode(&self) -> AppMode
pub fn enter_mode(&mut self, mode: AppMode) -> Result<()>
pub fn exit_mode(&mut self) -> Result<AppMode>
pub fn toggle_debug(&mut self)
Sourcepub fn set_debug_service(&self, debug_service: DebugService)
pub fn set_debug_service(&self, debug_service: DebugService)
Set the debug service for logging (can be called through Arc due to RefCell)
pub fn is_debug_enabled(&self) -> bool
pub fn toggle_help(&self)
pub fn is_help_visible(&self) -> bool
pub fn set_help_visible(&self, visible: bool)
Sourcepub fn help_scroll_down(&self)
pub fn help_scroll_down(&self)
Scroll help down by one line
Sourcepub fn help_scroll_up(&self)
pub fn help_scroll_up(&self)
Scroll help up by one line
Sourcepub fn help_page_down(&self)
pub fn help_page_down(&self)
Page down in help (10 lines)
Sourcepub fn help_page_up(&self)
pub fn help_page_up(&self)
Page up in help (10 lines)
Sourcepub fn set_help_max_scroll(&self, content_lines: usize, viewport_height: usize)
pub fn set_help_max_scroll(&self, content_lines: usize, viewport_height: usize)
Set maximum scroll for help based on content
Sourcepub fn help_scroll_offset(&self) -> u16
pub fn help_scroll_offset(&self) -> u16
Get current help scroll offset
Sourcepub fn help_state(&self) -> Ref<'_, HelpState>
pub fn help_state(&self) -> Ref<'_, HelpState>
Get help state for debugging
pub fn log_key_press(&self, key: KeyEvent, action: Option<String>)
pub fn clear_key_history(&self)
Sourcepub fn normalize_key(&self, key: KeyEvent) -> KeyEvent
pub fn normalize_key(&self, key: KeyEvent) -> KeyEvent
Normalize a key event for platform-specific differences This handles cases like Windows sending Shift+$ instead of just $ and platform differences in how Shift+Arrow keys are reported
Sourcepub fn debug_dump(&self) -> String
pub fn debug_dump(&self) -> String
Generate comprehensive debug dump for F5
Sourcepub fn pretty_print(&self) -> String
pub fn pretty_print(&self) -> String
Pretty print the state for debugging
Sourcepub fn delegated_selected_row(&self) -> Option<usize>
pub fn delegated_selected_row(&self) -> Option<usize>
Get selected row from current buffer
Sourcepub fn set_delegated_selected_row(&mut self, row: Option<usize>)
pub fn set_delegated_selected_row(&mut self, row: Option<usize>)
Set selected row in current buffer
Sourcepub fn delegated_current_column(&self) -> usize
pub fn delegated_current_column(&self) -> usize
Get current column from current buffer
Sourcepub fn set_delegated_current_column(&mut self, col: usize)
pub fn set_delegated_current_column(&mut self, col: usize)
Set current column in current buffer
Sourcepub fn delegated_scroll_offset(&self) -> (usize, usize)
pub fn delegated_scroll_offset(&self) -> (usize, usize)
Get scroll offset from current buffer
Sourcepub fn set_delegated_scroll_offset(&mut self, offset: (usize, usize))
pub fn set_delegated_scroll_offset(&mut self, offset: (usize, usize))
Set scroll offset in current buffer
Sourcepub fn delegated_search_pattern(&self) -> String
pub fn delegated_search_pattern(&self) -> String
Get search pattern from current buffer
Sourcepub fn set_delegated_search_pattern(&mut self, pattern: String)
pub fn set_delegated_search_pattern(&mut self, pattern: String)
Set search pattern in current buffer
Sourcepub fn delegated_search_matches(&self) -> Vec<(usize, usize)>
pub fn delegated_search_matches(&self) -> Vec<(usize, usize)>
Get search matches from current buffer
Sourcepub fn set_delegated_search_matches(&mut self, matches: Vec<(usize, usize)>)
pub fn set_delegated_search_matches(&mut self, matches: Vec<(usize, usize)>)
Set search matches in current buffer
Sourcepub fn delegated_filter_pattern(&self) -> String
pub fn delegated_filter_pattern(&self) -> String
Get filter pattern from current buffer
Sourcepub fn set_delegated_filter_pattern(&mut self, pattern: String)
pub fn set_delegated_filter_pattern(&mut self, pattern: String)
Set filter pattern in current buffer
Sourcepub fn delegated_filter_active(&self) -> bool
pub fn delegated_filter_active(&self) -> bool
Check if filter is active in current buffer
Sourcepub fn set_delegated_filter_active(&mut self, active: bool)
pub fn set_delegated_filter_active(&mut self, active: bool)
Set filter active state in current buffer
Sourcepub fn delegated_sort_column(&self) -> Option<usize>
pub fn delegated_sort_column(&self) -> Option<usize>
Get sort column from current buffer
Sourcepub fn set_delegated_sort_column(&mut self, column: Option<usize>)
pub fn set_delegated_sort_column(&mut self, column: Option<usize>)
Set sort column in current buffer
Sourcepub fn delegated_sort_order(&self) -> SortOrder
pub fn delegated_sort_order(&self) -> SortOrder
Get sort order from current buffer
Sourcepub fn set_delegated_sort_order(&mut self, order: SortOrder)
pub fn set_delegated_sort_order(&mut self, order: SortOrder)
Set sort order in current buffer
Sourcepub fn set_status_message(&mut self, message: String)
pub fn set_status_message(&mut self, message: String)
Set status message (proxy to Buffer)
Sourcepub fn get_status_message(&self) -> String
pub fn get_status_message(&self) -> String
Get status message (proxy to Buffer)
Sourcepub fn set_dataview(&mut self, dataview: Option<DataView>)
pub fn set_dataview(&mut self, dataview: Option<DataView>)
Set dataview (proxy to Buffer)
Sourcepub fn get_dataview(&self) -> Option<&DataView>
pub fn get_dataview(&self) -> Option<&DataView>
Get dataview (proxy to Buffer)
Sourcepub fn set_last_results_row(&mut self, row: Option<usize>)
pub fn set_last_results_row(&mut self, row: Option<usize>)
Set last results row (proxy to Buffer)
Sourcepub fn set_last_scroll_offset(&mut self, offset: (usize, usize))
pub fn set_last_scroll_offset(&mut self, offset: (usize, usize))
Set last scroll offset (proxy to Buffer)
Sourcepub fn get_input_text(&self) -> String
pub fn get_input_text(&self) -> String
Get input text (proxy to Buffer)
Sourcepub fn get_input_cursor_position(&self) -> usize
pub fn get_input_cursor_position(&self) -> usize
Get input cursor position (proxy to Buffer)
Sourcepub fn get_last_query(&self) -> String
pub fn get_last_query(&self) -> String
Get last query (proxy to Buffer)
Sourcepub fn is_buffer_modified(&self) -> bool
pub fn is_buffer_modified(&self) -> bool
Check if buffer is modified (proxy to Buffer)
Sourcepub fn set_buffer_modified(&mut self, modified: bool)
pub fn set_buffer_modified(&mut self, modified: bool)
Set buffer modified state (proxy to Buffer)
Sourcepub fn get_buffer_dataview(&self) -> Option<&DataView>
pub fn get_buffer_dataview(&self) -> Option<&DataView>
Get dataview (proxy to Buffer) - returns reference
Sourcepub fn get_buffer_dataview_mut(&mut self) -> Option<&mut DataView>
pub fn get_buffer_dataview_mut(&mut self) -> Option<&mut DataView>
Get mutable dataview (proxy to Buffer)
Sourcepub fn get_original_source(&self) -> Option<&DataTable>
pub fn get_original_source(&self) -> Option<&DataTable>
Get original source DataTable (proxy to Buffer)
Sourcepub fn has_dataview(&self) -> bool
pub fn has_dataview(&self) -> bool
Check if buffer has dataview (proxy to Buffer)
Sourcepub fn is_case_insensitive(&self) -> bool
pub fn is_case_insensitive(&self) -> bool
Check if case insensitive mode (proxy to Buffer)
Sourcepub fn get_edit_mode(&self) -> Option<EditMode>
pub fn get_edit_mode(&self) -> Option<EditMode>
Get edit mode (proxy to Buffer)
Sourcepub fn is_show_row_numbers(&self) -> bool
pub fn is_show_row_numbers(&self) -> bool
Check if show row numbers (proxy to Buffer)
Sourcepub fn is_compact_mode(&self) -> bool
pub fn is_compact_mode(&self) -> bool
Check if compact mode (proxy to Buffer)
Sourcepub fn set_input_cursor_position(&mut self, pos: usize)
pub fn set_input_cursor_position(&mut self, pos: usize)
Set input cursor position (proxy to Buffer)
Sourcepub fn set_search_pattern(&mut self, pattern: String)
pub fn set_search_pattern(&mut self, pattern: String)
Set search pattern (proxy to Buffer)
Sourcepub fn set_filter_pattern(&mut self, pattern: String)
pub fn set_filter_pattern(&mut self, pattern: String)
Set filter pattern (proxy to Buffer)
Sourcepub fn set_fuzzy_filter_pattern(&mut self, pattern: String)
pub fn set_fuzzy_filter_pattern(&mut self, pattern: String)
Set fuzzy filter pattern (proxy to Buffer)
Sourcepub fn set_fuzzy_filter_active(&mut self, active: bool)
pub fn set_fuzzy_filter_active(&mut self, active: bool)
Set fuzzy filter active (proxy to Buffer)
Sourcepub fn is_fuzzy_filter_active(&self) -> bool
pub fn is_fuzzy_filter_active(&self) -> bool
Is fuzzy filter active (proxy to Buffer)
Sourcepub fn set_fuzzy_filter_indices(&mut self, indices: Vec<usize>)
pub fn set_fuzzy_filter_indices(&mut self, indices: Vec<usize>)
Set fuzzy filter indices (proxy to Buffer)
Sourcepub fn is_kill_ring_empty(&self) -> bool
pub fn is_kill_ring_empty(&self) -> bool
Is kill ring empty (proxy to Buffer)
Sourcepub fn set_selected_row(&mut self, row: Option<usize>)
pub fn set_selected_row(&mut self, row: Option<usize>)
Set selected row (proxy to Buffer)
Sourcepub fn set_buffer_input_text(&mut self, text: String)
pub fn set_buffer_input_text(&mut self, text: String)
Set input text (proxy to Buffer) - properly syncs both buffer and command_input
Sourcepub fn get_buffer_input_text(&self) -> String
pub fn get_buffer_input_text(&self) -> String
Get input text (proxy to Buffer)
Sourcepub fn set_buffer_input_text_with_cursor(&mut self, text: String, cursor: usize)
pub fn set_buffer_input_text_with_cursor(&mut self, text: String, cursor: usize)
Set input text with cursor position (proxy to Buffer) - properly syncs both
Sourcepub fn set_current_column_buffer(&mut self, col: usize)
pub fn set_current_column_buffer(&mut self, col: usize)
Set current column (proxy to Buffer)
Sourcepub fn set_show_row_numbers(&mut self, show: bool)
pub fn set_show_row_numbers(&mut self, show: bool)
Set show row numbers (proxy to Buffer)
Sourcepub fn set_filter_active(&mut self, active: bool)
pub fn set_filter_active(&mut self, active: bool)
Set filter active (proxy to Buffer)
Sourcepub fn set_compact_mode(&mut self, compact: bool)
pub fn set_compact_mode(&mut self, compact: bool)
Set compact mode (proxy to Buffer)
Sourcepub fn set_case_insensitive(&mut self, insensitive: bool)
pub fn set_case_insensitive(&mut self, insensitive: bool)
Set case insensitive (proxy to Buffer)
Sourcepub fn get_buffer_selected_row(&self) -> Option<usize>
pub fn get_buffer_selected_row(&self) -> Option<usize>
Get selected row from buffer (proxy to Buffer)
Sourcepub fn get_search_pattern(&self) -> String
pub fn get_search_pattern(&self) -> String
Get search pattern from buffer (proxy to Buffer)
Sourcepub fn get_fuzzy_filter_pattern(&self) -> String
pub fn get_fuzzy_filter_pattern(&self) -> String
Get fuzzy filter pattern (proxy to Buffer)
Sourcepub fn vim_search_should_handle_key(&self) -> bool
pub fn vim_search_should_handle_key(&self) -> bool
Check if vim search should handle the current key
Sourcepub fn start_vim_search(&mut self)
pub fn start_vim_search(&mut self)
Start vim search mode
Sourcepub fn exit_vim_search(&mut self)
pub fn exit_vim_search(&mut self)
Exit vim search mode
Sourcepub fn get_fuzzy_filter_indices(&self) -> Vec<usize>
pub fn get_fuzzy_filter_indices(&self) -> Vec<usize>
Get fuzzy filter indices (proxy to Buffer)
Sourcepub fn set_scroll_offset(&mut self, offset: (usize, usize))
pub fn set_scroll_offset(&mut self, offset: (usize, usize))
Set scroll offset (proxy to Buffer)
Sourcepub fn save_state_for_undo(&mut self)
pub fn save_state_for_undo(&mut self)
Save state for undo (proxy to Buffer)
Sourcepub fn perform_undo(&mut self) -> bool
pub fn perform_undo(&mut self) -> bool
Perform undo (proxy to Buffer)
Sourcepub fn perform_redo(&mut self) -> bool
pub fn perform_redo(&mut self) -> bool
Perform redo (proxy to Buffer)
Sourcepub fn insert_char_at_cursor(&mut self, c: char)
pub fn insert_char_at_cursor(&mut self, c: char)
Insert character at cursor position
Sourcepub fn handle_input_key(&mut self, key: KeyEvent) -> bool
pub fn handle_input_key(&mut self, key: KeyEvent) -> bool
Handle input key (proxy to Buffer)
Sourcepub fn set_search_matches_with_index(
&mut self,
matches: Vec<(usize, usize)>,
index: usize,
)
pub fn set_search_matches_with_index( &mut self, matches: Vec<(usize, usize)>, index: usize, )
Set search matches and update state
Sourcepub fn clear_search_state(&mut self)
pub fn clear_search_state(&mut self)
Clear search state completely
Sourcepub fn set_last_state(
&mut self,
row: Option<usize>,
scroll_offset: (usize, usize),
)
pub fn set_last_state( &mut self, row: Option<usize>, scroll_offset: (usize, usize), )
Set last state (results row and scroll offset)
Sourcepub fn clear_line(&mut self)
pub fn clear_line(&mut self)
Clear line - save undo state and clear input (grouped operation)
Sourcepub fn move_input_cursor_left(&mut self)
pub fn move_input_cursor_left(&mut self)
Move cursor left (grouped operation)
Sourcepub fn move_input_cursor_right(&mut self)
pub fn move_input_cursor_right(&mut self)
Move cursor right (grouped operation)
Reset navigation state (grouped operation)
Sourcepub fn clear_fuzzy_filter_state(&mut self)
pub fn clear_fuzzy_filter_state(&mut self)
Clear fuzzy filter (grouped operation)
Sourcepub fn get_filter_pattern(&self) -> String
pub fn get_filter_pattern(&self) -> String
Get filter pattern (proxy to Buffer)
Sourcepub fn set_column_stats(&mut self, stats: Option<ColumnStatistics>)
pub fn set_column_stats(&mut self, stats: Option<ColumnStatistics>)
Set column statistics (proxy to Buffer)
Sourcepub fn set_column_widths(&mut self, widths: Vec<u16>)
pub fn set_column_widths(&mut self, widths: Vec<u16>)
Set column widths (proxy to Buffer)
Sourcepub fn set_current_match(&mut self, match_pos: Option<(usize, usize)>)
pub fn set_current_match(&mut self, match_pos: Option<(usize, usize)>)
Set current match (proxy to Buffer)
Sourcepub fn get_kill_ring(&self) -> String
pub fn get_kill_ring(&self) -> String
Get kill ring (proxy to Buffer)
Sourcepub fn get_buffer_status_message(&self) -> String
pub fn get_buffer_status_message(&self) -> String
Get status message (proxy to Buffer)
Sourcepub fn get_buffer_name(&self) -> String
pub fn get_buffer_name(&self) -> String
Get buffer name (proxy to Buffer)
Sourcepub fn get_last_results_row(&self) -> Option<usize>
pub fn get_last_results_row(&self) -> Option<usize>
Get last results row (proxy to Buffer)
Sourcepub fn get_last_scroll_offset(&self) -> (usize, usize)
pub fn get_last_scroll_offset(&self) -> (usize, usize)
Get last scroll offset (proxy to Buffer)
Sourcepub fn set_last_query(&mut self, query: String)
pub fn set_last_query(&mut self, query: String)
Set last query (proxy to Buffer)
Sourcepub fn get_last_query_source(&self) -> Option<String>
pub fn get_last_query_source(&self) -> Option<String>
Get last query source (proxy to Buffer)
Sourcepub fn set_last_visible_rows(&mut self, rows: usize)
pub fn set_last_visible_rows(&mut self, rows: usize)
Set last visible rows (proxy to Buffer)
Trait Implementations§
Source§impl Debug for AppStateContainer
impl Debug for AppStateContainer
Auto Trait Implementations§
impl !Freeze for AppStateContainer
impl !RefUnwindSafe for AppStateContainer
impl Send for AppStateContainer
impl !Sync for AppStateContainer
impl Unpin for AppStateContainer
impl !UnwindSafe for AppStateContainer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more