Jump to content

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

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...