Giter Club home page Giter Club logo

alfred-chromium-workflow's Introduction

Alfred-chromium-workflow
License

Alfred workflow for Chromium browsers

Why?

This workflow originated from alfred-chrome-workflow.

The previous workflow has several installation issues like this.

In addition to resolving installation issues, this workflow provides several following benefits over the previous one.

  • Support favicon images in almost all features
  • Support switching browsers, profiles with ease
  • Support more Chromium based browsers
  • Lightning-fast
  • Provide localized subtitle

🌈 Features

  • πŸ“„ Search visit histories
  • πŸ”– Search bookmark, bookmark folders
  • πŸ“œ Search search histories
  • πŸ”Ž Search download logs
  • πŸ“’ Search and copy your autofill data
  • πŸ“Ž Search your opened tabs and focus, close them

πŸ“Œ Prerequisite

The prerequisites below are required to use that package.

🎯 Supported Browsers

Currently supported browsers are as follows.

  • Chrome
  • Chrome Beta
  • Chrome Canary
  • Chromium
  • Edge
  • Edge Canary
  • Brave
  • Naver Whale
  • Epic
  • Vivaldi
  • Opera
  • Arc

This workflow assumes your browser is Chrome at default.

You can switch the browser with ch browser.

πŸ”¨ How to install

Download alfred-chromium-workflow.alfredworkflow on the Release page and double click the file to add to Alfred.

  • The executable is not code-signed so manual verification of the executable is required to run Alfred commands. From the Alfred Preferences' Workflows tab, right-click alfred-chromium-workflow in the left nav, and select "Open in Finder". Find and right-click the alfred-chromium-workflow executable, then click "Open" (do not simply double-click the file). You will be presented with a modal dialog that reads "macOS cannot verify the developer of β€œalfred-chromium-workflow”. Are you sure you want to open it?" - click Open. The warning will no longer appear during workflow usage.

  • Note that if your browser is not the default browser (Chrome), you need to switch your browser through ch browser first.

  • Register your customized hotkeys if you need to.

Note : This workflow may not work on Intel Macs in versions 0.3.0 and above.

πŸ“— Usage

chb

Retrieve bookmarks.

chf

Retrieve bookmark folders.

chh

Retrieve visit histories.

Append word starting with # to retrieve only the logs in that domain.

Example:

chh #github [foo bar]

chd

Retrieve download histories.

chdc

Retrieve download histories but only show existing files.

chs

Retrieve your search histories.

Append word starting with # to retrieve only the logs in that domain.

Example:

chs #github [foo bar]

cha

Retrieve autofill data.

Press enter with option key to paste the value directly.

chid

Retrieve login data (like email).

Press enter with option key to paste the value directly.

cho

Open new window through selected profile.

If you change your profile through ch profile, other commands try to work with the previously opened window.

This command would be useful in such a case.

Open new window with changed profile before the command.

cht

Search opened tabs and focus, close them.

Tabs are sorted by their domain.

ch browser

Switch browsers with ease.

This command also let you change the browser profile after changing the browser.

ch profile

Switch profiles with ease.

Tip: You can check what is your Browser's profile's name in chrome://version.

ch helper

Provides several useful helper features.

  • Update workflow if a new version is available
  • Cache favicon manually
  • Open Github issues
  • Open Alfred forum link
  • Open READMD.md

πŸ”– Options

Configure below options through Workflow Environment Variables.

Profile

Browser's profile name.

You don't need to change this value manually.

Instead, you can change this value through ch profile with ease.

CustomizedProfiles

List up your custom profile names if there are.

This could be useful when you have profiles in customized locations.

You can switch your profile through ch profile with Profile {number}, Default and these values.

Each profile name should be splited with comma (,).

Locale

This is used to provide localized subtitles.

Refer to the following page for seeing supported locales.

https://github.com/klauspost/lctime/tree/master/internal/locales

Browser

Browser name.

You don't need to change this value manually.

Instead, you can change this value through ch browser with ease.

ResultCountLimit

Max number of items to show in Alfred.

But the maximum count limit is limited to 200 regardless of its value to prevent truncating json string.

