Skip to content

Google chrome add open tab feature - #256

Merged
PitNikola merged 20 commits into
raycast:mainfrom
HenriChabrand:google-chrome-add-open-tab-feature
Nov 8, 2021
Merged

PitNikola merged 20 commits into
raycast:mainfrom
HenriChabrand:google-chrome-add-open-tab-feature

Conversation

@HenriChabrand

Copy link
Copy Markdown
Contributor

Description

Add "New Tab" command, allowing users to open a new tab with a search query. Currently opened or recently closed tabs matching the query will be suggested to avoid opening an existing tab.

Best use with cmd + T shortcut!

Type of change

  • Bug fix / improvement for somebody else's extension. Extension author: @ bromanko

Screencast

Screenshot 2021-10-29 at 10 07 24

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.

Hi @HenriChabrand 👋 Congrats on your first contribution! 👏 We are flattered that you chose the Raycast extensions repo for it.

A few NITs and comments/suggestions before merging this beautifully gem 💎

  • I don't think that "Open Tabs" should be in the list since it's already added to "Search Tabs" and it does only switch to the tab instead of opening a new tab 😄

Request a new review when you are ready, feel free to contact me here or at Slack if you have any questions.

@HenriChabrand

Copy link
Copy Markdown
Contributor Author

Hello @pernielsentikaer 👋
Thanks for those feedbacks!

  • I don't think that "Open Tabs" should be in the list since it's already added to "Search Tabs" and it does only switch to the tab instead of opening a new tab 😄

I'm ust mimicking Chrome feature here:
Screenshot 2021-11-01 at 09 56 33

As a user, you don't always remember if the page you want to reach is already open in one of your tabs.
Having the Open Tabs section here prevents a user from opening multiple time the same page – even though he didn't remember that the page was already opened somewhere.

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

Just found a few more, when they are corrected I'll do the last review and make it ready to get merged - thanks for your update 💯

Request a new review when you are ready, feel free to contact me here or at Slack if you have any questions.

@HenriChabrand

Copy link
Copy Markdown
Contributor Author

Thank you so much for your review @pernielsentikaer 🙌

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

Hi @HenriChabrand 👋

Just gave it a spin again, and it looks gorgeous. I did, however, find a thing that would be awesome to have addressed before merging.

It looks like the class Tab and a few functions are duplicated 1:1 from another file within the repo.

It makes sense to move it to utils with export instead, and import it respectively in the two locations in order to reduce repetition of software patterns, also known as DRY - which make bug fixing a lot easier.

Request a new review when you are ready, feel free to contact me here or at Slack if you have any questions or need help modifying it

Very so close to merging! 💯

@pernielsentikaer pernielsentikaer self-assigned this Nov 2, 2021
@pernielsentikaer pernielsentikaer added the extension fix / improvement Label for PRs with extension's fix improvements label Nov 2, 2021
@PitNikola

Copy link
Copy Markdown
Member

@rgomezcasas, as an author of the original extension could you please take a look if you're okay with this addition?

@thomaspaulmann

Copy link
Copy Markdown
Member

@HenriChabrand Is the Search list item always showing up?

@pernielsentikaer

Copy link
Copy Markdown
Contributor

No @thomaspaulmann, default it starts like shown here

NY8eoGrKIonAFoYs.mp4

@HenriChabrand

Copy link
Copy Markdown
Contributor Author

Hello @thomaspaulmann 👋

The first item is always here yes – but it will either be use to Open an Empty Tab or Search the term if some are inputted 👍

@thomaspaulmann

Copy link
Copy Markdown
Member

Hello @thomaspaulmann 👋

The first item is always here yes – but it will either be use to Open an Empty Tab or Search the term if some are inputted 👍

Ah that makes sense. Also I didn't see that this is a separate command. Looking forward to it. I think it's a great addition.

@rgomezcasas

Copy link
Copy Markdown
Contributor

Awesome!!

@pernielsentikaer

Copy link
Copy Markdown
Contributor

Hi @HenriChabrand 👋

Awesome contribution 💪

A suggestion for later on could be if a domain is added (starts with www/http) then it would show "Go to" instead of search - this is not crucial to get it shipped but could be an awesome idea 💯

@PitNikola
PitNikola merged commit 0c65425 into raycast:main Nov 8, 2021
FezVrasta pushed a commit to FezVrasta/extensions that referenced this pull request Nov 24, 2021
* Notion Extension

Adding Notion extension.

* Add Slack Extension

This extension allows you to search user and channel from a Slack workspace and open this conversion in the Slack app.

* Removing Slack

* Adding "How to" share database

* Adding "How to" share pages + Page empty state

* Delete extensions/notion directory

* Add New Tab Command

* Add New Tab Command

* Update extensions/google-chrome/src/google-chrome-new-tab.tsx

Co-authored-by: Per Nielsen Tikær <[email protected]>

* Update extensions/google-chrome/src/google-chrome-new-tab.tsx

Co-authored-by: Per Nielsen Tikær <[email protected]>

* Update extensions/google-chrome/src/google-chrome-new-tab.tsx

Co-authored-by: Per Nielsen Tikær <[email protected]>

* Update extensions/google-chrome/src/google-chrome-new-tab.tsx

Co-authored-by: Per Nielsen Tikær <[email protected]>

* Update extensions/google-chrome/src/google-chrome-new-tab.tsx

Co-authored-by: Per Nielsen Tikær <[email protected]>

* Update extensions/google-chrome/src/google-chrome-new-tab.tsx

Co-authored-by: Per Nielsen Tikær <[email protected]>

* Update extensions/google-chrome/src/google-chrome-new-tab.tsx

Co-authored-by: Per Nielsen Tikær <[email protected]>

* Update extensions/google-chrome/src/google-chrome-new-tab.tsx

Co-authored-by: Per Nielsen Tikær <[email protected]>

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