Skip to content

Android - continuation of list only works in some cases #5893

@Giraffaman

Description

@Giraffaman

Pre-submission Checklist

  • I have searched existing issues and confirmed this has not already been reported
  • This is a bug report, not a question or configuration request

Memos Version

v0.26.2

Environment Details

  • Deployment: Docker
  • Client: Android - Firefox, Chrome

Steps to Reproduce

  1. Create new memo or edit existing one
  2. insert a list item (-) or todo item (- [ ]) followed by text
  3. press enter to start a new line

Current Behavior

Pressing enter inside a list only continues that list if the previous line in the following cases:

  • the previous line ends in one of !"&/()=?|{}<>[]+*;:° (there could be more, those were tested)
  • the previous line ends in a space

If the previous line ends in other characters than mentioned above, no new list/todo item is inserted on the new line.

Expected Behavior

pressing enter inside a list automatically continues that list, regardless of which character a non-empty line ends in. The only acceptable cases which I can think of where the list continuation can stop is if the user starts a new paragraph (hitting enter twice), or if the previous line only contains e.g. "- " or "- [ ] " indicating an empty list/todo item.

Logs

No entries observed during testing.

Additional Context

#5232 already reported this it seems. Here's some more tested cases:

if newline does not continue the list and the user hits backspace, then enter again, then the list is continued in the following cases:

  • the previous line contains a single alphabetic character
  • the previous line contains a single digit, followed by a single alphabetic character, e.g. "1a"
  • the previous line contains a single alphabetic character, followed by a single digit, e.g. "a1"
  • the previous line contains multiple alphabetic characters, followed by one or more digits

If the user already typed something on the new line without continuing the list, hitting backspace and enter with the cursor at the start of the line will then turn the line into a new list item as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions