Jump to content

rtwld

Member
  • Posts

    0
  • Joined

  • Last visited

Reputation Activity

  1. Like
    rtwld reacted to smarg19 in BibQuery: Search BibDesk from Alfred   
    It is an unfortunate aspect of Alfred workflows that you can't really create a Settings menu to allow for fine-grained control of the setup. But you can jump in and alter any of the code, so I will walk you thru that. In order to alter the behavior of the cite action, you will need to open the actions.py script. Around line 78, you should find this function:

    def export_cite_command(cite_key): """Return LaTeX cite command""" cmd = "\\cite{{{0}}}".format(cite_key) set_clipboard(cmd) return "Cite Command" To achieve your desired behavior (merely exporting the cite key), delete the cmd variable line and change the next line to set_clipboard(cite_key). So, the new function would look like this:
    def export_cite_command(cite_key): """Return cite key""" set_clipboard(cite_key) return "Cite Key" In order to change the order of creators and date, you will need to open the bibquery.py file. Near the bottom is a function called info_format. At the bottom of this function (should be around line 230), you will find what it returns: return [creator_ref, date_final, title_final]. To get your desired result, simply change this to: return [date_final, creator_ref, title_final]. This will ensure that the date is always put first in the results sub-title.
    This is a feature that I am still working on. Unfortunately, it's not simple to implement. I'm still trying to figure out the simplest UI to achieve this. Sorry that it's not done yet.
    Hope this helps some tho,
    stephen
  2. Like
    rtwld reacted to Januz in BibQuery: Search BibDesk from Alfred   
    Thanks for the workflow!
     
    I was previously using Sebastian's workflow, and I still like some things better (some of which Sebastian mentioned):
     
    - I think it would be better not to copy a LaTeX cite-command, but only the cite key as one might want to use a different cite command (citep, parencite, textcite, etc.) or one might want to add several cite keys into the same citation [e.g., xxxx (Smith et al, 2000; Frost, 2001)]
    - I was one of the users requesting that the year should be in front, because I (and most natural scientists) often have citations including several authors
     
    Generally:
     
    - it would be great to be able to select which attachment to open if there exist more than one
     
    Thanks!
×
×
  • Create New...