Skip to content

Drag-and-Drop Photos #7

@polyglot-jones

Description

@polyglot-jones

I'm hoping I'll find that it's possible for a ST extension to detect a drop. If so, my idea is to see if the item being dropped is a photo and then compose an appropriate image:[] macro call. Furthermore, if there is an :imagesdir: attribute defined and the photo is being dragged in from outside of that directory, then it would copy the photo there first and then point to the copy instead of the original.
The tricky part will be if the :imagesdir: is not in the current file, but in an include:[] file.
I guess I could just look to see if either ./images or ../images exist, and assume that.
I'm not sure yet how I'll decide what type of object is being dragged in (probably by the extension with a configurable list somewhere).
If the object being dragged in is not an image, then what? Just compose an include:[] for it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    💡 enhancementNew feature or request🔬 researchIssue requires further researching⭐ ST APITopic: Sublime Text API

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions