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

[feature request] convert from buffer instead of file #10

Open
digizeph opened this issue Apr 6, 2021 · 4 comments
Open

[feature request] convert from buffer instead of file #10

digizeph opened this issue Apr 6, 2021 · 4 comments

Comments

@digizeph
Copy link

digizeph commented Apr 6, 2021

Hi @tecosaur Thank you for your efforts on this project!

I'd like to see if it is possible to convert a markdown buffer (not a file) to org. The use case is that sometimes I encountered some markdown content online, I'd like to copy the markdown to a emacs buffer, then convert it to orgmode without saving the markdown file first somewhere.

EDIT: realized that this may be more than just markdown mode. I changed the issue title to reflect that.
EDIT2: I think the potential solution is to save the current file to a temporary location with filename suffix determined by the current major mode, then run the import function, then delete the temporary file.

@digizeph digizeph changed the title [feature request] convert from markdown buffer instead of file [feature request] convert from buffer instead of file Apr 6, 2021
@tecosaur
Copy link
Owner

tecosaur commented Apr 6, 2021

Hmmm, this seems like a good idea but would require reworking a fair bit.
A PR would be great, otherwise expect to wait a few weeks-months.

( NB: It's not that much work, I'm just rather busy )

@stefan2904
Copy link

A regular use case I have is to paste/yank some markdown from my clipboard into an org file, so this sounds useful. 👍

@tecosaur
Copy link
Owner

My thought have no changed, but unfortunately neither has the amount of time I have available 😛, there's a good chance of this happening by the end of the year without a PR though.

@aisamu
Copy link

aisamu commented Dec 27, 2023

Gentle 👍🏻 on this one! (There are dozens of us!)

I wondered about this while using the great https://github.com/twlz0ne/separedit.el to edit markdown docstrings containing tables.

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

No branches or pull requests

4 participants