-
-
Notifications
You must be signed in to change notification settings - Fork 838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apple Spolight search is not recognized as frontmost application #3794
Comments
I managed to mitigate this problem in a following way:
Which basically keeps spotlight state in that That overall works for me. Problem is 2x When it very rarely does not work, I just have to click more escapes to clean everything. My use case is a bit different - I want to leave vim mode in one app, and make hjkl back to normal in spotlight. But I guess overall approach to your case may be same. Some snippet if it may help: {
"conditions": [
{
"bundle_identifiers": [
"^com\\.tinyspeck\\.slackmacgap$"
],
"type": "frontmost_application_if"
},
{
"name": "slack-vi-mode",
"type": "variable_if",
"value": true
},
{
"name": "slack-vi-mode-spotlight",
"type": "variable_unless",
"value": true
}
],
"from": {
"key_code": "spacebar",
"modifiers": {
"mandatory": [
"command"
]
}
},
"to": [
{
"set_variable": {
"name": "slack-vi-mode-spotlight",
"value": true
}
},
{
"key_code": "spacebar",
"modifiers": [
"command"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"bundle_identifiers": [
"^com\\.tinyspeck\\.slackmacgap$"
],
"type": "frontmost_application_if"
},
{
"name": "slack-vi-mode",
"type": "variable_if",
"value": true
},
{
"name": "slack-vi-mode-spotlight",
"type": "variable_if",
"value": true
}
],
"from": {
"key_code": "escape"
},
"to": [
{
"set_variable": {
"name": "slack-vi-mode-spotlight",
"value": false
}
},
{
"key_code": "escape"
},
{
"key_code": "escape"
}
],
"type": "basic"
},
{
"conditions": [
{
"bundle_identifiers": [
"^com\\.tinyspeck\\.slackmacgap$"
],
"type": "frontmost_application_if"
},
{
"name": "slack-vi-mode",
"type": "variable_if",
"value": true
},
{
"name": "slack-vi-mode-spotlight",
"type": "variable_if",
"value": true
}
],
"from": {
"key_code": "return_or_enter"
},
"to": [
{
"set_variable": {
"name": "slack-vi-mode-spotlight",
"value": false
}
},
{
"key_code": "return_or_enter"
}
],
"type": "basic"
}, |
Description
Examples
Showing EventViewer not responding to Spotlight
Showing EventViewer tracking Finder as frontmost application before opening spotlight
Showing Event Viewer still tracking Finder as frontmost application with spotlight open again
To Reproduce
My Goal
I want to map
ctrl+n
andctrl+p
to my up and down arrows inside of spotlight. So far the best I've come up with is a global mapping with an exception for my terminal programs (Already using those shortcuts for VIM stuff). This works most of the time, unless I open spotlight on top of a terminal window. Terminal (Iterm2, actually) stays active as my frontmost application, disabling my up / down keying within spotlight.My current config to accomplish this goal
Again, this works unless I try and use the spotlight search on top of a terminal window (which I do often)
Ideal Outcome
The text was updated successfully, but these errors were encountered: