You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-8
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ Search bookmarks in SourceTree and launch them via Alfred.
7
7
8
8
## Features
9
9
1. support fuzzy search
10
-
2. can open repo in your code editor directly by press <kbd>cmd</kbd> + <kbd>enter</kbd>, using VS Code by default, you can [custom it](#custom-your-perferred-code-editor)
10
+
2. can open repo in your code editor directly by press <kbd>cmd</kbd> + <kbd>enter</kbd>, using VS Code by default, you can [custom it](#custom-your-preferred-code-editor)
11
11
3. can reveal repo in find by press <kbd>option</kbd> + <kbd>enter</kbd>
12
12
13
13
@@ -30,8 +30,8 @@ Promotion: using [sourcetree-custom-actions](https://github.com/oe/sourcetree-cu
30
30
31
31
launch alfred then input `st` and `keyword` separated with a space to search bookmarks, press enter to launch the bookmark in SourceTree.
32
32
33
-
additionnal:
34
-
> 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)
33
+
Additionally:
34
+
> 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)
35
35
> select a bookmark, press `option` + `enter` to reveal the repo in Finder
36
36
37
37
@@ -45,20 +45,25 @@ You can follow the following steps to compile the workflow script to binary to s
45
45
If you are using Apple Silicon Macs(like M1, M1 Pro), you can also compile the workflow for better performance
46
46
47
47
48
-
## Custom your perferred code editor
48
+
## Custom your preferred code editor
49
49
1. Open Alfred Preferences panel
50
-
2. find and click the `SourceTree` in **Wokflows** list
50
+
2. find and click the `SourceTree` in **Workflows** list
51
51
3. click `Configure Workflow...` button bellow the workflow name
52
52
4. change the value of `Code Editor Config`, , multiple values can be set depending on the file extensions in the folder.
53
53
54
54
Example:
55
55
```sh
56
+
# configuration format:
57
+
# [editor cli name]=[extension1, extension2,...]
58
+
# extension case does not matter
59
+
# example, using Xcode for XCode projects
56
60
xed=.xcodeproj,.xcworkspace,package.swift
57
-
studio=.gradle
61
+
62
+
# using vscode for default
58
63
code=*
59
64
```
60
65
61
-
The order of the list matters, once a match has been found the script will continue and not check the other options.
66
+
The order of the list is important, the first one that matches will be used.
62
67
63
68
Here are some common editors' cli names:
64
69
@@ -68,7 +73,9 @@ If you are using Apple Silicon Macs(like M1, M1 Pro), you can also compile the w
68
73
4.`webstorm` for WebStorm
69
74
5.`idea` for IntelliJ IDEA
70
75
71
-
Tips: if your preferred editor not available in CLI, make sure you've append it's binary file's directory to the `PATH`
76
+
Tips:
77
+
1. If your preferred editor not available in CLI, make sure you've append it's binary file's directory to the `PATH`
78
+
2. You may need to authorize Alfred to access the folders containing the repos., see [here](https://www.alfredapp.com/help/getting-started/permissions/)
72
79
73
80
5. click `save` button to save variable settings
74
81
6. click the bug 🐞 icon in the top right to show the debug log
0 commit comments