nextcloud / nextcloud/text

Backspace into list item should create hard break - not a second paragraph in the list item

Open
#3,573 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop design enhancement regression ux
Dominant language
JavaScript
Stars
659
Forks
133
Avg merge
1d 20h
Merged PRs (30d)
110

Description

#3568 introduced a new behavior. Now when you press backspace at the beginning of a paragraph it will add a hard break while joining the paragraph with the previous one.
This works nicely in general.

However when in a list and i press enter but then i decide i want to go back to the previous list item I now have to press backspace three times:

  • remove the new list item, end up on a second paragraph in the first
  • join the two paragraphs, now split by a hard break
  • remove the hard break to get into the first line of the list item.

I think it would be nice if backspacing into a list item would directly land you after a hard break rather than in a second paragraph in that list item.

Originally posted by @max-nextcloud in https://github.com/nextcloud/text/issues/3568#issuecomment-1350432949

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the list-item backspace behavior described here and compare it with the behavior introduced in issue #3568. Done means pressing backspace after creating a new list item reaches the previous item after one hard break, without requiring the extra paragraph and hard-break removal steps.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.