Commit graph

53 commits

Author SHA1 Message Date
ByteAtATime
9dab57e529
put window on layer 2025-07-01 20:27:33 -07:00
ByteAtATime
dc38b38611
feat(backend): only hide window on unfocus in production 2025-06-30 09:30:50 -07:00
ByteAtATime
7156827585
refactor(backend): abstract database logic into generic Store
This commit introduces a generic `Store` struct to handle all common database operations, such as connection management and schema initialization. All existing manager structs (`QuicklinkManager`, `SnippetManager`, `FrecencyManager`, `ClipboardHistoryManager`, `AiUsageManager`) have been refactored to use this new abstraction.
2025-06-29 15:48:03 -07:00
ByteAtATime
8852c73f5a
feat(actions): improve keyboard shortcut display
Previously, the logic for displaying keyboard shortcuts was all over the place. This commit creates a single KeyboardShortcut component that is responsible for displaying it. It slightly changes some styles in the Kbd component, and also adds the Tauri `os` plugin to determine whether to display Mac symbols or Windows names. It also maps cmd to Ctrl on Windows.
2025-06-29 11:32:18 -07:00
ByteAtATime
5f1ad1c84a
feat(calculator): initialize basic SoulverCore library
This commit adds a native calculation engine by integrating the pre-compiled SoulverCore Swift library. A Swift package (`SoulverWrapper`) was created to act as a C-compatible FFI bridge, allowing the Rust backend to call into the library (because the library does not include de-mangled names). The build process was updated to compile this Swift wrapper and correctly bundle the necessary shared libraries and resources for both development and production environments. A new Tauri command, `calculate_soulver`, exposes this functionality to the Svelte frontend.

