feat(snippets): add create snippet form

This commit introduces a new `SnippetForm` component for creating snippets, updates the `ViewManager` to handle the new 'create-snippet-form' view, and integrates the form into the main page routing.
This commit is contained in:
ByteAtATime 2025-06-24 20:00:15 -07:00
parent 7088cb17fd
commit de0b26e8ae
No known key found for this signature in database
8 changed files with 525 additions and 81 deletions

View file

@ -13,6 +13,7 @@ mod quicklinks;
mod snippets;
mod system;
use crate::snippets::input_manager::EvdevInputManager;
use crate::{app::App, cache::AppCache};
use browser_extension::WsState;
use frecency::FrecencyManager;
@ -161,7 +162,7 @@ fn setup_input_listener(app: &tauri::AppHandle) {
let snippet_manager = app.state::<SnippetManager>().inner().clone();
let snippet_manager_arc = Arc::new(snippet_manager);
let input_manager = RdevInputManager::new();
let input_manager = EvdevInputManager::new().unwrap();
let input_manager_arc = Arc::new(input_manager);
let engine = ExpansionEngine::new(snippet_manager_arc, input_manager_arc);