Skip to content

"deep" export to email (or copy-paste) #935

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

Open
berteh opened this issue Jan 12, 2023 · 8 comments
Open

"deep" export to email (or copy-paste) #935

berteh opened this issue Jan 12, 2023 · 8 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@berteh
Copy link

berteh commented Jan 12, 2023

Is your feature request related to a problem? Please describe.
exporting some portion of Org to anothe app is tedious in Organice on desktop. I would like to be able to copy-paste multiple nodes (headers) at once.

Describe the solution you'd like
Some nice feature would be a "deep" export to clipboard (or extending current "export to email"): if the node is collapsed "copy/export" only its header, if node is expanded "copy/export" its title, description, notes and children nodes recursively to clipboard. export format would be simple (rich) HTML if possible, ORG otherwise.

Describe alternatives you've considered
Nowadays i open the Org file in Sublime, then copy-paste manually.

@munen
Copy link
Collaborator

munen commented Jan 13, 2023

Sure, it is possible to do so. We already have email export functionality, but it's scoped to the current headline. Changing the current logic to recursive export will give you the nested headlines.

Note, your proposed feature is a subset of this ticket: #142

Exporting to HTML is a separate topic - the implementation of the organice org mode parser has no functionality to export to HTML. There is always an option to get another dependency, but I'd personally be careful to add it.

Are you interested in working on your proposed issue?

@munen munen added enhancement New feature or request good first issue Good for newcomers question Further information is requested labels Jan 13, 2023
@berteh
Copy link
Author

berteh commented Jan 13, 2023

I could look into it. No promises yet as I don't have much time at the moment... but really need the feature ;)
Would start with deep export to text/raw only first. But I don't have an easy way to deploy a dev server.

Is there any easy option for online editing code and running a fork ?

I saw some hints for exporting other elements in method below. Which ones should I export or not ? token/propertie/tags/schedule ?

What is the recommended way/methods to traverse children headers ?

As for (maybe, afterwards) HTML export:

  • What would be your recommended way to convert orgmode > html without writing a parser from scratch ?
  • What would be the best way to generate an email with both rich html body and raw text body (for client compatibility) ?

@munen
Copy link
Collaborator

munen commented Jan 15, 2023

Is there any easy option for online editing code and running a fork ?

Here's the documentation on how to develop on organice:

https://organice.200ok.ch/documentation.html#development

What is the recommended way/methods to traverse children headers ?

Using ImmutableJS.

What would be your recommended way to convert orgmode > html without writing a parser from scratch ?

Nothing that I'm aware of. We're in the process of writing such a parser (https://github.com/200ok-ch/org-parser), but it's not ready, yet.

What would be the best way to generate an email with both rich html body and raw text body (for client compatibility) ?

Dunno.

@munen munen removed the question Further information is requested label Jan 15, 2023
@munen
Copy link
Collaborator

munen commented Jan 28, 2023

I have created a PR with the necessary boilerplate: #939

@gamberoillecito
Copy link

Hello, is there any update on this? I see the pull request still has some tests which have not completed yet.
I think this feature is a must for being able to share work with people

@munen
Copy link
Collaborator

munen commented May 2, 2025

@gamberoillecito Happy to hear you think this is a must feature! You are welcome to continue working off the boilerplate that I have created for people wanting this feature. I'll be happy to help with testing and documentation, as well. Would you like the ticket assigned to you?

@gamberoillecito
Copy link

Hello, thank you for your reply, at the moment I'm quite busy and most importantly I have very little experience. Could you point me in the right direction so that I can see if this is something I can tackle?

@munen
Copy link
Collaborator

munen commented May 3, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants