Skip to content

Add Google Chrome extension to list all open tabs and go to the selected - #35

Merged
thomaspaulmann merged 7 commits into
raycast:mainfrom
CodelyTV:google-chrome
Oct 20, 2021
Merged

thomaspaulmann merged 7 commits into
raycast:mainfrom
CodelyTV:google-chrome

Conversation

@rgomezcasas

@rgomezcasas rgomezcasas commented Oct 14, 2021 •

Copy link
Copy Markdown
Contributor

Description

Manage Google Chrome from Raycast. For now, it can list all the open tabs and go to the selected.

Type of change

  • New extension

Screenshot

image

Checklist

@rgomezcasas rgomezcasas changed the title Google Chrome: Add extension to list all open tabs and go to the sele… Google Chrome: Add extension to list all open tabs and go to the selected Oct 14, 2021
@rgomezcasas rgomezcasas changed the title Google Chrome: Add extension to list all open tabs and go to the selected Add extension to list all Google Chrome open tabs and go to the selected Oct 14, 2021
@rgomezcasas rgomezcasas changed the title Add extension to list all Google Chrome open tabs and go to the selected Add Google Chrome extension to list all open tabs and go to the selected Oct 14, 2021
@aesign

aesign commented Oct 15, 2021

Copy link
Copy Markdown
Contributor

Please add Safari support as well! 🙏🏻

@PitNikola PitNikola added the new extension Label for PRs with new extensions label Oct 15, 2021
@rgomezcasas

Copy link
Copy Markdown
Contributor Author

I've changed the extension name in order to comply with this and added a preference in order to show or not the favicon (since it needs to enable a check in all chrome profiles)

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

This looks very good! I've just left a few minor comments, mainly around some naming in the Package.json. The other things are nice-to-haves that you can maybe address in a follow up PR if you're up for it. Given the amount of reactions on this PR, we should get the extension quickly into the store :-)

