|
|
55 |
56 |
57 |
58 |
59 |
60 | ## 特别感谢 ❤️
61 |
62 | 感谢所有的贡献者。你们的付出让 OpenInTerminal 更棒了。
63 |
64 | ### 参考项目
65 |
66 | - [jbtule/cdto](https://github.com/jbtule/cdto)
67 | - [es-kumagai/OpenTerminal](https://github.com/es-kumagai/OpenTerminal)
68 | - [tingraldi/SwiftScripting](https://github.com/tingraldi/SwiftScripting)
69 | - [onmyway133/FinderGo](https://github.com/onmyway133/FinderGo)
70 | - [Caldis/Mos](https://github.com/Caldis/Mos/)
71 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | # Created by https://www.gitignore.io/api/macos,xcode,swift
3 | # Edit at https://www.gitignore.io/?templates=macos,xcode,swift
4 |
5 | ### macOS ###
6 | # General
7 | .DS_Store
8 | .AppleDouble
9 | .LSOverride
10 |
11 | # Icon must end with two \r
12 | Icon
13 |
14 | # Thumbnails
15 | ._*
16 |
17 | # Files that might appear in the root of a volume
18 | .DocumentRevisions-V100
19 | .fseventsd
20 | .Spotlight-V100
21 | .TemporaryItems
22 | .Trashes
23 | .VolumeIcon.icns
24 | .com.apple.timemachine.donotpresent
25 |
26 | # Directories potentially created on remote AFP share
27 | .AppleDB
28 | .AppleDesktop
29 | Network Trash Folder
30 | Temporary Items
31 | .apdisk
32 |
33 | ### Swift ###
34 | # Xcode
35 | #
36 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
37 |
38 | ## Build generated
39 | build/
40 | DerivedData/
41 |
42 | ## Various settings
43 | *.pbxuser
44 | !default.pbxuser
45 | *.mode1v3
46 | !default.mode1v3
47 | *.mode2v3
48 | !default.mode2v3
49 | *.perspectivev3
50 | !default.perspectivev3
51 | xcuserdata/
52 |
53 | ## Other
54 | *.moved-aside
55 | *.xccheckout
56 | *.xcscmblueprint
57 |
58 | ## Obj-C/Swift specific
59 | *.hmap
60 | *.ipa
61 | *.dSYM.zip
62 | *.dSYM
63 |
64 | ## Playgrounds
65 | timeline.xctimeline
66 | playground.xcworkspace
67 |
68 | # Swift Package Manager
69 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
70 | # Packages/
71 | # Package.pins
72 | # Package.resolved
73 | .build/
74 |
75 | # CocoaPods
76 | # We recommend against adding the Pods directory to your .gitignore. However
77 | # you should judge for yourself, the pros and cons are mentioned at:
78 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
79 | Pods/
80 | # Add this line if you want to avoid checking in source code from the Xcode workspace
81 | *.xcworkspace
82 |
83 | # Carthage
84 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
85 | # Carthage/Checkouts
86 |
87 | Carthage/Build
88 |
89 | # fastlane
90 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
91 | # screenshots whenever they are needed.
92 | # For more information about the recommended setup visit:
93 | # https://docs.fastlane.tools/best-practices/source-control/#source-control
94 |
95 | fastlane/report.xml
96 | fastlane/Preview.html
97 | fastlane/screenshots/**/*.png
98 | fastlane/test_output
99 |
100 | # Code Injection
101 | # After new code Injection tools there's a generated folder /iOSInjectionProject
102 | # https://github.com/johnno1962/injectionforxcode
103 |
104 | iOSInjectionProject/
105 |
106 | ### Xcode ###
107 | # Xcode
108 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
109 |
110 | ## User settings
111 |
112 | ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
113 |
114 | ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
115 |
116 | ### Xcode Patch ###
117 | *.xcodeproj/*
118 | !*.xcodeproj/project.pbxproj
119 | !*.xcodeproj/xcshareddata/
120 | !*.xcworkspace/contents.xcworkspacedata
121 | /*.gcno
122 | **/xcshareddata/WorkspaceSettings.xcsettings
123 |
124 | # End of https://www.gitignore.io/api/macos,xcode,swift
125 | n
126 |
--------------------------------------------------------------------------------
/OpenInTerminal.xcodeproj/xcshareddata/xcschemes/OpenInTerminalHelper.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
62 | 你可以运行以下命令。这会重置系统设置里的权限。
103 |tccutil reset AppleEvents wang.jianing.app.OpenInTerminal
104 | 请不要在路径中使用反斜线 \ 和双引号 "。
这个问题只发生在第一次启动终端的时候。所以,你可以通过 ⌘W 来关闭终端的窗口,而不是用 ⌘Q 来退出终端。
OpenInTerminal 将会按照以下顺序来打开终端或编辑器:
116 |如果你的自定义应用不能通过运行以下命令正常运行,那么该应用不支持通过 OpenInTerminal 打开。例如,GitHub Desktop:
125 |open -a GitHub\ Desktop ~/Desktop
126 |
62 | Don't Allow button by mistake.No sweat! Just run the following command in your terminal, and it'll reset the permissions in System Preferences.
103 |tccutil reset AppleEvents wang.jianing.app.OpenInTerminalpath.Please do not use backslash \ and double quotes " in the path.
This problem usually occurs when you first start Terminal. Try using ⌘W to close Terminal window, instead of using ⌘Q to quit Terminal.
OpenInTerminal works as the following order:
116 |If your custom application doesn't work with the following command, then it's not supported. For example, GitHub Desktop:
125 |open -a GitHub\ Desktop ~/Desktop
126 |