In the future, we will be using this functionality to improve the built-in calculator.
2025-06-28 20:08:43 -07:00
ByteAtATime
398ed86c40
feat(command-palette): add action bar to command palette
This commit introduces functionality to manage hidden items in the frecency store, including fetching hidden item IDs, hiding items, and deleting frecency entries. Additionally, the apps store is updated to filter out hidden applications based on the new frecency store logic.
2025-06-28 14:44:05 -07:00
ByteAtATime
640ef53118
feat(ai): implement environment.canAccess(AI)
This commit replaces the stub in `environment.canAccess(AI)`. The access status is now determined by the backend when a command is launched and is passed to the sidecar process. This allows the `canAccess` function within the plugin's environment to synchronously return the correct access status. In the future, we should probably avoid hardcoding it in the parameter somehow.
2025-06-27 18:52:58 -07:00
ByteAtATime
5dafd76912
fix(ai): refactor AI model settings and fallback logic
This commit moves default model mappings into the backend, making it the single source of truth. The `get_ai_settings` command now merges user-defined settings with these defaults, so the UI always receives a complete and correct configuration. The model selection logic in `ai_ask_stream` was also simplified to use the merged settings, which fixes a bug where the system would use a global fallback instead of the correct model-specific default. Additionally, the `set_ai_settings` command now only persists user overrides, keeping the configuration file clean.
2025-06-27 18:27:53 -07:00
ByteAtATime
87751b30ca
feat(ai): implement AI API
This commit introduces a new AI module that includes schemas for AI requests and responses, as well as event handling for streaming AI responses. It adds functions to manage AI API keys, log usage, and handle streaming data from the AI service.
2025-06-27 15:58:05 -07:00
ByteAtATime
2437ad7d61
feat(snippets): implement dynamic placeholders and modifiers
This commit implements a system for dynamic snippet placeholders, including support for date/time manipulation, clipboard history, and nested snippets. It also adds a flexible modifier system (`uppercase`, `trim`, `percent-encode`, `json-stringify`) that can be chained and applied to any placeholder.
2025-06-26 15:34:33 -07:00
ByteAtATime
e2316cf949
feat(file-search): implement file and folder search with indexing
This commit adds a basic file search feature, allowing users to find files and folders within their home directory. The backend consists of a Rust module that builds and maintains a SQLite index of the file system. It performs an initial scan and then uses the `notify` crate to watch for real-time changes.
On the frontend, a new Svelte view provides a dedicated UI for searching. It displays results, file details, and an action bar with options to open the file/folder, show it in the native file manager, copy its path, or move it to the trash.
2025-06-26 14:27:30 -07:00
ByteAtATime
58e48213bd
feat: Implement hide on escape and focus loss
This commit adds two ways that hides the main window. First, when the user presses escape in the command palette, the window hides; second, when the focus is lost (i.e. the user's cursor goes outside the window), it also hides itself.
2025-06-25 14:31:21 -07:00
ByteAtATime
9d73ac0a23
feat(app): hide window instead of closing
Instead of closing the window, this commit changes the event listener so that it simply hides the window instead. This allows for near-instant re-opening of the window, as well as state preservation.
2025-06-25 14:18:06 -07:00
ByteAtATime
e32cc6223d
feat(snippets): implement Search Snippets command
This commit implements the "Search Snippets" feature, providing a dedicated user interface accessible from the main command palette. The new view allows users to search their snippets by name, keyword, or content and see details like usage statistics. This change adds the necessary backend logic for searching and tracking usage, and a new frontend component.
2025-06-25 11:32:02 -07:00
ByteAtATime
6365d18cdb
style(backend): formatting 2025-06-25 08:38:24 -07:00
ByteAtATime
56813684e1
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.
2025-06-25 08:38:14 -07:00
ByteAtATime
61c804235c
chore(snippets): remove unused code 2025-06-24 20:28:29 -07:00
ByteAtATime
de0b26e8ae
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.
2025-06-24 20:00:15 -07:00
ByteAtATime
7088cb17fd
feat(snippets): Implement core expansion engine
This commit implements implements the `inject_text` method using the `enigo` crate for input simulation. A new `ExpansionEngine` is created to listen for keyboard input, maintain a buffer of recent characters, and check against the database for a matching keyword to trigger an expansion.
2025-06-24 18:59:10 -07:00
ByteAtATime
d72b4dd450
feat(snippets): implement backend crud operations
This commit creates the basic CRUD functions (`create`, `list`, `update`, `delete`) as Tauri commands.
2025-06-24 18:50:13 -07:00
ByteAtATime
1a2fa36a79
feat(snippets): initialize snippet db
This commit creates the initial backend infrastructure for the snippets feature. It sets up the core data model, a dedicated `SnippetManager` for database interactions using `rusqlite`, and integrates it into the Tauri application state.
2025-06-24 18:46:47 -07:00
ByteAtATime
21cd217a26
feat(snippets): implement keyboard event handling
This commit sets up the codebase for the Snippets feature. Specifically, it implements an InputManager trait, which listens for, well, inputs. In the future, we will be using this to keep track of the user's keypresses, triggering the text expansion when the trigger word is entered.
2025-06-24 18:44:22 -07:00
ByteAtATime
bd5c660b71
refactor(clipboard-history): split clipboard_history.rs into separate module
This commit refactors the monolithic `src-tauri/src/clipboard_history.rs` file into a dedicated Rust module with a clear separation of concerns. The original 350+ line file has been broken down into smaller, single-responsibility files for types, encryption, business logic (manager), and the background monitor.
2025-06-24 10:02:36 -07:00
ByteAtATime
06f823873c
feat(command-palette): implement frecency ranking for command palette
This commit adds a "frecency" (frequency + recency) based ranking algorithm to the command palette. By tracking the usage of commands, applications, and quicklinks, we can provide more useful results when paired with the search score. It prioritizes recently used items, which are likely more relevant for the user. A new `FrecencyManager` was added to the Rust backend to handle usage tracking in a dedicated SQLite database. The `CommandPalette.svelte` component now fetches this data and computes a dynamic score for each item to determine its rank in the list.
2025-06-24 09:25:16 -07:00
ByteAtATime
9c1ee6efe4
feat: implement system utilities API
This commit introduces new system message schemas and corresponding commands for managing applications, including fetching applications, getting the default application, retrieving the frontmost application, showing an application in Finder, and trashing files.
2025-06-23 18:12:52 -07:00
ByteAtATime
81739beff7
style(backend): formatting 2025-06-22 22:19:38 -07:00
ByteAtATime
73c1e43f76
perf: improve performance of clipboard history
This commit completely revamps the clipboard history feature to resolve major performance bottlenecks. The backend now uses a more intelligent data model, storing previews and content size in the database to allow for lazy-loading of large clipboard items. The frontend is updated to use paginated, infinite-scrolling lists, and it fetches full item content on-demand, which makes the initial load instantaneous and keeps the UI responsive even with a very large history.
2025-06-22 22:14:13 -07:00
ByteAtATime
79b88ad5f6
refactor: remove query parameter from hud url 2025-06-22 19:17:28 -07:00
ByteAtATime
223f7960aa
fix(backend): show window before ignoring cursor events
Previously, when built, ignoring cursor events before the window was shown resulted in a panic!() from tao. Now, by moving show() to before the call, the panic is resolved.
2025-06-22 19:17:14 -07:00
ByteAtATime
ffd8f3c4bf
fix(client): use http extension for fetching on backend
Originally, using the built-in `fetch()` resulted in CORS errors because it was fetching from the "frontend", which doesn't work after building. This commit migrates to Tauri's HTTP plugin, which is made for exactly this scenario.
2025-06-22 10:45:06 -07:00
ByteAtATime
28d1605bba
feat: add hud API
This commit adds the HUD API, allowing extensions to display temporary, non-interactive messages on the screen. The implementation adds a `show_hud` Tauri command that manages a dedicated, borderless Svelte window. This window is dynamically resized to fit its content and is automatically hidden after two seconds.
2025-06-22 09:04:10 -07:00
ByteAtATime
1ae8a571cb
feat: implement quicklinks 2025-06-21 20:01:19 -07:00
ByteAtATime
c8aced53c4
feat: add basic UI for viewing clipboard history 2025-06-20 11:34:41 -07:00
ByteAtATime
58d64005da
feat: implement clipboard history management
This commit initializes the backend of the clipboard management. It stores the clipboard data in an encrypted format in an SQLite database.
2025-06-20 10:01:47 -07:00
ByteAtATime
00eb6d6e18
style: formatting 2025-06-19 20:49:39 -07:00
ByteAtATime
5b0dfd7b36
feat: implement basic oauth api 2025-06-19 19:26:07 -07:00
ByteAtATime
887838bec6
feat: add deep link support
This commit introduces the deep link functionality, allowing the application to handle deep links from extensions.
2025-06-19 14:11:52 -07:00
ByteAtATime
3c3566136a
feat: implement Clipboard API 2025-06-19 11:23:05 -07:00
ByteAtATime
a598ccf50b
refactor: split lib.rs file 2025-06-19 11:09:04 -07:00
ByteAtATime
f7939e5c9b
feat: implement browser extension apis
This commit implements the full api for the Raycast browser extension. It introduces a WebSocket server in the Tauri backend to handle JSON-RPC communication with the companion browser extension. The sidecar now exposes the BrowserExtension module with getTabs and getContent methods, which proxy requests through the frontend to the new backend commands.
2025-06-18 21:50:46 -07:00
ByteAtATime
6910f767ae
feat: confine application to single instance
This commit accomplishes two things. First of all, Raycast should only  ever have one window open (it wouldn't make sense to have multiple). Second, it also allows WMs (specifically Hyprland) to show the window, as it does not support global shortcuts. Instead, by just calling the application again (generally from a `bind =` statement), users can show the window.
2025-06-18 17:46:30 -07:00
ByteAtATime
fed96e0cf2
feat: add alt+space global shortcut to show window 2025-06-18 17:40:21 -07:00
ByteAtATime
b9259147ba
feat: implement extension installation functionality
This commit adds the ability to install extensions from the UI. It introduces a new `install_extension` command that downloads and extracts the extension files into the local plugins directory. The UI is updated to reflect the installation process, including a loading state for the install button.
2025-06-18 12:51:46 -07:00
ByteAtATime
0c94e973a0
feat: implement getSelectedFinderItems functionality
Added schemas and message handling for the new get-selected-finder-items command. Implemented the logic to retrieve selected items from the Finder on macOS, Windows, and Linux, enhancing the application's ability to interact with the file system.
2025-06-17 14:28:51 -07:00
ByteAtATime
3116a0c271
refactor; split lib.rs into multiple files 2025-06-17 12:07:09 -07:00
ByteAtATime
a5a39a5b7d
feat: implement getSelectedText function
Previously, this function was a shell that always rejected. This commit implements the schemas for a new get-selected-text command and updates the SidecarMessageWithPluginsSchema to include the new message type.
2025-06-17 12:01:50 -07:00
ByteAtATime
c91a800e80
feat: improve app caching and discovery process
Add caching for installed applications, allowing for faster retrieval and reduced scanning overhead. Implemented error handling for cache operations and improved the directory scanning logic to support parallel processing. Added background refresh functionality to keep the cache updated.
2025-06-17 11:38:44 -07:00
ByteAtATime
f02e4cafc7
feat: parallize initial app discovery 2025-06-17 11:10:56 -07:00
ByteAtATime
cd0147fb16
feat: list installed apps to PluginList
Added functionality to the PluginList component to display installed applications alongside plugins. Implemented search filtering for installed apps and integrated app launching capabilities. Updated the page to fetch installed apps from the backend, improving user interaction and experience.
2025-06-16 20:42:43 -07:00
ByteAtATime
91c1b4e811 feat: basic sidecar functionality for rendering 2025-06-11 09:35:29 -07:00