Re: Is there a way or a URL that links to a line of code in a class file that I can send to another team member?
Re: Is there a way or a URL that links to a line of code in a class file that I can send to another team member?
- Subject: Re: Is there a way or a URL that links to a line of code in a class file that I can send to another team member?
- From: Alex Zavatone <email@hidden>
- Date: Sat, 31 Dec 2016 00:39:48 -0600
On Dec 30, 2016, at 11:43 PM, Rick Mann wrote:
> I've asked for this feature in the past. It should also include source control information, in case you're both looking at different branches.
>
That's even better. I was just thinking of an extension of a basic URL or URL just pretty similar to the current the current NSURL.
Without walking down your path (the default could be don't change the branch) a simple model of my case would assume the whomever opens the URL would have done a pull and is up to date.
Not assuming nested workspaces, the URL could be in sort of backwards notation, so greater levels of detail can just be dropped off the end, from finest level of detail up to the highest needed.
xcode://line number.classFilePathFromSource.inProject.Inworkspace
You copy a lineRef and register the scheme of xcode: with Xcode so that clicking on that URL would open Xcode, then it would be processed in openURL after passing canOpenURL. Then an extension to Xcode simply brings up that line in that class file in that project in that workspace in the assistant editor window. if no workspace is selected, it defaults to the current project's workspace. If no workspace at app, then default to the current project, if no project, default to the currently opened class. But basically walk back down the hierarchy until the specified line is selected in the assistant editor.
These could be mailed or copied and pasted and someone just needs to click on them and have Xcode do the rest. Considering how many teams are remote today, it's an easy way to make sure the other guy is looking at the line you are.
It seems stupidly useful, doesn't it?
>> On Dec 30, 2016, at 13:05 , Alex Zavatone <email@hidden> wrote:
>>
>> In Xcode, if I am looking at line 44 or 45754 of a class file in a project in a workspace, is there any URL or universal resource locator that would allow me to copy a reference from the line I care about in source file I care about in a project in a workspace (or not) and paste this link in to an email or Skype or Slack, have my other team member click on it and have Xcode's editor open to the same file in the same project in the same workspace on their computer?
>>
>> Sort of copying and pasting a line reference, except exactly like that.
>>
>> TY.
>> Alex Zavatone
>> PS: Workspaces are insanely wonderfully awesome. That is all.
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Xcode-users mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
>
> --
> Rick Mann
> email@hidden
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden