Skip to content

zotero extension for searching zotero database directly from raycast - #55

Merged
fe9lix merged 4 commits into
raycast:mainfrom
sadanand-singh:feature/zotero_search
Oct 18, 2021
Merged

fe9lix merged 4 commits into
raycast:mainfrom
sadanand-singh:feature/zotero_search

Conversation

@sadanand-singh

@sadanand-singh sadanand-singh commented Oct 16, 2021 •

Copy link
Copy Markdown
Contributor

Description

A simple extension to search your zotero database directly from Raycast

Type of change

  • New extension

Screencast

Checklist

@PitNikola PitNikola added the new extension Label for PRs with new extensions label Oct 16, 2021
@fe9lix
fe9lix self-requested a review October 18, 2021 19:38

@fe9lix fe9lix 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.

Hey @sadanand-singh , thanks for your contribution!

Is the extension still WIP? If so, you might want to set this PR to a "Draft" and then request a review once you're ready.

Unfortunately I can't fully test the extension since I run into a JSON parsing error when loading the list:

runQuery error SyntaxError: Unexpected token A in JSON at position 0
    at JSON.parse (<anonymous>)

Can you double check? Chances are other users might run into the same issue (not sure if it has something to do with the fact that I've created a new account and test token...)

I've also left some inline comments.

Comment thread extensions/zotero/package.json Resolved
"lib": ["es2020"],
"module": "commonjs",
"target": "es2020",
// "strict": true,

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.

Is there a specific reason you want to disable this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

My build keeps failing with as true. Probably I need to take a closer look at all code with this set to true.

@sadanand-singh

Copy link
Copy Markdown
Contributor Author

Hey @sadanand-singh , thanks for your contribution!

Is the extension still WIP? If so, you might want to set this PR to a "Draft" and then request a review once you're ready.

Unfortunately I can't fully test the extension since I run into a JSON parsing error when loading the list:

runQuery error SyntaxError: Unexpected token A in JSON at position 0
    at JSON.parse (<anonymous>)

Can you double check? Chances are other users might run into the same issue (not sure if it has something to do with the fact that I've created a new account and test token...)

I've also left some inline comments.

Probably its due to your test account. I have been using this almost daily for last few days without any issues.

@fe9lix

fe9lix commented Oct 18, 2021

Copy link
Copy Markdown
Contributor

Probably its due to your test account. I have been using this almost daily for last few days without any issues.

I guess the error should still be handled in some way since end users can't make any sense of a JSON parsing error.

Could you also provide me with a working demo account so that I can test the extension?

@sadanand-singh

Copy link
Copy Markdown
Contributor Author

Probably its due to your test account. I have been using this almost daily for last few days without any issues.

I guess the error should still be handled in some way since end users can't make any sense of a JSON parsing error.

Could you also provide me with a working demo account so that I can test the extension?

Here is a test account:

key: MnnQ8wKPuu2noKmnJk48PCoH
user id: 8623690

@fe9lix

fe9lix commented Oct 18, 2021

Copy link
Copy Markdown
Contributor

Here is a test account:

key: MnnQ8wKPuu2noKmnJk48PCoH user id: 8623690

Thanks! Please make sure to disable that test account again after the initial review since the credentials are public here.

@fe9lix fe9lix 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.

Thanks for your updates. I'm going to merge this first version. It would still be cool if you improved the error handling a bit and present a human-readable message in the toast (not sure if the error might happen when the database is empty and doesn't return any results...)

@fe9lix
fe9lix merged commit 244a957 into raycast:main Oct 18, 2021
@sadanand-singh
sadanand-singh deleted the feature/zotero_search branch October 18, 2021 21:04
@sadanand-singh

Copy link
Copy Markdown
Contributor Author

Thanks for your updates. I'm going to merge this first version. It would still be cool if you improved the error handling a bit and present a human-readable message in the toast (not sure if the error might happen when the database is empty and doesn't return any results...)

