raycast / raycast/utils

usePlist Hook

Open
#12 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
84
Forks
18
Avg merge
3m
Merged PRs (30d)
1

Description

Describe the feature and the current behavior/state.

I counted at least 9 extensions which need to read plist files (tower, safari, tableplus, etc) to fetch data. They all implement this on their own way, with third-party libraries and custom handling of permission.
It would be great to have a usePlist hook, working the same way as the useSQL hook: returns AsyncState, handles missing permission, etc

Will this change the current API? How?

No, this is a new hook

Who will benefit from this feature?

Extensions which fetch data from plist files

Any Other info.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing useSQL hook and reviewing how it models AsyncState and missing-permission handling. Then inspect the current plist-reading approaches used by extensions; the work is done when a new usePlist hook provides comparable behavior without changing the existing API.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.