Jump to content
averagebarb

largetype: option to show output of a deferred script

Recommended Posts

Seeking the ability to execute and use the results of a script upon triggering a result item's largetype. 

 

This would be particularly useful when the largetype text desired for any result item is time-expensive to pre-compute on a large scale, so it's best to defer it to when the user explicitly requests a particular item's largetype.

 

A simple backwards-compatible way to achieve this could be to support a new "largetypescript" parameter which can contain a bash script.

Example:

largetypescript: {type: "command", command: "/bin/bash python get_expensive_computation_result.py 'selected_item_id'"}

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...