mthiesen / Xcode_copy_line

Xcode plug-in to copy/cut the current line when there is no selected text
MIT License
32 stars 8 forks source link

XCode 8.0 #16

Open araid opened 7 years ago

araid commented 7 years ago

I tried updating to 8.0 by just adding the UUID, but it didn't work. Then I read that XCode 8 won't load plugins anymore: https://github.com/alcatraz/Alcatraz/issues/475

Not sure if there's any way to rewrite this a source editor extension... :/

mthiesen commented 7 years ago

Yeah, the Xcode 8 issue is pretty sad. I can understand Apples reasoning behind this step but the collateral damage is severe. This was bound to happen some day, plug-ins where never officially supported.

I am not sure whether one could achieve the same functionality with a source editor extension. I will look deeper into the API when I find the time.

akabab commented 7 years ago

hey @mthiesen, have you looked into it (editor extension) ? wanted to know before going myself

mthiesen commented 7 years ago

So far I didn't. Let me know what you find out.

akabab commented 7 years ago

Hey, I have been experimenting new xcode editor extensions and I have managed to describe the wanted behavior.. yet I need to fallback to original (built-in) copy/cut/paste calls in case there is a selection (selection.lenght > 0). I'm wondering how to trigger those original implementation, any idea?

akabab commented 7 years ago

here you go: https://github.com/akabab/XcodeWeshExtensions/tree/master/XcodeWeshCCP

akabab commented 7 years ago

So I finally managed to reproduce the original behavior and I do fallback to it if there is any selection, so now I can bind it to native keyboard shortcuts, looks like it's working. Developing xcode editor extensions is a pain in the ass, really.. Hope you can try it around and give me some feedback

mretondo commented 7 years ago

Does the extension work in xCode 9?