Skip to content

Commit 4df01d1

Browse files
author
Saiya
committed
chore: update docs
1 parent 2e7196f commit 4df01d1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ additionnal:
3535
> select a bookmark, press `option` + `enter` to reveal the repo in Finder
3636
3737

38-
## Optimize for Intel Chip Mac
38+
## Build script to binary
3939
If you are using old Intel Chip Mac, you may experience the unbearable lagging, that's because of Swift JIT Compiler is pretty slow on Intel Chip.
4040

4141
You can follow the following steps to compile the workflow script to binary to speed up its response speed.
4242

4343
> enter `st $compile` in Alfred then press `enter` key
4444
45-
*If you are using Apple Silicon Macs(like M1, M1 Pro), you can also compile the workflow, but only a little bit faster*
45+
If you are using Apple Silicon Macs(like M1, M1 Pro), you can also compile the workflow for better performance
4646

4747

4848
## Custom your perferred code editor

SourceTree.alfredworkflow

13 Bytes
Binary file not shown.

workflow.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class SourceTree: Workflow {
198198
arg: "swiftc \"\(sourceFile)\" -O -o \"\(destFile)\""
199199
)
200200

201-
if !Self.isAppleChip && Self.isScript {
201+
if Self.isScript {
202202
list.insert(compileScript, at: 0)
203203
} else if query == "$compile" {
204204
list.append(compileScript)
@@ -291,7 +291,7 @@ extension SourceTree.SourceTreePlist {
291291
let alt = Workflow.AlfredItemModItem(valid: true, arg: "open \"\(path)\"", subtitle: "Reveal in Finder")
292292
// default using `code` aka VS Code to open project
293293
let editCli = ProcessInfo.processInfo.environment["EDITOR_CLI"] ?? "code"
294-
let cmd = Workflow.AlfredItemModItem(valid: true, arg: "\(editCli) \"\(path)\"", subtitle: "Open repo in your preferred code editor")
294+
let cmd = Workflow.AlfredItemModItem(valid: true, arg: "\(editCli) \"\(path)\"", subtitle: "Open in code editor")
295295
return Workflow.AlfredItem(title: name, subtitle: path, arg: path, mods: Workflow.AlfredMods(cmd: cmd, alt: alt))
296296
}
297297
}

0 commit comments

Comments
 (0)