-
Posts
526 -
Joined
-
Last visited
-
Days Won
17
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Everything posted by giovanni
-
Fuzzy search helper for Script Filters
giovanni replied to deanishe's topic in Workflow Help & Questions
thanks again for your feedback @deanishe. I saved the dictionary as JSON instead of CSV and then read it in, which allowed me to ✅ avoid using Alfred-Workflow and ✅ be able to use fuzzy.pl. thanks!!- 19 replies
-
- fuzzy
- fuzzy-search
-
(and 1 more)
Tagged with:
-
Fuzzy search helper for Script Filters
giovanni replied to deanishe's topic in Workflow Help & Questions
awesome, thank you so much! I will try to figure it out.- 19 replies
-
- fuzzy
- fuzzy-search
-
(and 1 more)
Tagged with:
-
Fuzzy search helper for Script Filters
giovanni replied to deanishe's topic in Workflow Help & Questions
here you go! keyword: zzl thank you!! https://github.com/giovannicoppola/paperpAlfred/blob/main/paperpAlfred troubleshooting.alfredworkflow- 19 replies
-
- fuzzy
- fuzzy-search
-
(and 1 more)
Tagged with:
-
Fuzzy search helper for Script Filters
giovanni replied to deanishe's topic in Workflow Help & Questions
will do! just to clarify, fuzzy.py is the only script I am supposed to copy into my own workflow's folder, or are there others?- 19 replies
-
- fuzzy
- fuzzy-search
-
(and 1 more)
Tagged with:
-
Fuzzy search helper for Script Filters
giovanni replied to deanishe's topic in Workflow Help & Questions
very simple, it's one of yours modified some of the items have emojis, perhaps that's the problem? It works well with the 'Alfred filters results' option, but I wanted to add fuzzy filtering. #!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2014 deanishe@deanishe.net # # MIT Licence. See http://opensource.org/licenses/MIT # # Created on 2014-07-03 # Modified from books, to show folders for filtering """Workflow Script Filter to show search results in Alfred.""" from __future__ import print_function, unicode_literals import sys import csv import os import struct from time import time from workflow import Workflow, ICON_INFO, ICON_WARNING from workflow.background import run_in_background, is_running from config import INDEX_DB log = None def main(wf): mylabels=[] with open("FOLDERS_ALL.tsv", "r") as fp: reader = csv.reader(fp, delimiter=b'\t') for row in reader: mylabel, myCount = [v.decode('utf-8') for v in row] toShow = mylabel #log.info (mylabel) wf.add_item(toShow, myCount + " papers", valid=True, arg=mylabel, icon='icon_folder.png') wf.send_feedback() if __name__ == '__main__': wf = Workflow() log = wf.logger sys.exit(wf.run(main))- 19 replies
-
- fuzzy
- fuzzy-search
-
(and 1 more)
Tagged with:
-
Fuzzy search helper for Script Filters
giovanni replied to deanishe's topic in Workflow Help & Questions
Is this still current? I tried it on a simple script returning a JSON list of names and got the following error: File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 382, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded my input is 'as {query}' and I have tried both export query="$1" ./fuzzy.py python myScript.py and export query="{query}" ./fuzzy.py /usr/bin/python myScript.py 🙏 thanks!- 19 replies
-
- fuzzy
- fuzzy-search
-
(and 1 more)
Tagged with:
-
After launching a workflow with a hotkey or keyword, If you enter no arguments and hit return -> nothing happens. Is there a way to trigger an event (for example, showing a help page) with that action (ie pressing enter instead of entering an argument)? For example, the user would start the workflow with a hotkey or keyword then press return (instead of entering an argument) to show a help window in large font. thanks! giovanni
-
Dragging file results from Alfred to Finder
giovanni replied to giovanni's topic in Discussion & Help
thanks! that makes sense, I might be remembering adding files to email as attachments, which I do a lot more often. Would there be a way (perhaps in a separate workflow) to add a modifier key, to let the user copy a file to a new location? -
Hi all, I seem to remember that dragging one of Alfred's file results to a Finder's window resulted in a file ˆcopyˆ, but I just tried this and it results in in a file ^move^... has this changed recently, or am I remembering incorrectly? Thanks! Giovanni
-
solved [SOLVED] Accessing Clipboard History
giovanni replied to giovanni's topic in Discussion & Help
that's a brilliant workaround. Thanks!! -
solved [SOLVED] Accessing Clipboard History
giovanni replied to giovanni's topic in Discussion & Help
for the record, this does not change the order as it is shown by the 'viewer hotkey', but the clipboard content is changed... not sure this is the intended behavior? to summarize: I copy string A to clipboard [⌘V will paste string A] I copy string B to clipboard [⌘V will paste string B] I use my ultra-simple workflow to paste {clipboard:1}, which is string A, using the hotkey ⌘⌥V ⌘V will now paste string A, while I was expecting it to paste string B, based on the clipboard history I see using the 'viewer hotkey' thanks again for your help Giovanni -
solved [SOLVED] Accessing Clipboard History
giovanni replied to giovanni's topic in Discussion & Help
👍 🙏 -
solved [SOLVED] Accessing Clipboard History
giovanni replied to giovanni's topic in Discussion & Help
Thank you for getting back to me @vitor! I had missed this setting, cool! However, if my goal is to use a hotkey, the only way I could find to paste {clipboard:1} is to copy to clipboard, and then paste to the front most application. In that case, the history order will be changed. Is there an alternative way to paste to the front most application via a hotkey, without changing the order? Thanks!! Giovanni -
Hi all, I would like to create a shortkey to paste to the front most application the clipboard item before the last. That can be achieved accessing {clipboard:1}, copying to the clipboard, and then selecting 'automatically paste to front most app'. However, that copies the item to the clipboard, therefore making it the last (most recent) item in the clipboard history. Is there a way to access and paste items from the clipboard history without changing the order of the history itself? Thanks! Giovanni
-
"Calculate Anything" by @biatidoes that
- 2 replies
-
- calculator
- calculations
-
(and 1 more)
Tagged with:
-
Thanks! That's what I suspected but I wanted to check. I also realized that one can start typing the search string in Alfred while the object is loading, so that also saves some time. Once loaded, it is pretty fast for subsequent queries. Thanks for your great help as always! Giovanni
- 2 replies
-
- json
- performance
-
(and 1 more)
Tagged with:
-
Hi all, I am working on a workflow which 1) loads a large (43MB) JSON object and then 2) uses Alfred to filter results (with word matching). Alfred currently takes ~3 sec to load the object. Here's my question: given that I am not fetching anything over the web or local network, would it still be beneficial (i.e. would make it faster) if I learn how to cache the JSON object? Or perhaps I should search via script and only serve the results to Alfred? Thanks!! Giovanni
- 2 replies
-
- json
- performance
-
(and 1 more)
Tagged with:
-
Thank you so much @deanishe for posting this. I was looking for a way to quickly query my BibTeX database and your script is perfect. ZotHero is great too, but probably too complex for my needs. I have a quick question, though! Many of my title entries span across multiple lines (see screenshot). Would you recommend to write a script to change the BibTeX file, or is there an easy way to edit the Python script? Or, should I use a Python BibTeX parser? Thanks!! Giovanni
- 14 replies
-
Customize file path appearance in subtext?
giovanni replied to giovanni's topic in Discussion & Help
Hello, I wanted to try again to solve this problem. More generally, is there a way to customize the subtext in the file search results with some other metadata? For example, holding option would show file creation date in the subtext. Thanks!! Giovanni -
I have used OneDrive with Alfred for 2 years. Works great.
-
Thanks! To clarify, I am trying to convert an XML script filter to JSON and I was wondering about the appropriate way to generate dynamically a JSON object containing multiple items (from grep matches), and avoid the trailing comma. thanks again! giovanni
-
Hi @deanishe may I ask what the correct syntax should be? I am trying to learn how to replace XML with JSON in my script filters (mostly serving the output of grep commands, typically multiple matches), and this from the OP seems to me similar to what is provided as an example in Alfred. Thanks for educating us newbies! G.
-
This thread may be of help:
-
Hi, Not exactly what you are after, but the workflow "Dynamic File Search" in the examples will search for files within specific folders. In your case, you would type "work" first, then "tasks" to retrieve the 'tasks' file in the 'work' folder. More info here: https://www.alfredapp.com/blog/tips-and-tricks/how-to-get-the-results-you-want-in-alfred-every-time/ I hope this helps Giovanni