Skip to content

Ctrl+K “Export page EDN data” says “No page found” for the visible page #1381

Open
logseq/logseq
#13886

Description

@tiensonqin

What happened

The command-palette action Export page EDN data does not copy EDN for the page currently displayed. It shows No page found, and the clipboard remains unchanged.

This reproduces on a native-created local DB page, without importing any data or enabling sync.

Minimal reproduction

  1. In a local DB graph, create a normal page named QA-B-Sentinel.
  2. Add one block: Only in graph B. Save it and leave the page open.
  3. Set a recognizable clipboard value without leaving Logseq: press Ctrl+K, type QA-CLIPBOARD-CONTROL-20261001, press Ctrl+A then Ctrl+C, and Escape. Do not create that page.
  4. Press Ctrl+K and type Export page EDN data.
  5. Select Export page EDN data in the Commands group, not the Create page result, and press Enter.
  6. Observe the No page found warning while QA-B-Sentinel and its block remain visibly open.
  7. Press Ctrl+K and Ctrl+V. The input receives the original QA-CLIPBOARD-CONTROL-20261001 marker, not EDN. Escape without creating a page.

Expected

The command copies the visible page and its content as EDN to the clipboard. This command is a clipboard export; no file-download dialog is expected.

Actual and frequency

  • The warning is No page found.
  • No page EDN replaces the clipboard marker.
  • Reproduced 2/2 times on the one-block native-created page, including a repeat after Ctrl+R.
  • In the reload repeat, clicking into the block before Ctrl+K did not help.
  • The same command also failed on an imported page, using both a mouse click and keyboard selection. Import is not required.
  • Page content remained intact.

Environment

  • Official logseq/logseq master: 3c27f1e875d524cfd76e0dc32687cb1f06a0f82e
  • Development build, Logseq 2.0.1
  • Electron 42.3.0, Chromium 148.0.7778.180
  • Debian GNU/Linux 13 (trixie), x86_64
  • Renderer and Node DB worker both verified at revision 3c27f1e, build time 2026-10-01 08:58:50 UTC
  • Native GUI mouse/keyboard reproduction, separate synthetic local DB graphs, no added plugins or sync
  • Web app not tested because the available browser could not access the local dev app

Runtime evidence and suspected cause

Read-only inspection of the live renderer, with a normal page visible after navigation, returned nil from frontend.util.page/get-current-page-id. The compiled export function and its command action were present.

The following source chain appears to explain the failure; this is a source-based diagnosis, not a tested fix:

  • Ctrl+K opens search after escaping editing and clearing editor state.
  • get-current-page-id reads only the last editor arguments. It does not consult the current route, despite its docstring.
  • export-page-data takes the No page found path when that ID is nil.
  • Command-palette execution invokes the registered action.

Related reports checked

Activity

  1. yuxi-liu-wired commented on Oct 27, 2026

    @yuxi-liu-wired

    Fixed in logseq/logseq#13886 (fix(import): EDN export and import keep pages, history, search and the target block). Its description has the cause and the test that pins it; it fails on current master and passes with the fix.

  2. added 11 commits that reference this issue on Oct 27, 2026
    472a73b
    46c8623
    09ce335
    94696a2
    7a955fb
    d702c27
    7d673a9
    98cb89f
    9d1bf41
    23fa745
    417d7b3
  3. added 16 commits that reference this issue on Nov 11, 2026
    047b91d
    7157376
    e6ec90d
    a59149a
    5ef0a5d
    dec5aa1
    e7ad9ed
    c99bd73
    b1a648d
    e159581
    bb8f5bf
    6231a35
    75b3e6f
    d05a44f
    8e6e586
    daf00b8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions