Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bear extension #189

Merged
merged 8 commits into from
Oct 26, 2021
Merged

Bear extension #189

merged 8 commits into from
Oct 26, 2021

Conversation

hmarr
Copy link
Contributor

@hmarr hmarr commented Oct 23, 2021

Description

A small extension for opening Bear notes. You can also preview the note directly in Raycast by executing the secondary action. There are more commands that could be added — creating a new note, for instance. But this is a start!

Bear uses a sqlite database, and I also ran into #135 when trying to use the native sqlite libraries. I ended up using the WASM-compiled SQL.js, which is the same approach taken by #172.

Type of change

  • New extension

Screencast

raycast-bear-demo.mov

Checklist

Copy link
Collaborator

@pernielsentikaer pernielsentikaer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome extension @hmarr 💣 💪 Happy to see

I found some small corrections to the naming convention

I will give it a spin a bit later to test it further 🚀

extensions/bear/src/index.tsx Outdated Show resolved Hide resolved
extensions/bear/src/index.tsx Outdated Show resolved Hide resolved
extensions/bear/src/index.tsx Outdated Show resolved Hide resolved
extensions/bear/package.json Outdated Show resolved Hide resolved
@pernielsentikaer pernielsentikaer self-assigned this Oct 23, 2021
Co-authored-by: Per Nielsen Tikær <pnt@klean.dk>
@hmarr
Copy link
Contributor Author

hmarr commented Oct 23, 2021

Thanks for the suggestions! I've got a couple more minor changes coming and I'll get a video added too.

@hmarr
Copy link
Contributor Author

hmarr commented Oct 23, 2021

I think this might be good to go now. It now searches by note text and title, prioritising title matches in the ranking. I also added a little demo video in the pull request description.

@pernielsentikaer
Copy link
Collaborator

Thanks for your contribution @hmarr 💪 It's a pleasure to test your extension 🚀

I just installed Bear and added two new notes, however, the modified time says "Modified in about 5 hours"

ox3PhAelbh3eaKrV

@hmarr
Copy link
Contributor Author

hmarr commented Oct 23, 2021

Woah, where can I get one of those time machines?!

(Good spot, I think I've fixed it in the last commit. It works for me now and I'm currently UTC+5, but would you mind checking it works for your timezone?)

Copy link
Collaborator

@pernielsentikaer pernielsentikaer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great @hmarr ✌️

Confirmed working with the new timezone

Just a last correction and I think we're good to go 🚀

extensions/bear/src/index.tsx Outdated Show resolved Hide resolved
Co-authored-by: Per Nielsen Tikær <pnt@klean.dk>
@hmarr
Copy link
Contributor Author

hmarr commented Oct 24, 2021

Thanks @pernielsentikaer! I applied your suggestion 👍

Copy link
Collaborator

@pernielsentikaer pernielsentikaer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work @hmarr

Thanks a lot for your contribution, it's much appreciated 💪 🚀

This is now ready to be shipped 🚢

@hmarr
Copy link
Contributor Author

hmarr commented Oct 24, 2021

Thanks for your help getting it over the line @pernielsentikaer 🤜🤛

@pernielsentikaer pernielsentikaer added the new extension Label for PRs with new extensions label Oct 24, 2021
@mattisssa mattisssa merged commit 00896e1 into raycast:main Oct 26, 2021
FezVrasta pushed a commit to FezVrasta/extensions that referenced this pull request Nov 24, 2021
* Bear extension

* Apply suggestions from code review

Co-authored-by: Per Nielsen Tikær <pnt@klean.dk>

* Search Bear notes text as well as title

* Bear ext: close database on unmount

* Add README for Bear extensions

* Bear: show modification times in local tz

* Update extensions/bear/src/index.tsx

Co-authored-by: Per Nielsen Tikær <pnt@klean.dk>

* Bear: fix empty state flicker

Co-authored-by: Per Nielsen Tikær <pnt@klean.dk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new extension Label for PRs with new extensions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants