beefon
(Vladislav Alekseev)
1
Is there any way to open a Package.swift and then immediately focus on some source file inside that package? I've tried
$ xed Package.swift Sources/TargetName/File.swift
It opens Sources/TargetName/File.swift in new window when package is not open. If it is already open, then Xcode focuses on source file correctly. I thought could there be any deep link or something like that.
Could you perhaps run them in sequence so that you first run xed . to open the project and then xed …/File.swift to navigate to the file? I.e.
xed . && xed …/File.swift
Perhaps with a sleep in between if it needs time to launch. Hacky, but might work.