Backlight-for-XCode icon indicating copy to clipboard operation
Backlight-for-XCode copied to clipboard

Compatible with XVim

Open GalCohen opened this issue 11 years ago • 6 comments

Great plugin!

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

Thanks!

GalCohen avatar Apr 16 '14 15:04 GalCohen

:+1: please do!

alonecuzzo avatar Apr 22 '14 18:04 alonecuzzo

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.

codeluggage avatar Jun 11 '14 12:06 codeluggage

@codeluggage cool ill try it out thx

alonecuzzo avatar Jun 12 '14 03:06 alonecuzzo

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

GalCohen avatar Oct 10 '14 14:10 GalCohen

  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)

mayqiyue avatar Oct 11 '14 16:10 mayqiyue

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

zenangst avatar Oct 29 '14 21:10 zenangst