{"id":13412315,"url":"https://github.com/oe/sourcetree-alfred-workflow","last_synced_at":"2025-12-02T21:30:14.690Z","repository":{"id":39340321,"uuid":"470418951","full_name":"oe/sourcetree-alfred-workflow","owner":"oe","description":"Search bookmarks in SourceTree and open with code editor / SourceTree / finder via Alfred.","archived":false,"fork":false,"pushed_at":"2023-05-15T14:20:07.000Z","size":1340,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T03:11:38.664Z","etag":null,"topics":["alfred","alfred-workflow","sourcetree","swift"],"latest_commit_sha":null,"homepage":"https://alfred.app/workflows/saiya/sourcetree/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-16T03:32:04.000Z","updated_at":"2024-01-19T06:49:55.000Z","dependencies_parsed_at":"2023-01-31T11:45:50.852Z","dependency_job_id":null,"html_url":"https://github.com/oe/sourcetree-alfred-workflow","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oe%2Fsourcetree-alfred-workflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oe%2Fsourcetree-alfred-workflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oe%2Fsourcetree-alfred-workflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oe%2Fsourcetree-alfred-workflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oe","download_url":"https://codeload.github.com/oe/sourcetree-alfred-workflow/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239652954,"owners_count":19675004,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alfred","alfred-workflow","sourcetree","swift"],"created_at":"2024-07-30T20:01:23.355Z","updated_at":"2025-12-02T21:30:14.658Z","avatar_url":"https://github.com/oe.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"# SourceTree alfred workflow\nSearch bookmarks in SourceTree and launch them via Alfred.\n\n![usage demo](assets/usage-demo.gif)\n\n*Credits*: This is a swift clone of [Alfred_SourceTree](https://github.com/yourtion/Alfred_SourceTree) by [yourtion](https://github.com/yourtion). Due to the latest release of macOS 12.3, python2 has been removed, which broke the original workflow. So I reimplemented this workflow in Swift. It should be much more stable and faster.\n\n## Features\n1. support fuzzy search\n2. can open repo in your code editor directly by press \u003ckbd\u003ecmd\u003c/kbd\u003e + \u003ckbd\u003eenter\u003c/kbd\u003e, using VS Code by default, you can [custom it](#custom-your-preferred-code-editor)\n3. can reveal repo in find by press \u003ckbd\u003eoption\u003c/kbd\u003e + \u003ckbd\u003eenter\u003c/kbd\u003e\n\n\n## Install\n### Prepare\n1. you must have [SourceTree](https://www.sourcetreeapp.com/) installed\n2. you should have unlocked [Powerpack in Alfred](https://www.alfredapp.com/powerpack/)\n3. make sure you have `swift` available in terminal.(**If you have `Xcode` installed, you can skip this step.**):\n   1. type `swift --version` in terminal, if you don't see any version info output, following next step to install it.\n   2. type `xcode-select --install` in terminal to install swift cli tools\n\n\n### Install\n\n[download workflow](https://github.com/oe/sourcetree-alfred-workflow/raw/main/SourceTree.alfredworkflow) then click the downloaded file to install\n\nPromotion: using [sourcetree-custom-actions](https://github.com/oe/sourcetree-custom-actions) to add useful actions for SourceTree\n\n## Usage\n\nlaunch alfred then input `st` and `keyword` separated with a space to search bookmarks, press enter to launch the bookmark in SourceTree.\n\nAdditionally:\n\u003e select a bookmark,  press `cmd` + `enter` to open the repo in your favorite code editor, see [how to custom code editor](#custom-your-preferred-code-editor)\n\u003e select a bookmark,  press `option` + `enter` to reveal the repo in Finder\n\n\n## Build script to binary\nIf you are using an old Intel Chip Mac, you may experience the unbearable lagging, that's because of Swift JIT Compiler is pretty slow on Intel Chip.\n\nYou can follow the following steps to compile the workflow script to binary to speed up its response speed.\n\n\u003e enter `st $compile` in Alfred then press `enter` key\n\nIf you are using Apple Silicon Macs(like M1, M1 Pro), you can also compile the workflow for better performance\n\n\n## Custom your preferred code editor\n1. Open Alfred Preferences panel\n2. find and click the `SourceTree` in **Workflows** list\n3. click `Configure Workflow...` button bellow the workflow name\n4. change the value of `Code Editor Config`, , multiple values can be set depending on the file extensions in the folder.\n\n   Example:\n   ```sh\n   # configuration format:\n   # [editor cli name]=[extension1, extension2,...]\n   # extension case does not matter\n   # example, using Xcode for XCode projects\n   xed=.xcodeproj,.xcworkspace,package.swift\n\n   # using vscode for default\n   code=*\n   ```\n\n   The order of the list is important, the first one that matches will be used.\n\n   Here are some common editors' cli names:\n\n   1. `code` for VSCode (default)\n   2. `xed` for Xcode\n   3. `subl` for Sublime Text\n   4. `webstorm` for WebStorm\n   5. `idea` for IntelliJ IDEA \n\n   Tips: \n   1. If your preferred editor not available in CLI, make sure you've append it's binary file's directory to the `PATH`\n   2. You may need to authorize Alfred to access the folders containing the repos., see [here](https://www.alfredapp.com/help/getting-started/permissions/)\n\n5. click `save` button to save variable settings\n6. click the bug 🐞 icon in the top right to show the debug log\n7.  try yourself, if it works, congratulations; if not, check the debug log, make sure the cli name is existing and correct, and `PATH` contains your cli\n\n\n\n## Contributions and Support\nI'm new to swift, feel free to make a pull request if you are willing to improve the code quality or its functions.\n\n## Thanks\n* [Collin Hemeltjen](https://github.com/CollinHemeltjen) for [smart editor support](https://github.com/oe/sourcetree-alfred-workflow/pull/4)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foe%2Fsourcetree-alfred-workflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foe%2Fsourcetree-alfred-workflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foe%2Fsourcetree-alfred-workflow/lists"}