Skip to content

Bear extension - #189

Merged
mattisssa merged 8 commits into
raycast:mainfrom
hmarr:bear-extension
Oct 26, 2021
Merged

mattisssa merged 8 commits into
raycast:mainfrom
hmarr:bear-extension

Conversation

@hmarr

@hmarr hmarr commented Oct 23, 2021 •

Copy link
Copy Markdown
Contributor

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

@pernielsentikaer pernielsentikaer left a comment

Copy link
Copy Markdown
Contributor

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 🚀

Comment thread extensions/bear/src/index.tsx Resolved
Comment thread extensions/bear/src/index.tsx Resolved
Comment thread extensions/bear/src/index.tsx Resolved
Comment thread extensions/bear/package.json Resolved
@pernielsentikaer pernielsentikaer self-assigned this Oct 23, 2021
Co-authored-by: Per Nielsen Tikær <[email protected]>
@hmarr

hmarr commented Oct 23, 2021

Copy link
Copy Markdown
Contributor Author

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

@hmarr

hmarr commented Oct 23, 2021

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
Contributor

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

hmarr commented Oct 23, 2021 •

Copy link
Copy Markdown
Contributor Author

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?)

@pernielsentikaer pernielsentikaer left a comment

Copy link
Copy Markdown
Contributor

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 🚀

Comment thread extensions/bear/src/index.tsx Resolved
Co-authored-by: Per Nielsen Tikær <[email protected]>
@hmarr

hmarr commented Oct 24, 2021

Copy link
Copy Markdown
Contributor Author

Thanks @pernielsentikaer! I applied your suggestion 👍

@pernielsentikaer pernielsentikaer left a comment •

Copy link
Copy Markdown
Contributor

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

hmarr commented Oct 24, 2021

Copy link
Copy Markdown
Contributor Author

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 <[email protected]>

* 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 <[email protected]>

* Bear: fix empty state flicker

Co-authored-by: Per Nielsen Tikær <[email protected]>
colebemis added a commit to colebemis/raycast-extensions that referenced this pull request Nov 6, 2024