Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow file paths as input #41

Merged
merged 20 commits into from
Mar 1, 2024
Merged

Conversation

HakonHarnes
Copy link
Owner

@HakonHarnes HakonHarnes commented Mar 1, 2024

Related issue

Closes #40.

Summary of changes

  • Moved main logic from init.lua to paste.lua
  • Restructured the code so it can handle file paths and URLs as inputs
  • Implemented logic for embedding local images (via file paths) as Base64
  • Renamed function from pasteImage to paste_image, but kept pasteImage to ensure backwards compatibility
  • Allow file paths or URLs to be passed directly to the paste_image function via the API
  • Simplified the util.execute function
  • Updated tests
  • Updated docs

@HakonHarnes HakonHarnes merged commit 24cbf88 into main Mar 1, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Copy_Images in drag and drop and "normal" copying not working.
1 participant