From 6763406fe51444dde5ab0eaaff5621852029ec2a Mon Sep 17 00:00:00 2001 From: Adam Strzelecki Date: Mon, 13 Aug 2012 20:36:50 +0200 Subject: [PATCH] Bind Opt+F1 to show bundle item popup. --- Applications/TextMate/resources/KeyBindings.dict | 1 + Frameworks/OakTextView/src/OakTextView.mm | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/Applications/TextMate/resources/KeyBindings.dict b/Applications/TextMate/resources/KeyBindings.dict index be6ec882..e140a3eb 100644 --- a/Applications/TextMate/resources/KeyBindings.dict +++ b/Applications/TextMate/resources/KeyBindings.dict @@ -30,6 +30,7 @@ "@\UF728" = "deleteToEndOfLine:"; "~\UF705" = "showContextMenu:"; + "~\UF704" = "showBundlesMenu:"; "^s" = "incrementalSearch:"; "^w" = "selectWord:"; diff --git a/Frameworks/OakTextView/src/OakTextView.mm b/Frameworks/OakTextView/src/OakTextView.mm index 40b79ff7..2f783586 100644 --- a/Frameworks/OakTextView/src/OakTextView.mm +++ b/Frameworks/OakTextView/src/OakTextView.mm @@ -1507,6 +1507,12 @@ static void update_menu_key_equivalents (NSMenu* menu, action_to_key_t const& ac [self setShowLiveSearch:YES]; } +- (IBAction)showBundlesMenu:(id)sender +{ + OakDocumentView* documentView = (OakDocumentView*)[[self enclosingScrollView] superview]; + [documentView performSelector:@selector(showBundleItemSelector:) withObject:nil]; +} + - (IBAction)findNext:(id)sender { if(liveSearchViewController)