Comment thread extensions/google-chrome/package.json Resolved
Comment thread extensions/google-chrome/package.json Resolved
Comment thread extensions/google-chrome/package.json Resolved
Comment thread extensions/google-chrome/package.json Resolved
return (
<List.Item
title={props.tab.title}
subtitle={props.tab.url}

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.

Idea for a small improvement:
Judging your screenshot, it seems that subtitle don't have much space. Therefore we should optimize to keep them short. I would suggest to unify them and maybe remove the protocol and www. So could be something like this:

  • https://github.com/raycast/extensions -> github.com/raycast/extensions
  • https://www.raycast.com -> raycast.com
  • https://developers.raycast.com -> developers.raycast.com

There might be some npm package to help with this and you could add it in a separate PR.

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.

Done in this pr 🙂

@thomaspaulmann

Copy link
Copy Markdown
Member

Please add Safari support as well! 🙏🏻

I think this could be a separate extension. It's unlikely that folks gonna use Chrome and Safari in parallel. This way we make sure they can install what they need. WDYT?

@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 for applying the changes so quickly. This is looking really neat 🎉

@thomaspaulmann
thomaspaulmann merged commit f6a8d20 into raycast:main Oct 20, 2021
@aesign

aesign commented Oct 20, 2021

Copy link
Copy Markdown
Contributor

Please add Safari support as well! 🙏🏻

I think this could be a separate extension. It's unlikely that folks gonna use Chrome and Safari in parallel. This way we make sure they can install what they need. WDYT?

You are right, and a new extension just for Safari would work too! 😂

@rgomezcasas
rgomezcasas deleted the google-chrome branch October 20, 2021 09:51
@rgomezcasas

Copy link
Copy Markdown
Contributor Author

I'll try to do the same for Firefox And Safari @aesign 🙂

@aaSchcolnik

Copy link
Copy Markdown

I'll try to do the same for Firefox And Safari @aesign 🙂

I've tried a similar workflow for Firefox in Alfred, it seems like the creator needed to create a firefox extension for it to work well, i dont know if it'll be the case for raycast. It worked great, (Firefox and safari are my main browsers)
Here's the firefox workflow in case it helps for ideas maybe: https://github.com/deanishe/alfred-firefox

I also support the creation of a safari tab extension it is what i was using everyday in Alfred.
And here's the Safari workflow (it was made by the same dev): https://github.com/deanishe/alfred-safari-assistant

@charliegroll

Copy link
Copy Markdown

@rgomezcasas glad to hear someone's going to give Firefox some love - this is the main blocker for me switching to Raycast, as I use the same workflow as @aaSchcolnik and use Firefox almost exclusively. I hope there's an issue filed I can follow soon 😄

@loris

loris commented Oct 22, 2021

Copy link
Copy Markdown
Contributor

@aesign @rgomezcasas @thomaspaulmann just created a PR for Safari which is a bit similar (it lists cloud tabs using iCloud): #182 Let me know what you think

@rgomezcasas

Copy link
Copy Markdown
Contributor Author

Awesome @loris 👏

FezVrasta pushed a commit to FezVrasta/extensions that referenced this pull request Nov 24, 2021
…ted (raycast#35)

* Google Chrome: Add extension to list all open tabs and go to the selected

* Rename to Google Chrome go to tab

In order to comply with https://raycastcommunity.slack.com/archives/C02HEMAF2SJ/p1634559578370000

* Parametrize show favicon

* Google Chrome search tab: improve naming

Co-authored-by: Thomas Paul Mann <[email protected]>

* Google Chrome search tab: don't show  the url scheme

* Google Chrome search tab: use the google api to get the favicons by default

* Google Chrome search tab: add action to copy the url from the selected tab

Co-authored-by: Thomas Paul Mann <[email protected]>
thehoegh added a commit to thehoegh/raycast-extensions that referenced this pull request Apr 27, 2026
- Merge pull request raycast#36 from kyndig/fix/simplify-local-check-scripts
- chore: simplify local verification scripts
- Merge branch \'contributions/merge-1777276485212\'
- Pull contributions
- Merge pull request raycast#35 from kyndig/fix/raycast-preferences-generated-type
- docs: align contributing guidance with verify scripts
- fix: make local verify follow CI-safe build order
- ci: run Raycast build before TypeScript checks
- fix: use command-scoped Preferences.Yr for getAppPreferences
- fix: use Raycast generated Preferences type
raycastbot added a commit that referenced this pull request Apr 28, 2026
* Update yr-weather-forecast extension

- Merge branch \'contributions/merge-1773236949823\'
- Pull contributions
- Merge pull request #30 from kyndig/feat/search-relevance-and-readme-padding
- Remove dead comma-boundary check in calculateQueryRelevance
- linting
- fix(search): rank location results by query relevance
- docs(readme): document date-forecast graph context padding
- Merge pull request #29 from kyndig/fix/review-cleanup
- fix(search): reset lastToastedDateRef on search clear paths
- refactor(weather-client): delegate plain fetches to metadata variants
- fix(cache): memoize graph cache hook return object
- fix(search): suppress repeated date-intent toast notifications
- fix(search): remove duplicate query intent parsing in effect
- Merge pull request #28 from kyndig/docs/readme-changelog-raycast-compliance
- docs(readme): use US English for Raycast store compliance
- docs(changelog): align with Raycast store and reflect recent work
- Merge pull request #27 from kyndig/fix/sunrise-graph-single-render
- fix: remove stale sunDataReady=true when items is empty
- fix: gate forecast graph generation until sun data is ready
- Merge pull request #26 from kyndig/feat/error-boundaries-and-formatter-tests
- fix: wrap Command render logic with outer error boundary
- linting
- test(formatters): add coverage for units, date, summary, and wrapper helpers
- feat(error-boundary): wrap command and forecast views
- feat(error-boundary): add shared fallback component and dependency
- Merge pull request #25 from kyndig/fix/dark-mode-graph-colors
- fix(cache): bump graph version for palette update
- test(graph): validate palette integrity and selector behavior
- fix(graph): centralize theme palettes and dark-mode selection
- Merge pull request #24 from kyndig/feat/runtime-api-response-validation
- test(schema): verify LocationResultSchema rejects NaN coordinates
- fix(location-search): filter invalid coordinates before schema parse
- chore: remove unused SunriseApiResponse and NominatimRawResult type exports
- fix(schema): use looseObject for InstantDetailsSchema to allow non-numeric additive fields
- fix(api): replace deprecated .passthrough() with z.looseObject() for Zod v4
- test(api): cover runtime schemas for boundary payloads
- feat(api): validate external responses at runtime
- Merge pull request #23 from kyndig/fix/location-identity-unification
- lint fix
- fix(forecast): add missing originalName to graph generation useEffect deps
- fix(ci): set TZ=Europe/Oslo for unit tests and guard timezone-dependent assertions
- ci: run unit tests in Raycast CI workflow
- test(identity): storage migration, cache-keys, location-utils, useFavorites, integration flow
- refactor(forecast): resolved location contract and canonical React keys
- feat(identity): harden location key canonicalization and prefixed ID normalization
- Merge pull request #22 from kyndig/fix/location-identity-unification
- refactor(identity): remove id-only favorite helper and share coord precision constant
- fix(forecast): preserve canonical location identity across favorite flows
- Merge pull request #21 from kyndig/fix/p0-timezone-date-correctness
- test(dates): cover local date serialization and filtering boundaries
- fix(dates): preserve local target date across forecast flow
- Merge pull request #20 from kyndig/refactor/phase-7-readme-fixup
- docs(readme): add missing welcome message shortcuts to table
- Merge pull request #19 from kyndig/refactor/phase-7-readme
- docs(readme): rewrite for conciseness and remove stale content
- Merge pull request #18 from kyndig/refactor/phase-6-cleanup
- refactor(yr): extract favorite item render helpers
- refactor(location): group settlement emoji switch cases
- Merge pull request #17 from kyndig/refactor/phase-5-cache
- fix(cache-keys): replace dead weatherCacheKey/sunriseCacheKey with shared coordSuffix
- refactor(api-client): use shared cache key builder
- refactor(cache): remove CacheManager and unify graph cache keys
- Merge pull request #16 from kyndig/refactor/phase-4-forecast
- refactor(favorites): remove dead sunTimesRef and favoriteErrorsRef
- fix(favorites): retry failed favorites on refresh
- fix(favorites): remove unused loading ref synchronization
- fix(favorites): refetch cancelled loading-only entries
- chore(refactor): apply formatter output after favorites refactor
- refactor(favorites): fetch weather incrementally by location key
- refactor(forecast): simplify sunrise fetch to single-pass requests
- refactor(forecast): flatten graph lifecycle to one effect
- Merge pull request #15 from kyndig/refactor/phase-3-hooks
- fix(search): abort stale requests for short parsed queries
- fix(search): abort controller and reset isLoading in early-return guards
- fix(search): defer setQueryIntent until after min-char guard
- refactor(search): collapse duplicate reset branches in useEffect
- chore(toast): remove stale empty JSDoc block
- fix(search): move date-intent toast behind min-char guard
- Merge pull request #14 from kyndig/refactor/phase-3-hooks
- fix(search): gate debounced queries by parsed location text
- refactor(3e): remove dead networkConnectivityIssues toast
- refactor(3d): remove redundant parse in search effect
- refactor(3c): remove proactive network test and dead UI
- refactor(3b): replace useFavoriteIds with derived lookup
- Merge pull request #13 from kyndig/refactor/phase-2-config-cleanup
- style: apply Prettier formatting to phase-2 touched files
- refactor(2d): cache DebugLogger.isDebugMode() at module load
- refactor(2c): strip redundant JSDoc from weather-thresholds.ts
- refactor(2b): single source of truth for cache TTLs
- refactor(2a): flatten WeatherConfigManager to direct const exports
- Merge pull request #12 from kyndig/test/smoke-tests
- test: add Tier 1 and Tier 2 smoke tests (121 cases)
- test: add jest config, Raycast API mock, and fix .gitignore test exclusion
- Merge pull request #11 from kyndig/refactor/phase-1-dead-code
- chore: remove BUNDLE_OPTIMIZATION.md (references deleted code)
- refactor: delete dead modules (bundle-analyzer, optimized-components, useAsyncState, useDelayedError, lazy-graph)
- refactor: remove dead bundle-analyzer usage and useForecastPreloader
- Merge pull request #9 from kyndig/raycast-ci-rules
- Merge pull request #10 from kyndig/cursor/git-status-error-handling-92bd
- Fix missing error check on git status command in CI workflow
- chore: update .gitignore to exclude dist/ directory
- chore: update Raycast CI workflow to use environment variables
- refactor: improve Raycast CI metadata verification script
- chore: improve CI workflow for Raycast extension
- chore: update CI configuration and .gitignore for Raycast extension
- added ci rules for raycast extensions
- Merge pull request #8 from kyndig/2026-01-22-gve2
- chore: update CHANGELOG, package.json, and README for version 1.1.0
- Merge pull request #7 from kyndig/fix/abort-aware-retry
- fix: make retry backoff abortable
- Merge pull request #6 from kyndig/docs/functionality-analysis
- updated
- refactor: enhance location handling and caching mechanisms
- refactor: enhance check script for improved functionality and maintainability
- updated to reflect current changes
- updated check script
- improved data analysis of response
- fix: remove unused imports (formatTime, getForecast) to resolve linting errors
- refactor: update search results to pass LocationResult objects to forecast actions
- feat: update LazyForecastView to accept LocationResult for simplified naming
- refactor: update createLocationActions to accept LocationResult object instead of individual parameters
- fix: improve data coverage detection threshold from 24h to 12h and integrate into compact summary line
- fix: restore sunrise/sunset visualizations and improve caching system
- Merge pull request #5 from kyndig/testsuite
- changed temperature view in fav view
- updates
- fixed linting
- simplified error handling
- added comprehensive linting check
- Remove unused preloadForecast variable
- Fix window.location.reload() call in Suspense fallback
- Fix window.location.reload() calls in Raycast extension
- Remove unused preloadForecast parameter from createForecastActions
- fixed missing ACtionPanel use
- Consolidate ActionPanel patterns and improve code formatting
- removed accessibility changes, that didn\'t really work as intended
- temperature format DRY improvement
- caching of graphs and some accessibility enhancements
- language fixes
- updated shortcuts
- emojis now reflect the type of location in the search
- added specificity in search. Specific locations, such as Asker town, will be sorted above less specific locations, such as Asker municipality
- upgraded query search, and made some adjustments to showing graphs for data where the data grid is thinner
- updated to reflect current functionality
- updated to reflect latest changes
- fixed the missing onFavoriteChange callback in the ForecastView instantiation
- ts linting
- fixed ts errors to obsolete graph.tsx file
- Merge remote changes with local improvements
- accept all incoming changes
- Pull contributions
- sync with fork PR branch
- added summary to 9-day forecast
- updated readme
- fixed linting errors
- Merge branch \'contributions/merge-1757514100539\'
- Pull contributions
- fixed linting
- added 24h support
- new version with 24h support
- updated with latest changes
- updated sunrise sunset views and fixed a favourite bug
- updated readme to reflect recent changes
- updated readme to reflect recent changes
- thresholds follow WMO, fixed sunrise/sunset logic
- linting
- added subtitle, updates
- toastmessage cleans
- extracted magic numbers
- linting fix
- more ts errors
- linting fix
- typescript error fix
- refactor removing the text table form default view to kill the flickering issue once and for all. Also minor updates
- Fix graph flickering with configurable delay and pre-rendering
- attempting to solve flickering of graph views. Not successful, tho
- fixed ts errors
- bundle size optimizations to address the D3 library feedback
- fixed linting
- updated contact info
- Refactor main component to use custom hooks and reduce complexity
- Add useFavoriteIds hook to track favorite status of search results
- Add useFavorites hook to extract favorites management logic
- Add useSearch hook to extract search logic from main component
- Use configurable forecast hour constants
- Replace magic numbers with configurable UI thresholds
- Replace all magic numbers with configurable graph thresholds
- Use centralized unit conversion from configuration
- Replace magic numbers with configurable precipitation thresholds
- Add weather configuration manager with runtime controls
- Add centralized weather thresholds configuration
- added error boundaries
- API headers consistency across all external API calls
- eliminated unnecessary re-renders
- linting
- Merge pull request #3 from kyndig/wfc-compare
- visual feedback improvements for date queries
- Fix linting errors: remove unused variables
- Apply tech guru\'s React state management timing fixes
- fixed query duplication
- using auto-generated preference interfaces
- revived unused quick day queries
- updated
- reverted some massive changes, trying to keep things simple
- Merge pull request #2 from kyndig/improvements
- Fix race condition in concurrent network tests
- Remove browser detection and redundant array checks
- Fix references to non-existent LICENSE and CONTRIBUTING files
- Add array bounds checking for tokens[i+1] access
- Use auto-generated Preferences type instead of custom interface
- Use showFailureToast utility for simplified error handling
- Extract precipitation thresholds as documented constants
- add debug mode preference for console in raycast ext. settings
- updated with initial release
- updated readme
- docs: add welcome message system changes to changelog
- docs: update README with welcome message features and shortcuts
- feat: integrate welcome message callback in location actions
- feat: add welcome message action to day view
- feat: add welcome message action to graph view
- feat: add welcome message action to forecast view
- feat: integrate welcome message system with global shortcuts and all views
- feat: add first-time user tracking functions
- feat: add dedicated welcome message component with action panels
- refactor: remove Quick View functionality and integrate favorites reordering shortcuts
- feat: add favorites reordering functionality with moveUp/moveDown methods
- feat: implement graph caching and smooth rendering transitions
- feat: enhance graph with dual y-axis, rounded lines, and improved precipitation visualization
- feat: add graph-table synchronization to prevent flickering
- refactor: clean up unused imports and improve code organization
- refactor: update API clients to use new utility functions
- refactor: improve hooks with better error handling and loading states
- feat: add generic API client for consistent HTTP requests
- feat: add utility modules for DRY code organization
- feat: implement graph caching for super snappy view switching
- fixed linting
- fixed ts linting errors
- fixed linting errors
- Removed search results limitation, added minimum 3 chars for search
- feat: add favorite actions to day view
- feat: add favorite actions to graph view
- feat: add favorite actions to forecast view
- refactor: simplify search to fix infinite loops
- fix: prevent infinite re-render loop in useAsyncState
- feat: add Nominatim API connectivity testing
- feat: add net