Skip to content

Commit

Permalink
add a trigger to relaunch Quicksilver
Browse files Browse the repository at this point in the history
close #2399
  • Loading branch information
skurfer committed Oct 16, 2017
1 parent 96a6870 commit 661e2d4
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
1 change: 1 addition & 0 deletions Quicksilver/Code-App/QSController.h
Expand Up @@ -67,6 +67,7 @@
- (NSString *)crashReportPath;
- (void)showDockIcon;
- (void)clearHistory;
- (void)relaunchQuicksilver;

@end

Expand Down
5 changes: 5 additions & 0 deletions Quicksilver/Code-App/QSController.m
Expand Up @@ -788,6 +788,11 @@ - (void)clearHistory
[[[self interfaceController] dSelector] clearHistory];
}

- (void)relaunchQuicksilver
{
[NSApp relaunch:nil];
}

@end

@implementation QSController (Application)
Expand Down
36 changes: 36 additions & 0 deletions Quicksilver/PlugIns-Main/QSCorePlugIn/QSCorePlugIn-Info.plist
Expand Up @@ -35,6 +35,30 @@
<key>ID</key>
<string>QSActivateTextModeTrigger</string>
</dict>
<dict>
<key>set</key>
<string>Quicksilver</string>
<key>applicationScopeType</key>
<integer>1</integer>
<key>keyCode</key>
<integer>12</integer>
<key>enabled</key>
<true/>
<key>modifiers</key>
<integer>1835305</integer>
<key>onPress</key>
<true/>
<key>type</key>
<string>QSHotKeyTrigger</string>
<key>command</key>
<string>QSRelaunchSelfCommand</string>
<key>ID</key>
<string>QSRelaunchSelfTrigger</string>
<key>applicationScope</key>
<array>
<string>com.blacktree.Quicksilver</string>
</array>
</dict>
</array>
<key>CFBundleIdentifier</key>
<string>com.blacktree.Quicksilver.QSCorePlugIn</string>
Expand Down Expand Up @@ -1438,6 +1462,18 @@
<key>name</key>
<string>Show Command Window </string>
</dict>
<key>QSRelaunchSelfCommand</key>
<dict>
<key>command</key>
<dict>
<key>actionID</key>
<string>QSObjCSendMessageAction</string>
<key>directID</key>
<string>QSRelaunch</string>
</dict>
<key>name</key>
<string>Relaunch Quicksilver</string>
</dict>
</dict>
<key>QSObjectHandlers</key>
<dict>
Expand Down
11 changes: 11 additions & 0 deletions Quicksilver/PropertyLists/QSRegistration.plist
Expand Up @@ -165,6 +165,17 @@
<key>name</key>
<string>Clear Quicksilver History</string>
</dict>
<key>QSRelaunch</key>
<dict>
<key>actionClass</key>
<string>QSController</string>
<key>actionSelector</key>
<string>relaunchQuicksilver</string>
<key>icon</key>
<string>Quicksilver</string>
<key>name</key>
<string>Relaunch Quicksilver</string>
</dict>
</dict>
<key>QSInternalURLHandlers</key>
<dict>
Expand Down

0 comments on commit 661e2d4

Please sign in to comment.