1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-28 02:54:31 +03:00

GH-228 Remove open in tab menu

This commit is contained in:
Tae Won Ha 2016-08-12 15:02:24 +02:00
parent 7871eddd63
commit 5bcd6299e2
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
3 changed files with 2 additions and 18 deletions

View File

@ -101,7 +101,8 @@ extension AppDelegate {
@IBAction func newDocument(sender: AnyObject!) {
self.mainWindowManager.newMainWindow()
}
// Invoked when no main window is open.
@IBAction func openDocument(sender: AnyObject!) {
let panel = NSOpenPanel()
panel.canChooseDirectories = true

View File

@ -87,11 +87,6 @@
<action selector="openDocument:" target="-1" id="zbe-h0-oBM"/>
</connections>
</menuItem>
<menuItem title="Open in New Tab…" keyEquivalent="T" id="u9z-N4-Ksj">
<connections>
<action selector="openInTab:" target="-1" id="OwX-O7-EMJ"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="t9v-Ee-SaA"/>
<menuItem title="Close" keyEquivalent="w" id="DVo-aG-piG">
<connections>

View File

@ -98,18 +98,6 @@ extension MainWindowComponent {
self.neoVimView.open(urls: panel.URLs)
}
}
@IBAction func openInTab(sender: AnyObject!) {
let panel = NSOpenPanel()
panel.canChooseDirectories = true
panel.beginSheetModalForWindow(self.window) { result in
guard result == NSFileHandlingPanelOKButton else {
return
}
self.neoVimView.openInNewTab(urls: panel.URLs)
}
}
}
// MARK: - Font Menu Items