Giter VIP home page Giter VIP logo

w0lfschild / flashlight Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexzielenski/flashlight

1.1K 1.1K 56.0 97.36 MB

:mag_right: Enhance Spotlight with plugins on macOS

Home Page: https://www.macenhance.com/flashlight

License: Other

Python 71.00% Objective-C 13.45% HTML 2.91% Objective-C++ 0.77% C++ 0.23% C 0.55% Lex 0.20% Ruby 0.01% Shell 0.01% JavaScript 8.28% AppleScript 0.03% CSS 1.57% Makefile 0.86% Rich Text Format 0.14%
flashlight macos mysimbl plugin spotlight tweak

flashlight's Introduction

Hi there 👋

Anurag's github stats

flashlight's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flashlight's Issues

Terminal Plugin not working

I've seen that you won't be doing any work to fix plugins, but I thought I'd mention this as you've accepted PRs for the terminal one so it should be working, but for me it's not.

screen shot 2016-11-08 at 16 42 03

screen shot 2016-11-08 at 16 42 50

Not working on Big Sur

Installed MacForge
Installed Flashlight via MacForge
Installed Plugins (tested many)
No Plugin Results show in Spotlight...

Update for Catalina

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.

Uses other app's icons in results

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.

Flashlight crashed if I entered `w` as the first word.

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'.

Plugin Repo

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.

Stopped working after Macforge installed on Mojave

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.

Request Timed Out

After pressing Install on any plugin, after a minute or so an error message pops up saying "Request timed out" and the plugin does not get installed.
screen shot 2017-12-14 at 4 18 12 pm

"Enter" does not work

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".

many plugins do not work properly on Mojave 10.14.2

I have disabled SIP and Flashlight can be invoke in my spotlight.

  • System: 10.14.2
  • mySIMBL: 0.7.1
  • Flashlight: 1.1.0

but many plugins don't work properly:

  • slack
  • imessage
  • note
  • ... etc

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.

Cannot Stop Music from Playing

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.

Update Flashlight to use environment Python instead of hardcode /usr/bin/python

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

Duplicate Kill Plugins

screen shot 2017-03-11 at 3 17 20 pm

Why are there two "Kill" plugins? Is there a functional difference between them? Which should be used?

Mac OS 10.3.4

I'm not sure if it is not working or I'm just a noob
SIP is off
MySIMBL is up and running
screen shot 2018-04-01 at 19 31 13
screen shot 2018-04-01 at 19 30 52

But Flashlight says some packages are installed and none of it works, I mean, I have seen previews
installations and there was a toogle ON and OFF, and 1.0.8 doesn't have it ( or it isn't showing up)
screen shot 2018-04-01 at 19 31 32

Can't get it to work on Mojave 10.14.1

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 !

Here are my System Info from mySIMBL :
image

SIMBL install failed! (High Sierra)

Something went wrong, probably System Integrity Protection.

Trying to get Flashlight to work to no avail. SIMBL runs, but will not install. Attaching a screenshot.

screen shot 2018-02-06 at 19 56 31

Search Hidden Files Plugin

Love Flashlight.

spotlight doesn't search system files and hidden files.
can a plugin to search it be written for flashlight?

Some images are not loading

I have some rendering issues with e.g. google maps rendering properly.
Down below are some examples. Can someone help me out?
I'm on Mojave 10.14.5 running Flashlight 1.1.2.

Screenshot 2019-07-03 at 17 49 09

Screenshot 2019-07-03 at 17 50 52

Screenshot 2019-07-03 at 17 55 27

Some plugins are not functional

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.

More options for the Settings API

I am making a plugin that would need a list of checkboxes, and a slider.
How would this be declared in options.json?

Somethings like this:
screen shot 2017-02-17 at 8 51 22 pm
for the list of checkboxes.

Thank you.

Weather plugin does not work

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?

plugin's run function is terminated early

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.

Mac os 10.14 (Mojave) Beta

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
`

It's not working on El Capitan

I just tried to install following instructions in readme, but flashlight doesn't work, sometimes it does nothing, and sometimes spotlight freezes. Any ideas?

Triggering Open URL plugin crashes Spotlight on Sierra

Reproduce

  • macOS Sierra 10.12 (16A323)
  • mySIMBL 0.3.1
  • Flashlight 1.0.3
  1. Install Open URL plugin.
  2. Type twitter.com in Spotlight.
  3. Spotlight crashes and restarts.
  4. Uninstall Open URL plugin.
  5. Type twitter.com in Spotlight.
  6. Normal Spotlight behavior.

Nothing happening after install

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!

Provide a search UI for using Flashlight plugins outside of Spotlight in SIP cases

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

Flashlight commands suddenly not working in 10.12.6 Spotlight

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?

Sierra 10.12 not working anymore

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

How do I add my own plugins?

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?

plugins not working after SIMBL installed

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?

Commands do not run after some word length is hit

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 Llanfair­pwllgwyngyll­gogery­chwyrn­drobwll­llan­tysilio­gogo­goch
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.

Results do not update while typing 10.15.4+

OS: 10.15.4
Verision:
MacForge: 0.14.1(2826)
Flashlight: 1.2.0

截屏2020-04-07 下午4 21 52

The param `20 words` cannot be passed to the plugin immediately. The plugin works fine in debug tool.

截屏2020-04-07 下午4 25 10

Same things happened to all my custom plugins.

These plugins worked in 10.14.

Fallback Searches

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.

Big Sur : The end of Flashlight

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.

💀

Does not seem to work on El Capitan!

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.