From ce17c46bc6c627f874bc73561714f2cab98ec947 Mon Sep 17 00:00:00 2001 From: Saiya Date: Mon, 15 May 2023 22:16:17 +0800 Subject: [PATCH] chore: fix typos & release --- README.md | 23 +++++++++++++++-------- SourceTree.alfredworkflow | Bin 108354 -> 108431 bytes 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6b0833a..1438a78 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Search bookmarks in SourceTree and launch them via Alfred. ## Features 1. support fuzzy search -2. can open repo in your code editor directly by press cmd + enter, using VS Code by default, you can [custom it](#custom-your-perferred-code-editor) +2. can open repo in your code editor directly by press cmd + enter, using VS Code by default, you can [custom it](#custom-your-preferred-code-editor) 3. can reveal repo in find by press option + enter @@ -30,8 +30,8 @@ Promotion: using [sourcetree-custom-actions](https://github.com/oe/sourcetree-cu launch alfred then input `st` and `keyword` separated with a space to search bookmarks, press enter to launch the bookmark in SourceTree. -additionnal: -> select a bookmark, press `cmd` + `enter` to open the repo in your favorite code editor, see [how to custom code editor](#custom-your-perferred-code-editor) +Additionally: +> 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) > select a bookmark, press `option` + `enter` to reveal the repo in Finder @@ -45,20 +45,25 @@ You can follow the following steps to compile the workflow script to binary to s If you are using Apple Silicon Macs(like M1, M1 Pro), you can also compile the workflow for better performance -## Custom your perferred code editor +## Custom your preferred code editor 1. Open Alfred Preferences panel -2. find and click the `SourceTree` in **Wokflows** list +2. find and click the `SourceTree` in **Workflows** list 3. click `Configure Workflow...` button bellow the workflow name 4. change the value of `Code Editor Config`, , multiple values can be set depending on the file extensions in the folder. Example: ```sh + # configuration format: + # [editor cli name]=[extension1, extension2,...] + # extension case does not matter + # example, using Xcode for XCode projects xed=.xcodeproj,.xcworkspace,package.swift - studio=.gradle + + # using vscode for default code=* ``` - The order of the list matters, once a match has been found the script will continue and not check the other options. + The order of the list is important, the first one that matches will be used. Here are some common editors' cli names: @@ -68,7 +73,9 @@ If you are using Apple Silicon Macs(like M1, M1 Pro), you can also compile the w 4. `webstorm` for WebStorm 5. `idea` for IntelliJ IDEA - Tips: if your preferred editor not available in CLI, make sure you've append it's binary file's directory to the `PATH` + Tips: + 1. If your preferred editor not available in CLI, make sure you've append it's binary file's directory to the `PATH` + 2. You may need to authorize Alfred to access the folders containing the repos., see [here](https://www.alfredapp.com/help/getting-started/permissions/) 5. click `save` button to save variable settings 6. click the bug 🐞 icon in the top right to show the debug log diff --git a/SourceTree.alfredworkflow b/SourceTree.alfredworkflow index 7c859a6bd82b022d0f6b2069413c6282395856d4..f71954c5b5ff56d808dc58459a2ff968d2a59f67 100644 GIT binary patch delta 2461 zcmV;O31arb&IXUq27t5yVtx&pv9DH^XJ<~0mv4Rn7JuYDVr1k!Vq|rA3jhHG z^#K3?1QY-O0M%J}bKAHT|2zB?sGQj(tw`#$tkm|7&aQX78&BYkwbxa_w@sG`t3s)kUJ(MkE63n-KkXwi@ez9(fq9P)6LjE zseF5Go&I6?VSjM*^VNtX0hfwg{nWp_7?6tXy1gU`nClL2hUDt<;`)XF57!<2SRs{# zQptPQy}!SADDHB+IK++8y%KT4gj!w#GaCpTU-=afW4IU8fmNS->fCyDddrsQ(=_q} z#{E+lzrmtZ0(3nG)(*R49t}c=1~b8YN5-k}m=cVgx_{ZOjENUV5%UztkZV4f5VN6n zQXh{SuzYj;u}JMW*pqK$&yEk&6zl_ zow}>X5`T(xs@Q`nQKdx89apgz#FA}ppV2@v*O=?Bz2>f+peYZt>nk|0KWcP`?PlBV zwpty#)oj&3P^)i`PrAq5;jq=LH-`T^2bvU&Qnmg+&k$v>vq4_8QHB?t!AGz zn`66KA2(~YcE3JuwZAAbFUiT#xZ52y>`t%Ngn!uen|62HKepT8+}7x%*Bmt)|BpF& zSgI6q5?QVpn${s0Rm`6*w;Rwk~` zB~2r5!Nd+XF6lI2dGA}BtzSnpWIIyU?6;Z4(_f(l=KU}CRh~InublCD?(FS!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