-
Posts
110 -
Joined
-
Last visited
-
Days Won
1
pixelgeek last won the day on March 1 2023
pixelgeek had the most liked content!
Profile Information
-
Location
Edmonton, Alberta canada
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
pixelgeek's Achievements
Member (4/5)
8
Reputation
-
Denis Yu. reacted to a post in a topic: Any docs for theme files?
-
Seems that plugins needing python are not working for me
pixelgeek replied to asgeirtj's topic in Discussion & Help
This sounds as if it might be similar to an issue I ran into recently. Victor had some links to ways to solve my problem that might help you out -
pixelgeek reacted to a post in a topic: Where is Python being called from in Alfred?
-
Where is Python being called from in Alfred?
pixelgeek replied to pixelgeek's topic in Discussion & Help
I see the difference now. Thanks for clarifying that. I'll play around with the Workflow and see if I can get it working the way you suggested. -
Where is Python being called from in Alfred?
pixelgeek replied to pixelgeek's topic in Discussion & Help
So I did some poking around. It appears that Alfred's version of Python is coming from `/Library/Developer/CommandLineTools/usr/bin` and is running Python 3.9 Is there any way to get it to run from where I have Python installed or is that not practical? -
Where is Python being called from in Alfred?
pixelgeek replied to pixelgeek's topic in Discussion & Help
That may have been good advice some time ago but no-one suggests that you do that anymore. That link is to a 13 year old article and modifying the PYTHONPATH is a fairly big no-no now. When I develop python apps I use a .venv but I can't do that for something that runs in Alfred. It is set to External Script. It runs correctly when I do that but if I put the same code in the Script Filter I get the library error. The problem is solved in that I have code that runs but I don't understand how Alfred appears to be accessing a different version of Python or one that is in a different location. -
If anyone is interested, I posted a few comments about the update on my blog https://whatiswrongwithyourdog.netlify.app/posts/hugoupdate/
-
pixelgeek started following Hugo SSG Workflow
-
I have posted a new version of my Hugo SSG Workflow. Hugo is a Static Site Generator written in Go that you can use to set up a static HTML website or blog. The Hugo Workflow has several commands that you can use to make it easier to create and edit content as well as start and stop the integrated web server included in Hugo so you can preview your site and content. The Workflow is available at: https://codeberg.org/lolbat/Alfred-Hugo and is also mirrored at https://github.com/lolbat/Alfred-Hugo-Workflow The Workflow currently has seven different commands built into it. 1. Add: Add a new file 2. Edit: Edit an existing file 3. Start: Start the Hugo server 4. Start - drafts: Start the Hugo server with --buildDrafts enabled 5. Stop: Stop the Hugo server 6. Date: Get a date in the Go format to use in the YAML frontmatter of content. 7. Drafts: List all of the content that are still Drafts If you have seen this Workflow previously the changes in the current version are: v1.0 The feature complete version. With bonus Drafts command. . Changes * Added Drafts command to show any content that is still marked as a Draft post. * Fixed Edit command to run correctly. * Actually fixed the Start Server command. * Rewrote the Edit python code to use the Paths library. * Added requirement to have the python-frontmatter library loaded. Needed to read the YAML frontmatter from the files for the Draft command. If you do try it out let me know if there are any changes you'd like or additions. Edit: Just realised I will need to retake all of those screenshots.
-
I have set my Codeberg repos to mirror to Github. So there will be Github updates within a few minutes of me posting it to Codeberg. The only thing I need to do is to post a Release.
-
Its not really a preference. Its just how I have been using it. 🙂 I was hoping to explain what the confusion was and expand on the use case that was leading to it. It is a bit of an edge case and it is easy to avoid. That said, looking at the second screenshot I posted I think you will agree that there is a lot of room there for a new user (or someone with their own odd usage pattern) to assume that the Workflow isn't running. As I mentioned, I have changed the Keyword and that solves all of the problems. I doubt that many people will run into a similar issue. Thanks
-
I am trying to build a python script that uses the frontmatter library to read some YAML data from files. The library is installed. It shows up in `pip list` and pip will also show the details of the library. Name: python-frontmatter Version: 1.0.0 Summary: Parse and manage posts with YAML (or other) frontmatter Home-page: https://github.com/eyeseast/python-frontmatter Author: Chris Amico Author-email: eyeseast@gmail.com License: MIT Location: /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages Requires: PyYAML Required-by: I tested the code in PyCharm as well before I ported it to Alfred and it ran correctly there. When I drop the code into Alfred I get the following error. I am using the /usr/bin/python3 option Code 1: Traceback (most recent call last): File "/Users/Zac/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/B98FC667-F18E-4119-80F5-A521C67631EC", line 4, in <module> import frontmatter ModuleNotFoundError: No module named 'frontmatter' I moved the script to run externally and that works just fine. When I use `which python3` it shows the correct path. How is Alfred not finding the library if it is installed at the system path for Python? I also do not have Homebrew python installed
-
I actually had it set like that initially but it was suggested to me that this was not an effective way to build the workflow. I did change the keyword to something more distinct but I think that I am going to go back and add a keyword to initialise the Workflow as I liked the way that it seemed to present the data when I was using it. I totally understand that. As a user, what is I see happening is that Alfred is running my Workflow and feeding in results without telling me that it is running my Workflow. Since I still see other potential actions in the window it is slightly confusing. I suspect that this is why I had a Keyword Input to activate the Script Filter initially. I mentioned the Placeholder text earlier as it struck me that Alfred would at least present me with something to indicate that it was working on my Workflow. The Workflow currently uses the keyword `obCol` which I will change as I don't want to stop over the keywords in the Screaming Obsidian Workflow. It appears to run much differently from my perspective If I type `obC` it shows the Workflow as the only option. But I still need to hit return to run it or type the entire keyword. Once the Keyword is entered it runs and shows results. This is the exact same thing that is happening when I had the `col` keyword but the difference is that to the user they only see the data they expect to see. Nothing else. I understand that there is an assumption that you can just keep typing and Alfred changes the results it shows but from a user perspective there is reinforced action of using the return key to activate things. If a user doesn't normally type out all of the keyword but just types enough for it to show and then selects it with a return to "activate it" then they will assume that this is how the app works. The prominent appearance of the return symbol in the result list will serve to reinforce that. So from one use case, having the Workflow run without having to select it and hit return is not standard. I hope that makes sense.
-
So in this particular instance, how does the user tell the difference between it working and it just disappearing? Update: I went back and ran it again and neither the Placeholder Title or Subtext shows when this runs. When I type in a space the rest of the results clear out but I still don't have any feedback that the Workflow did what it was supposed to. Is there something I can do to force Alfred to clear the results and display the Placeholders?
-
It wasn't ever selected though. I type the 'l' character and the 'Create...' Workflow disappears.
-
I recently started using an IRC client on my Mac. I guess I didn't feel 'old school' enough using the terminal. The app's name is Colloquy and it has started to interfere with one of my Alfred Workflows when I try to activate it. So if I activate Alfred and type `co` it will show both options (see first image). The keyword for the Workflow is `col`. When I type `col` the entry for the Workflow disappears (second image). Aside from renaming the Workflow, is there a way to stop this from happening? Or is it a bug?
-
Vero reacted to a post in a topic: Featuring Alfred community members on the blog
-
Featuring Alfred community members on the blog
pixelgeek replied to sepulchra's topic in Discussion & Help
Hi! -
is it possible to open URL in same tab is already exists ?
pixelgeek replied to rob213's topic in Discussion & Help
Depends on your browser. If you are creating the URL you can add a target="new" attribute to the url and see if that works. Where is the URL being generated?