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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default ObsidianPasteImg to normal p if there is no image in the buffer #549

Open
DRKolev-code opened this issue Apr 23, 2024 · 1 comment

Comments

@DRKolev-code
Copy link

馃殌 The feature, motivation and pitch

Hi, I would like to map ObsidianPasteImg to p inside markdown files. I wanted to execute ObsidianPasteImg if there is an image in the buffer or just use the normal p behaviour otherwise. Would it be possible to either expose clipboard_is_img or implement this behaviour through ObsidianPasteImg itself? If the latter, maybe it could be with a setting in the config?

Alternatives

No response

Additional context

No response

@epwalsh
Copy link
Owner

epwalsh commented Apr 30, 2024

Hey @DRKolev-code, happy to accept a PR for exposing clipboard_is_img.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants