-
Posts
43 -
Joined
-
Last visited
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by Jakub Sypiański
-
-
To search something in Alfred, either through "Web search" or using workflows we write `{prefix} {my query}`, for example `map Warsaw`. In most cases however it would be preferable to write `{my query} {suffix}`.
The advantage is that it is much easier to change the decision about the suffix than about the prefix. So if I search `map Byzantium` and Google Maps can't find it, I can change my decision, invoke Alfred again, press ↑ and change the suffix of search engine just with few keystrokes. At the moment I have to press ↑, go to the beginning of the line and then change the suffix. I can't see any disadvantages. We always know what we are looking for (query), but sometimes we are not sure what we what to look it with. Does the contrary ever happen?
The added value of this solution is that in some workflows with dynamic searches we wouldn't have to add "." at the end of the query to perform the query (which is required now to prevent premature launching of a dynamic search).
-
Great workflow, thank you! It would be even more fantastic to have a version for Libgen's articles.
-
Thank you. I know nothing about python (or programming) and I use terminal very occasionally, but I think I managed to install both pip and requests. However, I have got some errors and the following message in the debugger when I tried to run the workflow.
1. Errors about pip and requests.
QuoteWARNING: The script wheel is installed in '/Users/jakub/Library/Python/2.7/bin' which is not on PATH.
QuoteWARNING: The script chardetect is installed in '/Users/jakub/Library/Python/2.7/bin' which is not on PATH.
2. Workflow's debugger
QuoteStarting debug for 'Zotero'
[2019-05-13 21:00:23][ERROR: input.scriptfilter] Code 1: .
21:00:23 workflow.py:2057 DEBUG ---------- Zotero ----------
21:00:23 connectionpool.py:205 DEBUG Starting new HTTP connection (1): localhost:23119
21:00:23 workflow.py:2074 ERROR 'NoneType' object is not iterable
Traceback (most recent call last):
File "/Users/jakub/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.4F8EF130-28A4-4941-9847-DAFE5ADDF525/workflow/workflow.py", line 2067, in run
func(self)
File "/Users/jakub/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.4F8EF130-28A4-4941-9847-DAFE5ADDF525/search.py", line 32, in main
for i in r:
TypeError: 'NoneType' object is not iterable
21:00:23 workflow.py:2097 DEBUG ---------- finished in 0.024s ----------
[2019-05-13 21:00:23][ERROR: input.scriptfilter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON:
HTTP Request failed
{"items": [{"valid": false, "subtitle": "'NoneType' object is not iterable", "icon": {"path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"}, "title": "Error in workflow 'Zotero'"}]} -
Am I the only one for whom it doesn't work? Ulysses 15.2, Alfred 3.8.1, workflow 1.0.4.
Edit:
1. What I wanted to achieve: to use any of the commands.
2. What happened instead: the error message above pasted, similar to those mentioned in posts from last year.
3. What does debugger show:
QuoteStarting debug for 'Ulysses'
[2019-05-13 20:43:15][ERROR: input.scriptfilter] Code 1: 20:43:15 workflow.py:2225 DEBUG Workflow version : 1.0.4
20:43:15 workflow.py:1628 DEBUG Reading settings from `/Users/jakub/Library/Application Support/Alfred 3/Workflow Data/com.github.robwalton.alfred-ulysses-workflow/settings.json` ...
20:43:15 workflow.py:2509 INFO Checking for update ...
20:43:15 background.py:178 DEBUG Command arguments cached to `/Users/jakub/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data/com.github.robwalton.alfred-ulysses-workflow/__workflow_update_check.argcache`
20:43:15 background.py:182 DEBUG Calling [u'/usr/bin/python', '/Users/jakub/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.7AAE523C-004F-4FC5-AB3D-FC4B2F0E5B7D/workflow/background.pyc', u'__workflow_update_check'] ...
20:43:15 workflow.py:2225 DEBUG Workflow version : 1.0.4
20:43:15 background.py:187 DEBUG Executing task `__workflow_update_check` in background...
20:43:15 ulysses_items.py:59 INFO ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20:43:15 ulysses_items.py:60 INFO ulysses_items.main(wf): args =
Namespace(kind='group', limit_scope_dir=None, query=u'', search_content=False, search_ulysses_path=True)
20:43:15 ulysses_items.py:61 INFO ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20:43:15 workflow.py:2444 DEBUG update_data : None
20:43:15 ulysses_items.py:86 INFO Added iCloud items from '/Users/jakub/Library/Mobile Documents/X5AZV975AG~com~soulmen~ulysses3/Documents/Library/Groups-ulgroup'
20:43:15 workflow.py:2243 ERROR
Traceback (most recent call last):
File "/Users/jakub/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.7AAE523C-004F-4FC5-AB3D-FC4B2F0E5B7D/workflow/workflow.py", line 2236, in run
func(self)
File "ulysses_items.py", line 89, in main
include_sheets)
File "ulysses_items.py", line 149, in parse_ulysses_for_groups_and_sheets
groups_tree = parse_ulysses.create_tree(root_dir, None)
File "/Users/jakub/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.7AAE523C-004F-4FC5-AB3D-FC4B2F0E5B7D/parse_ulysses.py", line 140, in create_tree
child_group = create_tree(join(rootgroupdir, child_groupdir), group)
File "/Users/jakub/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.7AAE523C-004F-4FC5-AB3D-FC4B2F0E5B7D/parse_ulysses.py", line 140, in create_tree
child_group = create_tree(join(rootgroupdir, child_groupdir), group)
File "/Users/jakub/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.7AAE523C-004F-4FC5-AB3D-FC4B2F0E5B7D/parse_ulysses.py", line 140, in create_tree
child_group = create_tree(join(rootgroupdir, child_groupdir), group)
File "/Users/jakub/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.7AAE523C-004F-4FC5-AB3D-FC4B2F0E5B7D/parse_ulysses.py", line 126, in create_tree
assert 'Info.ulgroup' in filelist
AssertionError
20:43:15 workflow.py:2246 INFO For assistance, see: https://github.com/robwalton/alfred-ulysses-workflow
20:43:15 workflow.py:2267 DEBUG Workflow finished in 0.710 seconds. -
I looked on the Internet and on the forum for "install requests (alfred workflow)", but I haven't figured out what it is that I should do. As for the debugger:
Quote[2019-05-13 16:50:06][ERROR: input.scriptfilter] Code 1: Traceback (most recent call last):
File "/Users/jakub/Dropbox/Alfred/Alfred.alfredpreferences/workflows/user.workflow.4F8EF130-28A4-4941-9847-DAFE5ADDF525/search.py", line 5, in <module>
import requests
ImportError: No module named requests
-
15 hours ago, deanishe said:
Please post such comments somewhere more appropriate.
Thank you for pointing it to me, I'm new. But I have no idea where to put it otherwise. There is no general Zotero-related thread. Should I create a new separate thread for this zotero-better-bibtex-alfred workflow?
-
I guess this workflow is supposed to do what you (and me, actually), need. Unfortunately, it doesn't work for me.
-
Thank you! I tried renaming the zipped repo to _.alfredworkflow_, but I haven't figured out that I need to extract and rezip it first. What a pity the workflow itself turns out not to work...
-
I found a workflow on github that I desperately need, but it is not an .alfredworkflow file. What should I do to install it?
-
I have many many custom Web Searches added. It would be very useful to be able to organise them in Alfred into folders in exactly the same way as we can do with Snippets.
-
I'm trying to add text selection as input to the workflow, but my skills seem to be too basic. Is it possible to do it?
-
-
So I guess the answer is no? Are you aware of this problem at Alfred? What can be the reason of this strange behaviour?
-
Dear Alfred,
I often use Bépo keyboard layout (official website in French, Wikipedia in English). It seems that Alfred is not compatible with it (snippets and shortcuts don’t work). Is there a way to fix it?
Cheers,
Jakub
-
1 hour ago, Jkscx said:
I tried making something myself and it works successfully on El Capitan 10.11.6 with Bartender 2. Should work on any Mac (with or without Bartender) as long as Apple doesn't change the Notification Center plist location (I think...).
Yey, it works, thank you so much, Jkscx!
-
None of these versions is working for me. Sierra 10.12.6 in Polish with Bartender 2.
-
Option: suffixes instead of prefixes
in Alfred Feature Suggestions
Posted
I am a bit disappointed by your suggestions but thank you anyway. I already make use of the keyboard shortcuts you mention. But if I didn’t consider it a problem, I would not have asked about the possibility.
I use Web Searches for 184 dictionaries, 34 library catalogues, 11 research tools as well as other things. To this can be added several workflows that are based on search queries. It means that I use Alfred searches in my research several hundred times a day. A huge proportion of this searches is performed through invoking Alfred, returning to the beginning of the line and changing the prefix. This in itself is enough for me to advocate for implementing the optional suffix-model.
The suffix-model would allow not only to modify the search keyword more quickly but also to be able to use all the suggestions. Example: my prefixes for dictionaries are coded as `{;}{first letter of language 1}{first letter of language 2}{first letter fo dictionary’s name}`. For instance: `;aew` for Arabic–English WordReference. It allows me to first choose the language pair and then cycle through all available dictionaries. Now, having suffixes would allow me to use this extremely helpful cycling feature also while the word is already in Alfred search box. Believe me, I never choose a dictionary BEFORE knowing what word I want to look up.
Moreover, having suffixes would allow having a global keyboard shortcut for taking the text selected in Alfred and then choosing what to do with it, while taking advantage of keyword cycling and their easy replacement.
My prefixes always start with a special sign (for example `;` for dictionaries), so this problem can hardly ever occur. And one's keywords are all one letter, no problem, I propose this as an optional feature.
Unfortunately, not possible, because my keywords have between two and five letters and I don't feel like making them all five letter.