limejelly / Backlight-for-XCode

Highlights the current editing line in Xcode
411 stars 72 forks source link

Compatible with XVim #1

Open GalCohen opened 10 years ago

GalCohen commented 10 years ago

Great plugin!

Any chance you could make this work with the xvim plugin? https://github.com/JugglerShu/XVim

Thanks!

alonecuzzo commented 10 years ago

:+1: please do!

codeluggage commented 10 years ago

I'm a huge Xvim fan and user, so I took a quick look at the source to see where the problem might be. By commenting out line 89 (the "else" part of the if-check) the backlight was not removed when returning to normal mode in Xvim.

To do this yourself, simply:

1) Open Backlight.xcodeproj 2) Navigate to AAABacklight.m 3) Go to line 89 and comment it out 4) Build the project 5) Quit and open Xcode again

Not sure if this has any side effects or not, but I'm happily using it this way in Xcode 5.1.1 now.

alonecuzzo commented 10 years ago

@codeluggage cool ill try it out thx

GalCohen commented 9 years ago

Thanks, fixed the problem for me, but now in xcode 6 it doesnt work again... any ideas?

mayqiyue commented 9 years ago

1) Open Backlight.xcodeproj 2) Navigate to AAABacklight.m 3)Find the function: - (void)textViewDidChanged:(NSNotification *)notification; 3)Comment the else case PS:It works for me (Xcode 6GM ,OS X 10.10 Beta 4)

zenangst commented 9 years ago

How does textViewDidChange break Xvim compatibility ? I'm just wondering so that I can apply a fix :)