🌟 Contribution

Contributions of any kind are welcome.

Add supporting new browser

This workflow needs help to support as many browsers as possible.

To add new browser, please follow below guideline.

  1. Check the browser is based on Chromium.
  2. Add new path to GetProfileRootPath in src/utils.go.
  3. Add the browser's proper Application Name to getApplicationName in src/tabManager.go. You can check this value through Applescript Editor's Dictionary.
  4. Add proper Open URL block of info.plist using Alfred.
  5. Add new browser's item SelectBrowser in src/config.go.
  6. Add the browser name to READMD.md.
  7. Add the browser's icon to assets/browser-icons.

Related

You may also consider below workflows interesting.

License

MIT Β© jopemachine

alfred-chromium-workflow's People

Contributors

imgbot[bot] avatar joelmellon avatar jopemachine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

alfred-chromium-workflow's Issues

No such file or folder

I was using Google Chrome browser with no issues. Today I installed Opera. When trying using history, downloads, searches or any other command (exept New Tab), I get error:

"items": [
{
"title": "open /Users/[username]/Library/Application Support/com.operasoftware.Opera/History: no such file or directory",
"valid": false,
"icon": {
"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"

I found my history is kept in: Library/Application Support/com.operasoftware.Opera/Default/History
Copied file in parrent folder and worklow works. How can I change the default folder for Opera to match the workflow script, or change folder in Worflow to match the real folder on my mac?

Code 126: /bin/bash: ./alfred-chromium-workflow: Bad CPU type in executable

I just upgraded from 0.2.7 to 0.2.8 and got this error:

Screen Shot 2022-09-19 at 11 45 15 AM

I deleted and reinstalled 0.2.7 to confirm something changed, and the error goes away, and cht works perfectly.

Steps to reproduce:

  1. Download alfred-chromium-workflow.alfredworkflow 0.2.8
  2. Open debugger in workflow.
  3. In Alfred: cht anything
  4. Notice "Code 126: /bin/bash: ./alfred-chromium-workflow: Bad CPU type in executable" error in debug console.

Workaround: revert to 0.2.7.

My system:
macOS Monterey 12.3.1 (21E258) on Intel chip.
Alfred 4.7 [1306] then upgraded to Alfred 5.0.2 [2073] and experienced the same issue.

It doesn't look like much changed in 0.2.8 executable-wise, but maybe the magefile version changes had some effect? β€Ύ_(ツ)_/β€Ύ

Search Tab slow

The search for tab is very slow, and it takes more than five seconds each time. Both Chrome and Edge only open two tab.

Can't access my Chrome history

Hi, I can't seem to access my Chrome history.

I've tried with a couple of other Alfred workflows and none seem to be able to fetch my history, even though I'm just using the Default profile.

Do you have any ideas what might cause this?

Thanks!

PS: Yours looks by far the best one of the bunch, seriously impressed with the functionalities!

(bug) Case sensitive in tab search

I've been using another workflow to search through Chrome and Safari tabs for quite a few years now and I've always hated how slow it was. This workflow is 10x faster which is insanely great!

Unfortunately, it's nearly useless to me without being case-insensitive.

It does seem to work sometimes, so I'm not sure if it's a bug or just partially case-insensitive or what, eg. maybe the URL is case insensitive but the tab title isn't? Regardless, I've found quite a few cases where it doesn't work case-insensitively, primarily YouTube which doesn't use stubs or otherwise have anything useful to search in their URLs, so search terms generally only match tab titles.

To reproduce:

  1. Go to https://www.youtube.com/watch?v=0EqSXDwTq6U
  2. Activate Alfred
  3. Type "cht Charlie"
  4. Notice "Charlie bit my finger! ORIGINAL..." appears as a result.
  5. Backspace to change Alfred text to "cht charlie" - with lowercase c in charlie
  6. Notice no results appear.

If this isn't 100% reproducible let me know and I'll provide system info, etc.

Thanks!

Slow and laggy response in `cht`

I don't know what I did wrong, but the response time for the search tab is very slow, and it lags and not respond for few seconds, please find a fix to it soon.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.