Skip to content

Add command to search history (and refactor the rest) - #719

Merged
thomaspaulmann merged 6 commits into
mainfrom
safari-history-search
Jan 27, 2022
Merged

thomaspaulmann merged 6 commits into
mainfrom
safari-history-search

Conversation

@thomaspaulmann

Copy link
Copy Markdown
Member

Description

I added a new command to search Safari's browser history. This is convenient if you need to find a website that you opened before. I use this command heavily and finally was able to publish it. I took the courtesy to refactor the rest of the extension to make it easier to reuse code. @loris is aware of this change.

There are a few outstanding things that could be improved:

  • Convert more logic to hooks instead of async functions which make it easier to handle
  • Add more convenience actions/commands to interact with Safari

Type of change

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

Screencast

I'm hesitant to share my browser history :-)

Checklist

@thomaspaulmann

ghost commented Jan 21, 2022

Copy link
Copy Markdown
Member Author

@loris please have a look

@loris

ghost commented Jan 21, 2022

Copy link
Copy Markdown
Contributor

@thomaspaulmann this is totally awesome, thanks a lot for the new history feature + the heavy code splitting 💯

only one feedback: could be great to make all command name/descriptions look similar, ie:

  • Browse your Safari Tabs
  • Browse your Safari Reading List
  • Browse your Safari History

(instead of using "Search" or "List" etc)

@pernielsentikaer

ghost commented Jan 22, 2022

Copy link
Copy Markdown
Contributor

Seems like a single file was not correctly ran through Prettier

Checking formatting...
[warn] src/components/AddToReadingListAction.tsx
[warn] Code style issues found in the above file(s). 

@thomaspaulmann

ghost commented Jan 22, 2022

Copy link
Copy Markdown
Member Author

@thomaspaulmann this is totally awesome, thanks a lot for the new history feature + the heavy code splitting 💯

only one feedback: could be great to make all command name/descriptions look similar, ie:

  • Browse your Safari Tabs
  • Browse your Safari Reading List
  • Browse your Safari History

(instead of using "Search" or "List" etc)

Good point, just synced the descriptions of the commands. I kept them a little bit different to make sure they don't read too boring. Also, I was thinking of renaming "Show Tabs" to "Search Tabs" and the same for reading list. I think it fits better the model. The problem is that renaming the commands could affect existing users habits, so I'm not sure if it's wise to go ahead.

@pernielsentikaer

ghost commented Jan 23, 2022

Copy link
Copy Markdown
Contributor

Hi @thomaspaulmann 👋

In my opinion it makes sense to renaming it now (I don't think it's too late) but I leave that up to you and @loris

Your additions work as expected, good work 💪

@loris

ghost commented Jan 23, 2022

Copy link
Copy Markdown
Contributor

@thomaspaulmann @pernielsentikaer Yes it makes sense! But @thomaspaulmann is this on purpose that you renamed 2 of them to "Search", but left the 3rd one to "Browse your history"?

@thomaspaulmann

ghost commented Jan 24, 2022

Copy link
Copy Markdown
Member Author

Just updated the names and unified the descriptions. Let me know if there is something left that you would like to add.

@thomaspaulmann

ghost commented Jan 24, 2022

Copy link
Copy Markdown
Member Author

I also unified all copied actions across the search commands.

@thomaspaulmann
thomaspaulmann merged commit a283b99 into main Jan 27, 2022
@thomaspaulmann
thomaspaulmann deleted the safari-history-search branch January 27, 2022 15:24
@raycastbot

ghost commented Jan 27, 2022

Copy link
Copy Markdown
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants