Skip to content

Adds currently playing and copy URL commands. - #40

Merged
thomaspaulmann merged 11 commits into
raycast:mainfrom
acristoffers:main
Oct 17, 2021
Merged

thomaspaulmann merged 11 commits into
raycast:mainfrom
acristoffers:main

Conversation

@acristoffers

Copy link
Copy Markdown
Contributor

Adds two more commands to make this extension on pair with the script version: "Current Song" and "Copy Current Song's URL".

@acristoffers

Copy link
Copy Markdown
Contributor Author

On the second commit I copied the changes made to the VSCode Extension regarding linting into the Spotify Extension, and then made a small change to make Prettier work, so you can now run eslint --fix src/* and have formatting enforced. It seems to me that this is what was intended, but wasn't working for me.

@PitNikola PitNikola added the extension fix / improvement Label for PRs with extension's fix improvements label Oct 15, 2021
Comment on lines +18 to +28

/**
* Runs the AppleScript
*
* @param appleScript - The AppleScript to run
* @throws An error when the AppleScript fails to run
* @returns A promise that is resolved when the AppleScript finished running
*/
export async function runAppleScriptAndReturn(appleScript: string) {
return await runAppleScript(appleScript);
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do you think we need this? Seems like the function doesn't add anything on top of the runAppleScript one. How about keeping it simple and remove runAppleScriptAndReturn and use runAppleScript directly?

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.

I just copied the style I saw without thinking about it. It makes sense to just use the function directly.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Want to make this change as well and use the function directly before I merge the PR? Please re-request a review afterwards.

@thomaspaulmann thomaspaulmann left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks a lot for adding these commands. I left a few inline comments to make the toast fit our UI guidelines. Also, I reverted some bits of your commit for formatting. Since the extension doesn't use any React, we can get of these deps.

This reminds me that we should add a lint script. Then you can run npm run lint to do all the magic.

acristoffers and others added 4 commits October 16, 2021 10:05
Co-authored-by: Thomas Paul Mann <[email protected]>
Co-authored-by: Thomas Paul Mann <[email protected]>
Co-authored-by: Thomas Paul Mann <[email protected]>
Co-authored-by: Thomas Paul Mann <[email protected]>
Comment on lines +18 to +28

/**
* Runs the AppleScript
*
* @param appleScript - The AppleScript to run
* @throws An error when the AppleScript fails to run
* @returns A promise that is resolved when the AppleScript finished running
*/
export async function runAppleScriptAndReturn(appleScript: string) {
return await runAppleScript(appleScript);
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Want to make this change as well and use the function directly before I merge the PR? Please re-request a review afterwards.

@acristoffers

Copy link
Copy Markdown
Contributor Author

Yes, I'm going to do it today.

"name": "copyUrl",
"title": "Copy Current Song's URL",
"subtitle": "Spotify",
"description": "Currently playing song's URL in Spotify.",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
"description": "Currently playing song's URL in Spotify.",
"description": "Currently playing track's URL in Spotify.",

@thomaspaulmann thomaspaulmann left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! I changed song to track to fit the other commands.

@thomaspaulmann
thomaspaulmann merged commit d575da6 into raycast:main Oct 17, 2021
FezVrasta pushed a commit to FezVrasta/extensions that referenced this pull request Nov 24, 2021
praveenjuge added a commit to praveenjuge/raycast-extensions that referenced this pull request Mar 3, 2026
- chore: update changelog for version 0.2.0 and modify asset images
- fix: rename package from \'teak-raycast\' to \'teak\'
- fix: rename package from \'teak-raycast\' to \'teak\'
- feat: add Raycast action to environment configuration
- style: apply trailing comma formatting to raycast api and tests
- style: apply trailing comma formatting to raycast api and tests
- feat: add API server, update Raycast integration, and enhance card operations
- feat(api): initialize API with Hono framework and add basic structure
- chore(mobile): bump version to 1.1.0 and add release notes
- feat: add detailed release notes for new features and improvements in the app
- feat: update app description and notes to include incoming share functionality
- Implement mobile startup plan
- feat: implement theme preference storage and update related components
- Remove swipe delete from mobile list
- refactor: wrap auth routes in Protected component for better access control
- Ensure incoming share signatures
- refactor: update .easignore to align with repository ignores and improve clarity
- feat: sync card modal state with URL for deep-linking support
- refactor: update createIncomingShareSignature to simplify signature format and remove item ID from text items
- feat: implement incoming share functionality with native intent handling
- refactor: update text styling for quote content in CardPreviewSheet component
- refactor: enhance accessibility and touch target for stop recording button
- refactor: update layout and styling in authentication screens for improved UI consistency
- refactor: remove feedback status functions and related usages across components
- refactor: update text styling and list modifiers in CardPreviewSheet component
- test: add regression tests for CardsGrid and Settings components
- feat: add haptic feedback functions and implement in various components
- refactor: streamline UI components by enhancing styles and removing unnecessary sections
- refactor: simplify CardPreviewSheet by removing Section components and updating list styles
- feat: enhance CardsGrid component with improved loading and error handling
- chore: update @types/react to version 19.2.10 in package.json
- Add new skills for Apple Zoom Transitions, Expo UI SwiftUI, and Upgrading Expo
- Refactor window size settings and remove unused persistence hook
- Format openCustomerPortal callback
- Simplify pre-commit hook setup
- Update README structure
- Remove Ultracite installation and migration scripts; update AGENTS.md for streamlined commands and code standards; add skills-lock.json for Ultracite dependency tracking.
- Add emoji cards to docs hero
- Add Raycast install image
- Merge pull request raycast#40 from praveenjuge/chrome-v2
- Add persistent hover save button
- Add Raycast promo and grids
- WIP: Chrome extension v2 changes
- Add emoji support to pricing plans and update layout
- Update FAQ section layout and simplify card title
- Update docs home card layout
- Add emoji support to CTASection and update layout with new bookmark emoji
- Add new SVG and WEBP assets for app badges and emojis
- Audit multi-app dependency updates
raycastbot added a commit that referenced this pull request Mar 6, 2026
* Update teak-raycast extension

- chore: update changelog for version 0.2.0 and modify asset images
- fix: rename package from \'teak-raycast\' to \'teak\'
- fix: rename package from \'teak-raycast\' to \'teak\'
- feat: add Raycast action to environment configuration
- style: apply trailing comma formatting to raycast api and tests
- style: apply trailing comma formatting to raycast api and tests
- feat: add API server, update Raycast integration, and enhance card operations
- feat(api): initialize API with Hono framework and add basic structure
- chore(mobile): bump version to 1.1.0 and add release notes
- feat: add detailed release notes for new features and improvements in the app
- feat: update app description and notes to include incoming share functionality
- Implement mobile startup plan
- feat: implement theme preference storage and update related components
- Remove swipe delete from mobile list
- refactor: wrap auth routes in Protected component for better access control
- Ensure incoming share signatures
- refactor: update .easignore to align with repository ignores and improve clarity
- feat: sync card modal state with URL for deep-linking support
- refactor: update createIncomingShareSignature to simplify signature format and remove item ID from text items
- feat: implement incoming share functionality with native intent handling
- refactor: update text styling for quote content in CardPreviewSheet component
- refactor: enhance accessibility and touch target for stop recording button
- refactor: update layout and styling in authentication screens for improved UI consistency
- refactor: remove feedback status functions and related usages across components
- refactor: update text styling and list modifiers in CardPreviewSheet component
- test: add regression tests for CardsGrid and Settings components
- feat: add haptic feedback functions and implement in various components
- refactor: streamline UI components by enhancing styles and removing unnecessary sections
- refactor: simplify CardPreviewSheet by removing Section components and updating list styles
- feat: enhance CardsGrid component with improved loading and error handling
- chore: update @types/react to version 19.2.10 in package.json
- Add new skills for Apple Zoom Transitions, Expo UI SwiftUI, and Upgrading Expo
- Refactor window size settings and remove unused persistence hook
- Format openCustomerPortal callback
- Simplify pre-commit hook setup
- Update README structure
- Remove Ultracite installation and migration scripts; update AGENTS.md for streamlined commands and code standards; add skills-lock.json for Ultracite dependency tracking.
- Add emoji cards to docs hero
- Add Raycast install image
- Merge pull request #40 from praveenjuge/chrome-v2
- Add persistent hover save button
- Add Raycast promo and grids
- WIP: Chrome extension v2 changes
- Add emoji support to pricing plans and update layout
- Update FAQ section layout and simplify card title
- Update docs home card layout
- Add emoji support to CTASection and update layout with new bookmark emoji
- Add new SVG and WEBP assets for app badges and emojis
- Audit multi-app dependency updates

* fix: update AI summary and tags text in card detail model tests

* Update

* Update CHANGELOG.md

---------

Co-authored-by: Dhruv Suthar <[email protected]>
Co-authored-by: raycastbot <[email protected]>
Lighthart99 added a commit to Lighthart99/raycast-extensions that referenced this pull request Apr 5, 2026