feat(snippets): add import snippet feature

Currently, our application does not support snippets without keywords. We will have to figure out why it's possible to have a text replacement item without the text to replace.
This commit is contained in:
ByteAtATime 2025-06-25 08:38:14 -07:00
parent 15dbf0692a
commit 56813684e1
No known key found for this signature in database
16 changed files with 433 additions and 114 deletions

View file

@ -175,6 +175,8 @@ fn setup_input_listener(app: &tauri::AppHandle) {
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.plugin(tauri_plugin_fs::init())
.plugin(tauri_plugin_dialog::init())
.plugin(tauri_plugin_http::init())
.manage(WsState::default())
.plugin(tauri_plugin_single_instance::init(|app, args, _cwd| {
@ -239,7 +241,8 @@ pub fn run() {
snippets::create_snippet,
snippets::list_snippets,
snippets::update_snippet,
snippets::delete_snippet
snippets::delete_snippet,
snippets::import_snippets
])
.setup(|app| {
let app_handle = app.handle().clone();