w0lfschild / flashlight Goto Github PK
View Code? Open in Web Editor NEWThis project forked from alexzielenski/flashlight
:mag_right: Enhance Spotlight with plugins on macOS
Home Page: https://www.macenhance.com/flashlight
License: Other
This project forked from alexzielenski/flashlight
:mag_right: Enhance Spotlight with plugins on macOS
Home Page: https://www.macenhance.com/flashlight
License: Other
On OSX Sierra 10.12 with the newest Software updates installed, it doesn't work anymore
mySIMBL is working correctly for different tweaks but not Flashlight
It says the plugin is active but there is no difference in Spotlight no matter what Flashlight plugins I install
Tried full reinstall but don't change anything
Like in Alfred, allow the top result when typing something to instead search the query in default search of default browser unless there is an exact result/historically chosen result.
Hello, sadly this stopped to work after Catalina install :(
Is it planned to update Flashlight for Catalina ?
I hope so.
Thank you sooo much for this.
If you open a music website (e.g. douban.fm) in Spotlight/Flashlight, the music will continue to play in the background even after you clear the search text.
Only way to stop it is to log out your computer, and then log back in.
I am writing a plugin at the moment, it tries to show an alert and loop an alarm sound at the same time.
However, after a couple of repetitions, the alarm sound is cut off.
I believe that this is because flashlight closes the python process, or something similar, because my code works (runs forever until I initiate its termination) when I test it from the command line.
Flashlight has many interesting and useful features thanks to plugins but at the same time I am not going to disable SIP for installing SIMBL.
I think that it would be great to make a simple UI that triggers a search box directly controlled by Flashlight. This would allow to reuse all the great work done by plugin developers in the past.
Best Regards,
Emanuele Ruffaldi
Have mySIMBL installed with no issues. SpotlightSIMBL appears in the Plugins list, and Console.app
logs a "Hello from Flashlight!" message. Other plugins installed via mySIMBL are working fine.
No crashes or anything when installing/uninstalling plugins. Plugins simply don't do anything - installing any plugin, e.g. the Emoji plugin, then searching for an emoji do nothing. Spotlight behaves as if the plugin doesn't exist - or Flashlight isn't working properly.
See how it uses the icon from the second item, spotlight's suggestion, rather that the icon of the plugin I want.
Is there a way for it to always use the app of the plugin? I've noticed that flashlight plugins never get their icons shown in the right of the spotlight window, but I'd love this feature.
Clicking the install button crashes the app completely. Inbuilt commands do work.
This happens no matter which plugin i try.
SIP is disabled, SIMBL is working.
Error log can be found here: https://gist.github.com/leifniem/9db5187913e818d7ebbc1a84b08d6f79
Thank you for your great work in macOS customization :)
Just downloaded the App, and the previews for a lot of plugins work great! The problem I'm hitting is that there seems to be a strange word length limit for running commands, like when I hit "enter" nothing happens, based on the word lengths. The query can be as long as I want, but if any word is past some arbitrary byte data limit (I'm assuming) it just doesn't work anymore.
Example queries that run:
google test
google test test
google test test test test test test test test test test
google aaaaa
google 123456789
google 123456789 123456789
google "{}*&^%$#<>?:"*&^&%$#><>><><><
google ############################
google {}
google {}[
large text: hello world
large text: hello world, and thanks for all the fi
large text: f, hello world
large text: fish, world
large text: fish, world hel
large text: fish, hel world
large text: fish,
large text: ,,
large text: あああ
large text: こんに
large text: こんいち
large text: こんいちは
weather sydney
weather moscow
weather seattle
weather amsterdam
Example queries that do not run:
google testtest
google zzzzz
google 1234567890
google {}{
google {}[]
emoji: smile
emoji: b
emoji:
large text: helloworld
large text: hello world, and thanks for all the fish
large text: hello world, fish
large text: fi, hello world
large text: fish, hello
large text: fish,,
large text: fish,,,,,
large text: ,,,
large text: こんにち
large text: こんにちは
weather Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch
weather bangkok
weather zambia
I don't want to spend all my time testing various combinations of characters that work or don't work, so I hope this short list is enough to debug the problem. I personally do not see the relationship, and I keep discovering new strange combinations of symbols that work or do not.
And again, this is just for running with the enter key. All the previews work just fine, or at least how they are supposed to, the preview for weather is just "Loading... ???" for everything.
I'm on Mojave 10.14.6, SIP disabled.
disabled SIP and installed SIMBL, in Spotlight when typing text someone something
, it shows a preview but won't do anything when I hit the enter. Is there something I missed during the setup?
I've been developing some plugins for Flashlight, and soon at least one of them will be ready to share.
However, I don't know how to actually add my plugin to Flashlight.
I don't find the instructions very clear:
Once you're finished with a plugin, clone our repo, place your bundle in PluginDirectories/1, and we'll upload it to the online directory.
Do you mean fork and then submit a pull request?
All plugins are ok on macOS 10.12.6, but on macOS 10.13, some plugins can work, others can't work.
quick web search lead me to bing and I don't use that thing. HA HA.
Hi there, been using Flashlight on a brand new rMBP 2015, everything updated. Pretty much first thing I did was install mySIMBL and Flashlight - and everything works so far, except for the weather plugin.
"How's the weather in XXX, yy?" returns the following:
Loading
???
Any thoughts?
I’ve had a quick look through the issues but can’t seem to see anyone with a similar problem.
I downloaded and ran v1.2 and the app itself comes up fine, however none of the triggers do anything in spotlight.
Have I maybe missed an installation step?
Thanks in advance for any help!
title
There will be no support moving forward for future macOS releases.
Significant changes have been made to Spotlight in Big Sur add that on top of the fact Flashlight was already partly broken in recent releases, around 10.15.4 and beyond, I've decided to discontinue my efforts in this project. There are also not many users 387 on v1.2 according to analytics.
It will remain open source and anyone can make a pull request if they're able to get some semblance of Flashlight working on macOS 11.0 but at this point Flashlight is dead.
💀
Crash report: https://hastebin.com/izihupatef.go
Flashlight was working fine under Sierra, version 1.1.0 of Flashlight and whatever the latest release of mySimbl was. I upgraded from Sierra to Mojave and Flashlight worked most of the time (occasionally had to disable and reenable because it would bugger up Spotlight results occasionally, but that was typical under Sierra as well.)
I thought that maybe I should update to the new Macforge way of doing things, so I uninstalled both Flashlight and mySimbl and downloaded Macforge and Flashlight again; going through the installation went fine and Macforge shows it is installed, Flashlight shows it is enabled, but now it appears none of my installed Flashlight plugins are working. I just get normal Spotlight results. Launching Flashlight indicates that it is enabled, but entering any of the installed-Flashlight shortcuts I have installed (emoji, weather, wiki, google) seem to work. Again, I'm just getting Spotlight search results.
Any advice? I'm happy to debug it.
I installed your fork of Flashlight on El Capitan and then installed some common plugins like IS IT UP?, SHOW HIDDEN FILES, and many more. None of the plugins seem to work. When I type in Spotlight search, default Spotlight search works. Can you help resolve? TIA!
I saw #35 and made sure to csrutil disable
from the Recovery terminal. Tried reinstalling and restarting a couple of times.
Love Flashlight.
spotlight doesn't search system files and hidden files.
can a plugin to search it be written for flashlight?
Can't open flashlight crashes on launch.
Stacktrace below:
`
Process: Flashlight [73525]
Path: /private/var/folders/*/Flashlight.app/Contents/MacOS/Flashlight
Identifier: com.nateparrott.Flashlight
Version: 1.0.8 (62)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Flashlight [73525]
User ID: 501
Date/Time: 2018-06-20 10:17:47.386 +0200
OS Version: Mac OS X 10.14 (18A293u)
Report Version: 12
Bridge OS Version: 3.0 (14Y664)
Anonymous UUID: AC305FE9-EDFC-B0C0-D329-5EC88BDFFA44
Sleep/Wake UUID: CEE54AB4-9728-4B2C-80D3-74DF2E01864F
Time Awake Since Boot: 77000 seconds
Time Since Wake: 2700 seconds
System Integrity Protection: enabled
Notes: Translocated Process
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
terminating with uncaught exception of type NSException
abort() called
Application Specific Backtrace 1:
0 CoreFoundation 0x00007fff2851e16a __exceptionPreprocess + 197
1 libobjc.A.dylib 0x00007fff54447b10 objc_exception_throw + 48
2 CoreFoundation 0x00007fff28554bdc -[CFPrefsConfigurationFileSource initWithConfigurationPropertyList:containingPreferences:] + 0
3 CoreFoundation 0x00007fff28464a28 -[__NSArrayM insertObject:atIndex:] + 1216
4 AppKit 0x00007fff25ae434b -[NSToolbarItemViewer configureForLayoutInDisplayMode:andSizeMode:inToolbarView:] + 1786
5 AppKit 0x00007fff25ae21b4 -[NSToolbarView _layoutDirtyItemViewersAndTileToolbar] + 976
6 AppKit 0x00007fff25b0e1cb -[NSToolbarView layout] + 54
7 AppKit 0x00007fff262b4f50 _NSViewLayout + 587
8 AppKit 0x00007fff25af0cfa -[NSView _layoutSubtreeWithOldSize:] + 446
9 AppKit 0x00007fff25af0f73 -[NSView _layoutSubtreeWithOldSize:] + 1079
10 AppKit 0x00007fff25af0f73 -[NSView _layoutSubtreeWithOldSize:] + 1079
11 AppKit 0x00007fff25af0f73 -[NSView _layoutSubtreeWithOldSize:] + 1079
12 AppKit 0x00007fff262bad50 -[NSView _layoutSubtreeIfNeededAndAllowTemporaryEngine:] + 1358
13 AppKit 0x00007fff25b0d00b -[NSWindow(NSConstraintBasedLayout) _layoutViewTree] + 148
14 AppKit 0x00007fff25b72797 -[NSWindow(NSConstraintBasedLayout) layoutIfNeeded] + 263
15 AppKit 0x00007fff25b72678 -[NSWindow _setUpFirstResponderBeforeBecomingVisible] + 63
16 AppKit 0x00007fff25b71b21 -[NSWindow _doWindowWillBeVisibleAsSheet:] + 157
17 AppKit 0x00007fff262dbf8a -[NSWindow _reallyDoOrderWindowAboveOrBelow:relativeTo:findKey:forCounter:force:isModal:] + 1445
`
I've tried to build Flashlight myself (I get to the linking stage and the linker dies on missing library/directories for GRMustache, JSSwizzle, LetsMove and Pods) ... I was just trying to modify FlashlightResult.m to use https://github.com/w0lfschild/Flashlight/blob/master/FlashlightApp/FlashlightKit/FlashlightKit/FlashlightResult.m#L54
task.launchPath = @"/usr/bin/env python";
in order to use the Python installed by Macports (or Homebrew or whatever) since the built-in Python for Sierra is 2.7.10 (which doesn't even do TLS 1.2); So I guess my questions are:
Any advice on how to setup to properly build Flashlight given those other dependencies?
Any chance of getting a build that invokes Python using env instead of hard-coding it? I have already updated the Python scripts in Flashlight.app.
EDIT
I remembered how to build Flashlight, but with my changes it still invokes the OS-bundled Python. Is this something that would have to be addressed in mySIMBL?
Thanks &
Cheers,
Toby
It works after I uninstalled both wikipedia plugin and weather plugin. It does not work if I only uninstall one of them. Log here:
Jan 15 03:03:59 MacBook-Pro Squirrel[424]: createSession: com.apple.Spotlight
Jan 15 03:03:59 MacBook-Pro com.apple.xpc.launchd[1] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit
Jan 15 03:03:59 MacBook-Pro Squirrel[424]: setAppOptions: com.apple.Spotlight
Jan 15 03:04:01 MacBook-Pro com.apple.xpc.launchd[1] (com.apple.ReportCrash[3980]): Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.ReportCrash
I'm using macOS 10.12 the newest on Macbook 2016 15'.
It appears Github has disabled your app_updates repo so the latest Flashlight cannot be downloaded.
I couldn't find how to activate it
Hi @w0lfschild !
I've been using Flashlight a lot on High Sierra. I've just made the update to Mojave since I've seen successful installation reports of Flashlight.
But unfortunately, I can't get it to work… Did I miss something ?
I've tried disabling SIP, even if it wasn't require on High Sierra, but it didn't help.
I've also tried uninstalling mySIMBL and Flashlight then reinstall, still doesn't work…
Please help, I can't live without Flashlight !
twitter.com
in Spotlight.twitter.com
in Spotlight.See nate-parrott#570
When using plugins like bing search and baidu search, they tell me to enter to see the results in the browser. But nothing happened after I pressed "enter".
Installed MacForge
Installed Flashlight via MacForge
Installed Plugins (tested many)
No Plugin Results show in Spotlight...
Flashlight worked properly after first installation but after a reboot it stopped working.
On Mojave 10.14.4 and with SIP disabled.
Have tried reinstall both SIMBL and Flashlight
I just tried to install following instructions in readme, but flashlight doesn't work, sometimes it does nothing, and sometimes spotlight freezes. Any ideas?
I have disabled SIP and Flashlight can be invoke in my spotlight.
but many plugins don't work properly:
em, so many plugins (do not run 'run' function, liked can not 'enter'). But they work well in FlashlightTool.
So sorry, I don't know where to find meaningful logs. If needed, please tell me, I will try my best.
I've followed all instructions in this repository and I got Flashlight working. However, suddenly today none of my Flashlight commands are working (none of the commands are found in Spotlight, only standard Spotlight search results).
How do I debug this? Anything I should be looking for in Flashlight, mySIMBL or some logs somewhere?
I propose removal of the inbuilt plugins and moving them all to a separate github repo with numerous members who may accept pull requests. This makes it easier for people to make their own changes and editions + updates to plugins more easily without requiring forking the who of Flashlight, and can make a cleaner, more manageable collection, all together. Somewhat like homebrew and cask.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.