Added a config.drag_and_drop option which allows the plugin to know if a paste was invoked as a drag and drop action
When getting options using the get_opt function, the code will now first check if we're in drag and drop mode. If we are, we prepend "drag_and_drop." to the key and recursively check if we can find it. If not, we use the default options. This allows the user to override any option under the drag_and_drop options
Moved copy_images and download_images outside of drag and drop, as these are also relevant as "normal" options now that the API is more powerfull
Summary of changes
config.drag_and_drop
option which allows the plugin to know if a paste was invoked as a drag and drop actionget_opt
function, the code will now first check if we're in drag and drop mode. If we are, we prepend "drag_and_drop." to the key and recursively check if we can find it. If not, we use the default options. This allows the user to override any option under thedrag_and_drop
optionscopy_images
anddownload_images
outside of drag and drop, as these are also relevant as "normal" options now that the API is more powerfull