mr-pennyworth / alfred-extra-pane Goto Github PK
View Code? Open in Web Editor NEWRich previews for Alfred script filters
Rich previews for Alfred script filters
Relatively new to alfred coding here, I followed the Configuration instructions to change the json file to show the extra panel on the left, but when I define a word with the native alfred Dictionary feature, I still see the old UI without the extra pane. Am I missing something?
Alfred extra pane hangs for over 20 seconds on first launch while being complete out of alignment. It is also always at 5-15% cpu usage despite being rarely invoked, causing a large than expected drain on battery.
When writing unicode characters (>255) like å
or ñ
the extra pane appears to render them as Latin-1 instead of utf-8.
for instance the alfred script:
echo '{"items":[{"title":"test", "quicklookurl":"~/test.html"}]}'|/Applications/AlfredExtraPane.app/Contents/Resources/scripts/alfred-extra-pane
where ~/test.html
is:
<html>
<body>
<h1>
å
</h1>
</body>
</html>
results in the extrapane panel:
however the alfred quickview renders it correctly as:
Thank you so much for the recent updates, they work wonderfully!
Would it be possible to put the config.json
into the Alfred Preferences folder, maybe instead of a folder in the user library? Reason being that when you use Alfred on more than one device and sync your Alfred Preferences, it's a bit of a hassle to also manually sync the config.json
.
Like, it's not impossible by using something like symlinks. Nonetheless, it would make much more sense to have an Alfred-related config file located in the Alfred Preferences folder, for example as …/Alfred.alfredpreferences/AlfredExtraPane-config.json
.
Using some workflows, such as the Chrome History search, results in the extra-pane opening a URL to a video site like youtube.
Not only do they auto-play (which isn't that big of a deal), but they also by default have audio. Suddenly getting full-blown sounds while going through your browser history is really a bit irritating 🙈
I think as a preview-window, it'd make sense to have any opened URLs be muted?
I'm not really into coding but could you share this in an easy way?
Mostly an aesthetic thing, but would it be possible for the extra pane to have rounded corners, like with the Alfred window itself? My Alfred window having rounded corners and the pane having sharp corners feels somewhat visually unpleasing.
(btw, only noticed today that it works super well with my workflow for Reddit! That was a welcome surprise, thank you so much for this :) )
I'm getting the following error despite having python & python3 installed on my system. How do I change where AlfredExtraPane looks for python? In Monterey 12.3.1 it should be /usr/local/bin/python not usr/bin/python.
./search.sh: AlfredExtraPane.app/Contents/Resources/scripts/alfred-extra-pane: /usr/bin/python: bad interpreter: No such file or directory
I just downloaded the newest release alfred-better-dictionaries, but I've been unable to get the extra pane to show up at all. I can see that the application shows up in Activity Monitor, and I can even watch the cpu usage go up when I use the workflow.
M2 Macbook
macOS 13.6.1
Alfred 5.5 [2257]
alfred-better-dictionaries 0.2.14
I recently opened an issue on the Better Dictionaries repo mr-pennyworth/alfred-better-dictionaries#12 but later found out the problem was actually due to the Extra Pane. I have a dual monitor setup combining my Macbook and an external display. When I unplug the external display, the app seems to work nicely. On the other hand, when the external display is on I have some issues. As I stated on my previews issue, this does not seem to be a problem with the choice of theme.
Better Dictionaries
For example, when I open the Better Dictionaries on my external display, the word preview doesn't show up (as shown on the referred issue)
When I open it on the MacBook screen, the alignment does not seem right.
AsciiMath
When using the AsciiMath workflow, even if I open Alfred on my external display, the LaTeX preview still shows up on my MacBook screen.
alfred-extra-pane/AlfredExtraPane/main.swift
Line 127 in 017d651
This should take alfred.MinX and add alfreds width to it. So that you only draw your program to the right side of alfred. We don't want to draw behind alfred.
x: alfred.minX + alfred.Width
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.