Skip to content

Note: Pressing Enter mid-note replaces the thought text with part of the note #6001

Open

Description

@BayuAri

Steps to Reproduce

- aaa bbb ccc ddd
  1. Set the cursor on aaa bbb ccc ddd.
  2. Note (CmdAltN, or swipe →↓←→).
  3. Type eee fff ggg into the note.
  4. Place the caret after eee in the note.
  5. Press Enter.

Current Behavior

The thought text is replaced with the text before the caret, and the text after the caret becomes a new thought:

- eee
  - =note
    - eee fff ggg
- fff ggg
image.png

Expected Behavior

In this case

The thought and its note should be unchanged, and a new empty thought should be created below aaa bbb ccc ddd with the cursor on it:

- aaa bbb ccc ddd
  - =note
    - eee fff ggg
- 

In general

Pressing Enter in a note should never change the text of the thought or the note, wherever the caret is in the note. It should create a new empty sibling below the note's thought and move the cursor to it.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions