Skip to content

Commit

Permalink
Preferences rework (#167)
Browse files Browse the repository at this point in the history
This is a major rework of the extension preferences.

Added:
- "Preferences" command, which is a List view that contains a few
sections, which then contain different options.
- An `init` module that is crucial to how the extension functions. It
loads data from storage, and then adds this data the respective objects.
Currently it initialises the preferences and the custom APIs. Note: Due
to the async nature of the storage module, the various
commands/components/etc. must ensure that they call init() at least once
on startup.
- various React components.
- config.json in config folder, that stores some JSON data like default
preference values, and supported languages.
- "Dev Panel" command, disabled by default. Only used for setting
storage values.

Removed:
- All preferences from package.json, i.e. the user cannot change them
from Raycast preferences anymore.
- Manage AI Presets command - moved into Preferences
- Manage Custom APIs command - moved into Preferences
- g4f local provider (simply add as a custom API)
- Ollama local provider (simply add as a custom API)

Todo:
- update some wiki pages.
  • Loading branch information
XInTheDark authored Dec 28, 2024
1 parent 0d95264 commit ef3ba88
Show file tree
Hide file tree
Showing 38 changed files with 1,384 additions and 1,323 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ raycast-env.d.ts
.raycast-swift-build
.swiftpm
compiled_raycast_swift

.idea
.vscode
Loading

0 comments on commit ef3ba88

Please sign in to comment.