mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-24 06:12:45 +03:00
Merge branch 'master' into update-neovim
Conflicts: NvimServer
This commit is contained in:
commit
2d31876e3e
@ -9,9 +9,9 @@ import Foundation
|
||||
import MessagePack
|
||||
import NvimServerTypes
|
||||
import os
|
||||
import RxNeovim
|
||||
import RxPack
|
||||
import RxSwift
|
||||
import RxNeovim
|
||||
|
||||
extension NvimView {
|
||||
final func initVimError() {
|
||||
@ -400,9 +400,10 @@ extension NvimView {
|
||||
// Visual -> Insert
|
||||
// Normal -> Insert
|
||||
// avoid insert -> insert
|
||||
if case self.mode = CursorModeShape.insert, self.lastMode != self.mode, self.activateAsciiImInNormalMode {
|
||||
TISSelectInputSource(self.lastImSource)
|
||||
}
|
||||
if case self.mode = CursorModeShape.insert,
|
||||
self.lastMode != self.mode,
|
||||
self.activateAsciiImInNormalMode
|
||||
{ TISSelectInputSource(self.lastImSource) }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -8,11 +8,11 @@ import Cocoa
|
||||
import Commons
|
||||
import MessagePack
|
||||
import os
|
||||
import RxPack
|
||||
import RxNeovim
|
||||
import RxPack
|
||||
import RxSwift
|
||||
import Tabs
|
||||
import SpriteKit
|
||||
import Tabs
|
||||
|
||||
public enum FontSmoothing: String, Codable, CaseIterable {
|
||||
case systemSetting
|
||||
@ -25,11 +25,7 @@ public protocol NvimViewDelegate: AnyObject {
|
||||
func isMenuItemKeyEquivalent(_: NSEvent) -> Bool
|
||||
}
|
||||
|
||||
public final class NvimView: NSView,
|
||||
UiBridgeConsumer,
|
||||
NSUserInterfaceValidations,
|
||||
NSTextInputClient
|
||||
{
|
||||
public final class NvimView: NSView, NSUserInterfaceValidations, NSTextInputClient {
|
||||
// MARK: - Public
|
||||
|
||||
public static let rpcEventName = "com.qvacua.NvimView"
|
||||
|
@ -11,38 +11,8 @@ import os
|
||||
import RxPack
|
||||
import RxSwift
|
||||
|
||||
protocol UiBridgeConsumer: AnyObject {
|
||||
func initVimError()
|
||||
func resize(_ value: MessagePackValue)
|
||||
func clear()
|
||||
func modeChange(_ value: MessagePackValue)
|
||||
func modeInfoSet(_ value: MessagePackValue)
|
||||
func flush(_ renderData: [MessagePackValue])
|
||||
func setTitle(with value: MessagePackValue)
|
||||
func stop()
|
||||
func autoCommandEvent(_ value: MessagePackValue)
|
||||
func ipcBecameInvalid(_ error: Swift.Error)
|
||||
func bell()
|
||||
func cwdChanged(_ value: MessagePackValue)
|
||||
func colorSchemeChanged(_ value: MessagePackValue)
|
||||
func defaultColorsChanged(_ value: MessagePackValue)
|
||||
func optionSet(_ value: MessagePackValue)
|
||||
func setDirty(with value: MessagePackValue)
|
||||
func rpcEventSubscribed()
|
||||
func event(_ value: MessagePackValue)
|
||||
func bridgeHasFatalError(_ value: MessagePackValue?)
|
||||
func setAttr(with value: MessagePackValue)
|
||||
func updateMenu()
|
||||
func busyStart()
|
||||
func busyStop()
|
||||
func mouseOn()
|
||||
func mouseOff()
|
||||
func visualBell()
|
||||
func suspend()
|
||||
}
|
||||
|
||||
final class UiBridge {
|
||||
weak var consumer: UiBridgeConsumer?
|
||||
weak var consumer: NvimView?
|
||||
|
||||
init(uuid: UUID, config: NvimView.Config) {
|
||||
self.uuid = uuid
|
||||
|
@ -1,6 +1,7 @@
|
||||
# Next
|
||||
|
||||
* Add `VimRRefreshFileBrowser` and `VimRRevealCurrentBufferInFileBrowser` functions. Thanks @jaanauati for the PR!
|
||||
* Include `libintl` again.
|
||||
|
||||
# 0.41.2-20220628.220813
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user