Jump to content

Jakub Sypiański

Member
  • Posts

    43
  • Joined

  • Last visited

Posts posted by Jakub Sypiański

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

     

     
     
     
    On 5/24/2019 at 1:04 PM, deanishe said:

    If I want to search Google for “world map”, I’m going to start seeing a load of search results for “world” from the workflow whose keyword is “map”, which isn’t what I want at all.

     

    This is exacerbated by the fact that a lot of workflows/users have one-letter keywords.

     

    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.

     

    17 hours ago, deanishe said:

    If sending the same query to different workflows is something you do a lot, why not implement a Hotkey that simulates ⌘←, ⌥⌦? That should cover the majority of cases.

     

    Unfortunately, not possible, because my keywords have between two and five letters and I don't feel like making them all five letter.  

  2. 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).

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

     

    Quote

    WARNING: The script wheel is installed in '/Users/jakub/Library/Python/2.7/bin' which is not on PATH.

    Quote

    WARNING: The script chardetect is installed in '/Users/jakub/Library/Python/2.7/bin' which is not on PATH.

     

    2. Workflow's debugger

    Quote

     

    Starting 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'"}]}

     

     

  4. Am I the only one for whom it doesn't work? Ulysses 15.2, Alfred 3.8.1, workflow 1.0.4.

     

     

    Zrzut ekranu 2019-05-13 o 17.43.53.png

     

     

    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:

     

    Quote

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

     

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

     

     

×
×
  • Create New...