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:
parent
7871eddd63
commit
5bcd6299e2
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user