Skip to content

Export multiple highlighted blocks as EDN data #232

Closed

Description

@donalmacanri

Search first

  • I searched and no similar issues were found

What Happened?

The "Export page EDN data" and "Export block EDN data" only exports the title of the current block/page, and does not include any data in the :pages-and-blocks key.

Reproduce the Bug

  1. Place cursor within any block that has nested blocks, or within a page that contains blocks.
  2. Cmd-K > Export page EDN data or Export block EDN data.
  3. Paste the data into a text editor.

Expected Behavior

The exported content includes the current block title/content as well as content of nested blocks in :pages-and-blocks key.

Files

No response

Browser, Desktop or Mobile Platform Information

Mac OS Sonoma, 14.4.1
Arc Browser 1.85.1
Logseq DB test (https://test.logseq.com), 0.10.10

Additional Context

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)

Activity

  1. added
    awaiting-response
    on Mar 17, 2025
  2. logseq-cldwalker commented on Mar 17, 2025

    @logseq-cldwalker
    Contributor

    Hi. I'm not able to reproduce exporting a page not exporting nested blocks. Providing the specific page content you're using would be helpful for reproducing

    "Export block EDN data" only exports the title of the current block

    This is working as intended. If we were to change the implementation to your suggestion then we would also get a bug report for not being able to just export the parent block. It sounds like you want multiple specific blocks on a page to be exported which isn't supported yet. We could implement this by having a command which exports all the highlighted blocks. You could highlight all the children of a block with a keystroke, shift-arrow-down, and then run this command. If that sounds like something that'd be useful I can implement that soon

  3. donalmacanri commented on Mar 18, 2025

    @donalmacanri
    Author

    This is working as intended. If we were to change the implementation to your suggestion then we would also get a bug report for not being able to just export the parent block. It sounds like you want multiple specific blocks on a page to be exported which isn't supported yet. We could implement this by having a command which exports all the highlighted blocks. You could highlight all the children of a block with a keystroke, shift-arrow-down, and then run this command. If that sounds like something that'd be useful I can implement that soon

    That makes sense. And yes, that would be very useful. I think it would also be useful for other export formats (such as export to markdown).

    I'm not able to reproduce exporting a page not exporting nested blocks. Providing the specific page content you're using would be helpful for reproducing

    I just tried to reproduce this, and I wasn't able to either. Feel free to close, I'll let you know if you run into it again.

  4. added
    enhancement
    and removed
    awaiting-response
    on Mar 19, 2025
  5. changed the title [-]Export page/block EDN data does not export nested blocks[/-] [+]Export multiple highlighted blocks as EDN data[/+] on Mar 19, 2025
  6. logseq-cldwalker commented on Apr 4, 2025

    @logseq-cldwalker
    Contributor

    When you select multiple blocks, there's now a bulk action header that pops up. If you click on the the three dots menu and select Copy/ export as, a dialog pops up for different ways to export. In about 10 min on test.logseq.com, there will be an EDN button which handles this issue and guarantees a full export of the selected blocks

    Image

    (such as export to markdown)

    In this same dialog you can already do this with the Text button

  7. logseq-cldwalker commented on Apr 15, 2025

    @logseq-cldwalker
    Contributor

    Closing as I haven't heard back. Feel free to let me know if it doesn't work

  8. donalmacanri commented on Nov 3, 2025

    @donalmacanri
    Author

    Sorry, I didn't see this after - this works nicely now, thank you.

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

Metadata

Metadata

Labels

build-ednenhancementin review

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions