After I modify the page name, the page will be empty.
Could you please provide some more information? Like:
- What was the page name first, and what did you change it into?
- What kind of content was on the page?
- Did you try to re-index and was the page still empty?
This happened to me too. I was saved by git.
old page name: against overthinking ethics
new page name: why you shouldn’t invent ethics
what kind of content was on the page: plain text, in a shallow outline.
after re-indexing, the page did not exist under either name (!)
git came to my rescue, this time, but ugh, what a nasty editing experience that was!
logseq version: 0.8.15
I’m not sure, but this may be caused by:
- clicking on the page name to rename it
- pressing ctrl-A to select all of the existing page name
– logseq instead selects the page contents, which is not what I expected - not noticing that the page content is selected and noticing that the page is not selected yet, the user tries shift-home to select the page name
- the user presses backspace to delete the current page name and types a new one, and hits return
– logseq deletes the page contents, changes the page name
The obvious bug here is that ctrl-A should not select the page text when the keyboard focus is in the page name box. Indeed, no editing operations when inside the page name should affect the page contents, so deleting the page text when I hit backspace is wrong as well.
To me, this hints at a fundamental problem with how logseq handles keyboard focus. This is something basic and infrastructural that the app seems to unsuccessfully reinvent.