mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-28 02:54:31 +03:00
GH-382 Use vim command output to cd
This commit is contained in:
parent
cc24d91906
commit
e95d0e9a39
@ -99,7 +99,7 @@ public class NeoVimView: NSView, NeoVimUiBridgeProtocol, NSUserInterfaceValidati
|
||||
set {
|
||||
let path = newValue.path
|
||||
let escapedCwd = self.agent.escapedFileName(path)
|
||||
self.agent.vimCommand("silent cd \(escapedCwd)")
|
||||
self.agent.vimCommandOutput("cd \(escapedCwd)")
|
||||
}
|
||||
}
|
||||
|
||||
@ -339,10 +339,6 @@ extension NeoVimView {
|
||||
return self.agent.vimCommandOutput(command) ?? ""
|
||||
}
|
||||
|
||||
public func vimExCommand(_ command: String) {
|
||||
self.agent.vimCommand(command)
|
||||
}
|
||||
|
||||
public func cursorGo(to position: Position) {
|
||||
self.agent.cursorGo(toRow: Int32(position.row), column: Int32(position.column))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user