Skip to content

Add Microsoft Edge extension - #342

Merged
fe9lix merged 14 commits into
raycast:mainfrom
KartikKumarSahoo:main
Nov 22, 2021
Merged

fe9lix merged 14 commits into
raycast:mainfrom
KartikKumarSahoo:main

Conversation

@KartikKumarSahoo

@KartikKumarSahoo KartikKumarSahoo commented Nov 12, 2021 •

Copy link
Copy Markdown
Contributor

Description

Manage Microsoft Edge from Raycast. It can list all the open tabs, go to the selected, search from history, and open a new tab.

Have extended an existing extension named "google-chrome", rather than creating a new one from scratch. I hope folks are okay with it. cc: @rgomezcasas, @thomaspaulmann, @bromanko, @HenriChabrand, @pernielsentikaer, @grzegorzkrukowski

Type of change

  • New extension

Screencast

Screen.Recording.2021-11-13.at.3.58.15.PM.mov

Checklist

@KartikKumarSahoo
KartikKumarSahoo marked this pull request as ready for review November 12, 2021 07:09

@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 @KartikKumarSahoo 👋

Found a quick showstopper that we need to address before going further 😄

Errors should be handled gracefully, if you don't have Microsoft Edge installed, otherwise it just looks like this:

13gNYAEsMOOkvFk5

Pu9bB1pBbry4c2OS

  • When opening a new tab/bookmark, it opens in the default browser and not in Edge, is there a way to force it to open in Edge (if it makes sense)

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

@pernielsentikaer pernielsentikaer added the new extension Label for PRs with new extensions label Nov 14, 2021
@KartikKumarSahoo

Copy link
Copy Markdown
Contributor Author

Thanks, @pernielsentikaer for the quick review and nice findings. 😄 Will fix and raise a new review.

@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 @KartikKumarSahoo 👋

Much better! I noticed that sometimes does “Search Tab” only pops to root (without closing) main window — but it's not reproductive all the time — I can't find the pattern! 😢

A thing I noticed is that ActionPanel.items are missing icons as mentioned here

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

@KartikKumarSahoo

Copy link
Copy Markdown
Contributor Author

Thanks, @pernielsentikaer for the review again. I'll try reproducing that and fix the same and let you know. Please don't review until I mention you in a comment to review. Saying this because I might push things half done. So please wait for my comment to review the next time. Thanks for understanding and so sorry for troubling you. :)

@pernielsentikaer

Copy link
Copy Markdown
Contributor

Thanks, @pernielsentikaer for the review again. I'll try reproducing that and fix the same and let you know. Please don't review until I mention you in a comment to review. Saying this because I might push things half done. So please wait for my comment to review the next time. Thanks for understanding and so sorry for troubling you. :)

You're not troubling me at all, I'm just glad that I can help you out 😄 You could make the PR as a draft until you're ready, that would be the best way to ensure no one is doing anything 💯

@KartikKumarSahoo

Copy link
Copy Markdown
Contributor Author

I have fixed all the bugs reported. Please have a look when you get time. @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 @KartikKumarSahoo 👋 I always have time for you 😄

So much better, we're getting pretty close 🚀

I found a strange behavior:

  • When using “New Tab” command, 5/11 times it just pops to root while the rest of them also closes the window — rest of the commands closes the windows and pops to root

Can you reproduce this and look into it?

@KartikKumarSahoo

Copy link
Copy Markdown
Contributor Author

Hi @pernielsentikaer, thanks a lot for your help and support. 🙏🏻 I could reproduce the problem and fix the same. Please take a look when you get time.

@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 @KartikKumarSahoo 👋

Thanks for adding another command 💯

I tested it without having a collection and only getting the message “Microsoft Edge not installed” — after adding a few pages to collections it works as expected 👏 So we're really close now 💪

@KartikKumarSahoo

Copy link
Copy Markdown
Contributor Author

Hi @pernielsentikaer 👋

Thanks for checking all the cases and helping me shape the extension better. Fixed the above problem as well. Hope this time everything works. 🤞🏻

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

Much better, awesome 💪

I'm going to approve it now and then a colleague will do the last checking 💯 Again, thank you for a awesome extension 🥇

@KartikKumarSahoo

Copy link
Copy Markdown
Contributor Author

Thanks a lot @pernielsentikaer. 🤝

@fe9lix
fe9lix merged commit d00b931 into raycast:main Nov 22, 2021
@raycastbot

Copy link
Copy Markdown
Collaborator

FezVrasta pushed a commit to FezVrasta/extensions that referenced this pull request Nov 24, 2021
* Added Microsoft Edge extension

* updated size of icon

* added search bookmarks command

* refactor code and popToRoot after command is run

* open URL directly from new-tab command

* fix open url with Edge when default browser is something else

* handled error, refactored code, added icons to ActionPanel.Items

* refactor tab open code

* fixed close main window problem

* added new command to search in collections

* refactor code

* more refactoring

* fix incorrect Edge not installed toast message

* Handled Edge not installed case in every command

Co-authored-by: Kartik Sahoo <[email protected]>
@elcidowneador

Copy link
Copy Markdown

Hi @KartikKumarSahoo

Could you add also compatibility with Edge Beta/Dev, please? Tried to rename app name to remove 'dev' but doesn't work.

colebemis added a commit to colebemis/raycast-extensions that referenced this pull request Nov 6, 2024