Jump to content

cdpath

Member
  • Posts

    23
  • Joined

  • Last visited

Reputation Activity

  1. Like
    cdpath got a reaction from Raahul in Anki Search Workflow   
    Anki Search Workflow
     
     
    Download: https://github.com/cdpath/anki_search/releases/tag/v0.0.3
    GitHub: https://github.com/cdpath/anki_search
     

     
    Setup
    Front Fields: Specify fields for search results' titles. Back Fields: Specify fields for search results' subtitles.  
    Usage
    Use as to search notes. Hit `ENTER` to open results in the Anki Browser. Use at to list all tags.  
    Dependencies
     
    Python3 Anki Addon: Anki-Connect https://github.com/FooSoft/anki-connect
  2. Thanks
    cdpath got a reaction from sin in Anki Search   
    ScreenShot
     

     
    GitHub
     
    -  https://github.com/cdpath/anki_search
     
    Why
     
    - Searching in Anki Desktop breaks for a long time, so I make this helper workflow as a workaround.
     
    Thanks
     
    @deanishe for great https://github.com/deanishe/alfred-workflow
  3. Like
    cdpath got a reaction from suliveevil in Anki Search   
    ScreenShot
     

     
    GitHub
     
    -  https://github.com/cdpath/anki_search
     
    Why
     
    - Searching in Anki Desktop breaks for a long time, so I make this helper workflow as a workaround.
     
    Thanks
     
    @deanishe for great https://github.com/deanishe/alfred-workflow
  4. Like
    cdpath reacted to Mr Pennyworth in Better Dictionaries   
    Better Dictionaries

    Better search and live previews for built-in macOS dictionaries.
     
    This post might be outdated, link to up-to-date README
    Download the latest version: Better.Dictionaries.alfredworkflow

    Features
    IPA (phonetic) pronunciations:
    Press ⌘↩ to hear the pronunciation. In-Alfred live previews with colors that
    automatically adapt to Alfred's theme:
    Reverse search:
    More relevant search results:  
    left: macOS/Alfred built-in search, right: BetterDict
    If one word has multiple, unrelated meanings with different
    origin, they are showed as diffrent entries
    (in the above example, see "arm" has two entries at the top) Import any compatible dictionary

    Setup

    After importing the workflow,
    first type .setup-better-dictionaries into Alfred
    and follow the instructions for granting permissions.

    Importing a Dictionary

    After setup, type .dict-import into Alfred.

    Select the dictionary you want to import.  

    Dictionary-specific Keywords and Hotkeys

    After a dictionary is imported, a script filter and a hotkey trigger
    is automatically created into the workflow editor. 
    Freshly-installed workflow without any imported dictionaries:
    Two hotkeys and keyword triggers each automatically added after importing
    two dictionaries. They come pre-labeled with dictionary names:
    This allows you to assign hotkeys and keywords for specific dictionaries.
    For example, below you can see how I have manually assigned keywords
    thesaurus and defn to the thesaurus and dictionary respectively.
    In addition, I can trigger the dictionary search using ⌃⌥⌘D.  


    Word Lookup

    You can use the hotkeys/keywords created above for directly searhcing
    specific dictionaries. That's the recommended way for dictionaries
    that you use frequently.

    For the infrequently used dictionaries for which you haven't assigned
    any hotkeys/keywords, follow this:
     1. Type lookup into Alfred. You'll see a list of all dictionaries
        imported into BetterDict.
       
     2. Select the dictionary to search, and type the search query.

    Notes and Warnings
    [*]Importing a dictionary could take as much as 30 minutes
    on old machines or if there's significant CPU activity from other apps.[*]After each mac restart, for the first time when you run
    the workflow, expect a comparatively slower search.
    Subsequent searches should be instant.[*]This workflow takes a LOT of space on disk. Take a look at the comparison:

     

    # Built-in dictionaries Oxford Thesaurus:   7 MB Oxford Dictionary: 36 MB # After importing into BetterDict Oxford Thesaurus:     101 MB (html files) Oxford Dictionary:    442 MB (html files) Search index for two: 730 MB (apart from html)

     

    Known IssuesThe workflow doeesn't work if the theme is Alfred Classic.  
    If you must use that theme, duplicate that theme and use the
    duplicated one.
  5. Like
    cdpath got a reaction from 40-02 in Convert to markdown table   
    Copy table from Numbers and paste as markdown table.
     
    Download
     
    GitHub Repo
     
    Acknowledgement
     
    1. https://github.com/schmijos/html-table-parser-python3
    2. https://stackoverflow.com/questions/2545289/getting-rtf-data-out-of-mac-os-x-pasteboard-clipboard
  6. Like
    cdpath got a reaction from vitor in Link to Markdown   
    Why I need this?
    Sometimes I just found myself repeating copy/paste URL and title from Chrome to write some reference.  Even worse, different apps accept different format (Yeah, I'm talking about you, Ulysses!).
     
    So here is my workflow:
     

     
    Usage
     
    Just type 
    \\u in your favorite app.
     
    Problem
    1. I tried and failed to use matches regex in Filter Utility, that's why I have to hard coded three (and maybe more in the future) filter.
    This is my failed attempt: 
    Notes|Evernote|scapple 2. The else (marked in red in screenshot above) is not actually fallback, which may lead to some bug. 
    # What I thought it would be if condition_a: ... elif condition_b: ... elif condition_c: ... # How it actually works if condition_a: ... if condition_b: ... if condition_c: ...  
    Download
     
    https://github.com/cdpath/alfred_workflows/releases/tag/0.1.1
     
  7. Thanks
    cdpath reacted to GuiB in Snippet Triggers with parameter   
    To expand @deanishe suggestion, there's a "Snippet Triggers - Getting Started" example in Alfred that would show you some ways to do what you want (especially the "hellomsg" snippet). Look into "Alfred Preferences -> Workflows -> [+] -> Getting Started -> Snippet Triggers".
  8. Thanks
    cdpath reacted to deanishe in Snippet Triggers with parameter   
    Not as part of the snippet, no. Use a Keyword element to enter the parameter after the Snippet Trigger fires.
  9. Thanks
    cdpath reacted to deanishe in Edit clipboard within MacVim   
    Couple of suggestions:


    The source code of your workflow isn't in the repo, only the Python script it uses. That makes it hard for people to make pull requests. Why don't you use the /usr/local/bin/mvim -f <filepath> command to open the file? This waits until the user closes the window, so you know when the user has actually finished editing the file.

     
×
×
  • Create New...