Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won

  1. My initial attempt at an Anki workflow. More to come after boards (have to put away addicting things such as Alfred ). I welcome any and all suggestions. Download, GitHub, Packal. Requirements: Alfred Anki Commands: :anki :aset :apath Anki Terminology: Collection = Group of Decks Notes = Collection of Facts Cards = Representation of Facts A note has a one to many relationship with cards, while a card can have only one associated note. Custom Dark Theme: Cards (notes) created from the workflow use this theme. Once the first card is created (from within workflow) the th
  2. I appreciate the demo. Thank you for that. I'm going with the leveled approach for the "drill-down". The easier the workflow is to navigate the more I use it, so usability and functionality are my top concerns. In the Alfred-Workflow readthedocs tutorial you use argparse, but I've noticed in many of you workflows you use docopt. What's the advantage? Also, in one of my tests I chained a script filter to a run script which saves cached_data before calling a trigger. Its working ok, but is this disadvantageous? It won't be used too often, as I'm shooting for leveled navigation, but
  3. So, as always it seems, I need to dig a little deeper before asking questions. My first question is outlined, in detail, in the Alfred-Workflow docs under Persistent Data. Please disregard question 1. I'm not a programmer, so I'm really looking for a way to think about structuring this project. Though, I'm sure its hard to say given that I don't have more information regarding the desired goal. I'm trying to prevent a complete rework after I'm months into the project, but then again, that may be just what I need to actually learn something.
  4. I have a few questions regarding workflow structure, storage, and python how-to's. Anki is a flashcard program, it is written in python, and has a sqlite database. 1. In order to connect to the database I need to supply a path. Since I'm using the Anki module alone (without anki's version of PyQt, aqt), I have to supply the path manually. The way I'm doing this is rather costly, and I would like to "store" the path after a successful connection is made, so further instances of the workflow have access to and use this path. Below, I've covered the most likely paths to Anki, but at a
  5. Result from terminal. Is this my issue? : drlulz$ env -i runanki env: runanki: No such file or directory
  6. I have an executable located at ~/Documents/anki/runanki echo $PATH = /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin I created an alias in .bash_profile, but I know from searching that Alfred doesn't load the local environment. I would like to call runanki from a run script, but can't figure it out. I don't really care about using the alias in Alfred. Have tried the following, all of which work in the terminal. What is my hangup? /Users/drlulz/Documents/anki/runanki cd ~/Documents/anki runanki shopt -s expand_aliases if [ -f "${HOME}/.bash_profile" ] ; then s
  7. GitHub link is broke, remove the semicolon it should work.
  8. The version I'm using was downloaded last week from Packal. When I type "pocket wf:reset" and press return nothing occurs visibly, its is as if its waiting for an argument. I assume it would prompt me to reauthorize after running the reset?
  9. Sometimes calling the workflow produces no results when it did previously. If I delete com.fniephaus.pocket from Keychain and run the workflow again everything is fine. Is there something I can do to prevent this behavior?
  10. Possibly you should require an IQ test on certain workflows. Maybe a secret sub-forum where people like me can't access. In my haste I forgot to install pandoc. I guess I thought it was a web service, I'm not sure what I was thinking. Apologies.
  11. (dp0Voutputs p1 (lp2 (dp3 Vdescription p4 VPortable Document Format p5 sVarg p6 Vpdf p7 sa(dp8 g4 Vnative Haskell p9 sg6 Vnative p10 sa(dp11 g4 VJSON version of native AST p12 sg6 Vjson p13 sa(dp14 g4 Vplain text p15 sg6 Vplain p16 sa(dp17 g4 Vpandoc\u2019s extended markdown p18 sg6 Vmarkdown p19 sa(dp20 g4 Voriginal unextended markdown p21 sg6 Vmarkdown_strict p22 sa(dp23 g4 VPHP Markdown extra extended markdown p24 sg6 Vmarkdown_phpextra p25 sa(dp26 g4 Vgithub extended markdown p27 sg6 Vmarkdown_github p28 sa(dp29 g4 VreStructuredText p30 sg6 Vrst p31 sa(dp32 g4 VXHTML 1 p33 sg6 Vhtml p34 sa
  12. Pandoctor 1.0.5 Alfred 2.6 (374) Starting debug for 'Pandoctor' [ERROR: alfred.workflow.action.script] 10:51:12 pandoctor.py:1206 DEBUG {u'<argument>': u'/Users/drlulz/Desktop/Untitled.md', u'<flag>': u'in_path', u'config': False, u'help': False, u'launch': False, u'run': False, u'search': False, u'store': True} 10:51:12 workflow.py:940 DEBUG Loading cached data from : /Users/drlulz/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.hackademic.pandoctor/runner.cache 10:51:12 workflow.py:940 DEBUG Loading cached data from : /Users/drlulz/Library/C
  13. Not sure what I'm doing wrong. I ran dr:config Now trying to convey .md to mediawiki. After selecting output format I get Error in workflow 'com.academic.pandoctor' with subtitle u'options'.
  • Create New...