New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add generic search engine menu item #164
Conversation
Squashed commits: [WIP] Simpler implementation of adding generic "Search with ..." menu item (search engine title and url provided by user). Still needs some tweaking [WIP] Ensure URLs copied from Chrome's available search engines work with this implementation [WIP] Update documentation, renaming option apply fixes indicated by XO Merge branch 'sindresorhus:main' into add-other-search-engine wording tweaks, clean ups to be more consistent simplify more tweaks more tweaks reword use tabs instead of spaces for example (shows up in readme with refined github) properly handle case when addSearchWithOther option is not set add a "control" test where no options are set to ensure default scenario is working Revert "add a "control" test where no options are set to ensure default scenario is working" This reverts commit 39d8512. fix casing more doc tweaks missed rewording simplify @Property items * move length check of addSearchWithOther closer to undefined check (confused when revisiting after awhile) * update ts types file to match readme's property section * fix whitespaces more tweaks fix XO trailing space errors add types for addSearchWithOther properties
6eeade7
to
53a6837
Compare
I don't think that's needed.
I don't think validation is needed. |
0e0c4d6
to
7d9280f
Compare
18f7d07
to
e934d0e
Compare
Realized this PR probably isn't the preferred solution to the referenced issue, closing it. Apologies for any wasted time. |
Adding an
addSearchWithOther
option that displays aSearch with {searchEngine}
menu item when an object containing thetitle
andurl
of a search engine is provided.Just wanted to mention a few items I wasn't sure about (still relatively new to js):
addSearchWithOther
expects but wasn't sure if that'd be "overkill" since a developer has to jump to another section to see the properties needed. I can update to one of those if preferred, though.showSearchWithOther
,showOtherSearchEngine
, or anything else. I just wasn't sure if there might be confusion with the others starting withshow...
being booleans (but maybe it's clear enough with the readme and types file?) so for now decided to err on "more clarity" despite looking a bit out of place.url
provided but due to the following, it seemed safe to assume that for ~95% of the use cases, theurl
would be "clean" so decided not to but can update, if preferred.Fixes #155