I tried the empty database case as well, and it did not throw any errors. I will dig more later. Thanks for your review and comments.

@sadanand-singh

Copy link
Copy Markdown
Contributor Author

Here is a test account:
key: MnnQ8wKPuu2noKmnJk48PCoH user id: 8623690

Thanks! Please make sure to disable that test account again after the initial review since the credentials are public here.

I have removed the test account now.

@gumadeiras

Copy link
Copy Markdown
Contributor

would it make sense to search a local zotero database (json or bibtex) as an alternative to the API? that way you don't need internet access and searching should be much faster

FezVrasta pushed a commit to FezVrasta/extensions that referenced this pull request Nov 24, 2021
…aycast#55)

* add zotero extension

* Update tsconfig.json

* Update package.json

* Update tsconfig.json
solomkinmv added a commit to solomkinmv/raycast-extensions that referenced this pull request Apr 26, 2024
- Update url to hotkys.com
- Add Typora keymap (raycast#57)
- Add helix editor (raycast#55)
- Add Slack markdown formatting shortcut
- Add Outlook archive shortcut
- Reduce rate for page with implicit keymap
- Update sitemap generation
- Fix build
- Update footer
- Add source property
- Generate sitemap and fix warnings
- Add implicit keymap
- Align header
- Improve styles
- Change highlight color
- Add keymap support
- Migrate to Tailwind and chadcn
- Update 1password shortcut
- Remove sitemap generation
- Fix finder slug
- Add shortcuts for 1Password
- Generate sitemap, robots and manifest
- Make footer sticky to the bottom
- Fix Raycast image warning
- Add alt for Raycast screenshots
- Remove redundant global styles
- Remove unused components
- Remove unused component
- Use anchor for shortcut sections
- Remove combined-apps from repo
- Add Finder shortcuts
- Refactor pages
- Add Google Chrome shortcuts
- Update README
- Update test to check raw shortcuts data source
- Generate page titles
- Fix repo link
- Add Google Analytics
- Fix imports
- Update build site PR action
- Remove old site
- Update README and build scripts to point to the new site
- Remove apps from sitemap
- Generate sitemap
- Add scripts
- Add Not Found page
- Migrate to link in header
- Use config provider
- Move ui and lib dirs
- Add Apple Notes shortcuts
- Add missing styles
- Use footer based on AntDesign
- Use About page based on AntDesign
- Add raycast images
- Handle missing window dimensions
- Add Raycast page on client
- Display all application shortcuts on client
- Update inline code component
- Display shortcuts
- Add inline code style component
- Update styles
- Draft about page
- Set up tests
- Configure static export
- Make basic page setup
- Draft base nextjs project
- Add Apple Notes shortcuts
claire-at-pieces added a commit to claire-at-pieces/raycast-extensions that referenced this pull request Feb 27, 2025
- Merge branch \'contributions/merge-1740686887476\'
- Pull contributions
- Merge branch \'contributions/merge-1740686855056\'
- Pull contributions
- Merge pull request raycast#56 from pieces-app/fix-frontmost-selection
- fix typo
- fix typo
- update error message
- Merge pull request raycast#55 from pieces-app/fix-link-contrast
- remove opinioinated link color
raycastbot pushed a commit that referenced this pull request Mar 5, 2025
* Update pieces-raycast extension

- Merge branch \'contributions/merge-1740686887476\'
- Pull contributions
- Merge branch \'contributions/merge-1740686855056\'
- Pull contributions
- Merge pull request #56 from pieces-app/fix-frontmost-selection
- fix typo
- fix typo
- update error message
- Merge pull request #55 from pieces-app/fix-link-contrast
- remove opinioinated link color

* Update CHANGELOG.md
bishoy-at-pieces added a commit to bishoy-at-pieces/raycast-extensions that referenced this pull request Jul 7, 2025
- Merge branch \'contributions/merge-1751916093427\'
- Pull contributions
- Merge pull request raycast#63 from pieces-app/prettier-linting
- fix title to follow raycast guidelines
- run prettier linting
- Merge pull request raycast#62 from pieces-app/support-12.0.0
- fix wordings
- fix port scanning
- bump version
- add auth required and compatibility for PiecesOS
- Merge pull request raycast#61 from pieces-app/chore-0.4.0-release
- resolve conflicts
- Pull contributions
- version bump and changelog
- Merge pull request raycast#60 from pieces-app/update-links
- update links
- Merge pull request raycast#59 from pieces-app/add-os-user-params
- add gaurd clause
- update comment
- rm console.log
- rm console.log
- add browserUrl.open
- Merge pull request raycast#57 from pieces-app/chore-release-0.3.0
- Merge branch \'contributions/merge-1740686887476\'
- Pull contributions
- Merge branch \'contributions/merge-1740686855056\'
- Pull contributions
- update changelog
- Merge pull request raycast#56 from pieces-app/fix-frontmost-selection
- fix typo
- fix typo
- update error message
- Merge pull request raycast#55 from pieces-app/fix-link-contrast
- remove opinioinated link color
- Merge pull request raycast#50 from pieces-app/align-branding-guidlines
- update changelog
- add changelog step to dev readme
- Merge pull request raycast#49 from pieces-app/align-branding-guidlines
- revert preference naming
- Merge pull request raycast#48 from pieces-app/align-branding-guidlines
- minor version bump
- apply branding guidelines and resolve renamed commands
- Merge pull request raycast#45 from pieces-app/add-publishing-guide
- Update dev README
- Merge branch \'contributions/merge-1735946476798\'
- Pull contributions
- packagelock
- Merge pull request raycast#44 from pieces-app/reformat
- reformtat
- Merge pull request raycast#43 from pieces-app/port-scanning
- bump version
- add missing apis
- Merge pull request raycast#41 from pieces-app/feat/url-params
- fix port scanning
- chore: add url params
- feat: add toast notifications for raycast api operations
- fix: don\'t prompt for install if the apple script stderr
- Merge branch \'contributions/merge-1722267309615891000\'
- Pull contributions
- Merge pull request raycast#39 from pieces-app/fix/review-feedback
- fix: use raycast open
- chore: adjust feedback for review
- Merge pull request raycast#38 from pieces-app/chore/unit-testing
- chore: remove log
- feat: add tests
- feat: add tests
- chore: adjust extension title
- chore: fix image dimensions
- chore: formatting fix
- chore: add test
- feat: add fetch asset unit test
- chore: add gifs to metadata folder
- feat: add images to the readme
- chore: add section to install pieces os
- Merge pull request raycast#36 from pieces-app/fix/search-command
- fix: check for deleted indicie
- chore: verison bump
- Merge pull request raycast#35 from pieces-app/fix/search-command
- fix: issue in search command
- Merge pull request raycast#34 from pieces-app/fix/undefined-error
- fix: async race condition
- Merge pull request raycast#30 from pieces-app/update-testing-readme
- chore: more release prep
- chore: change author
- chore: extension icon
- Update README_DEVELOPMENT.md
- Merge pull request raycast#29 from pieces-app/chore/readme
- chore: adjust developer readme
- chore: adjust package.json
- chore: switch app to raycast
- chore: update readme
- Merge pull request raycast#2 from pieces-app/feat/init
- chore: add comments
- chore: add annotations
- feat: searching snippets
- feat: add asset fetching code
- feat: hook up preferences
- feat: add preferences
- feat: add health check to react commands feat: update browser history UI
- chore: add health check to no-view commands
- feat: working automatically updating
- feat: auto update
- feat: install check
- chore: refactor clipboard + browser history
- feat: save browser history to pieces
- fix: rendering directories
- fix: importing errors
- feat: add code back in
- Merge pull request raycast#1 from pieces-app/chore/wipe
- chore: wipe code
- feat: first commit
raycastbot added a commit that referenced this pull request Jul 9, 2025