Open oblitum opened 8 years ago
I'm sorry to hear that. I don't use XVim. I just looked at its source and there's a lot of swizzling. Part of it is in classes instances of are not used in ZEN. This is probably the problem.
I investigated it a little bit and couldn't pinpoint the issue. Only two "swizzled classes" are not used in ZEN - IDEWorkspaceTabController
and IDEEditorArea
. It doesn't look like there's some critical logic...
Thanks for the feedback, no need to rush but if you can get it fixed sometime, I would be very glad. The "swizzled classes" thing is gibberish to me, no idea what it means xD
To add more information, cursor is not visible too when entering distraction free mode, it's visible without XVim.
XVim cursor is an old-style block instead of a vertical bar.
Also, since you don't use XVim, you may not be aware what doesn't work. I opened the issue because none of the editing modes and Vim keybindings were working. For example, ESC seems ineffective to enter "normal mode" and walk around with hjkl keys.
I installed XVim for test's sake. Let's experiment. I think many of vim
users would like to see the distraction free mode they are used to.
Indeed. From searching the web, there seems to be in fact a population of obj-c/swift developers that can't stand xcode and try to code obj-c/swift in vim. Zen-mode with XVim looks much more acceptable =)
I decided not to work on this issue. It would require quite a few changes and could impact stability of the plugin. I'm leaving this open though if someone else wants to take care of it.
I will also describe what I found out here.
=/ OK thanks, I'm willing to work on it if I find any available time.
More info:
XVim compatibility:
IDEEditorArea
. It's a view controller above IDEEditorContext
in stack. It means that it is not used in ZEN since ZEN relies only on IDEEditorContext
.IDEWorkspaceTabController
to perform those modifications. IDEEditorContext
also relies heavily on the tab controller to resolve some dependencies. It is currently mocked using ZENIDEEditorContextDependencyManager
. This class also contains some mocking of IDEWorkspaceWindowController
. This is a mess.
Oh, and to whoever works on this: just ask if you need more info!
I'd love to see this fixed since Distraction Free Mode and Vim kind of go hand in hand!
I had to choose between the two for now and had to stay with XVim :-(
so sad.
Just tried it now that Xcode 7 is supported, it indeed worked, but at the same time disabled any feature of XVim.