question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When caret is in a list element, shift-enter should move to new line but not add bullet

See original GitHub issue

Expected

- foo<shift-enter>
  |
- bar

Actual

- foo<shift-enter>
- |
- bar

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
vjprcommented, Nov 3, 2017

Okay so the workaround is okay:

- bar
  - foo<enter>
  - <enter>
  <tab>  |
1reaction
vschcommented, Nov 3, 2017

@vjpr, shift enter is not a separate handler in the IDE but a combination of cursor move and enter combination so it is not possible to have one insert a list item and the other not.

However, as a workaround hitting enter on an empty list item removes the item prefix. This is the best I could come up with considering the limitations.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Do you hit ENTER in Microsoft Teams for a new line and ...
Exampe: start typing, hit shift-enter, start the new line with “- “, Teams converts to a bullet list item, type your list item,...
Read more >
Bullet list ignores Shift+Enter. Can not enter a new no-bullet line.
I am unable to do this with the current client. The note editor does not give special treatment to Shift+Enter. It treats it...
Read more >
line break inside a list item generates space between the lines
I believe the OP is asking about possible margin/padding between the LIs themselves, not the <br> issue. Waiting for code. – Kyle. Feb...
Read more >
How to generate a panel without breaking a numbered list?
I have a number list: 1. a 2. b 3. c When I introduce a panel by hitting shift-enter and selecting a panel...
Read more >
Quill, Shift-Enter and <br> tags
Regular Enter starts a new bullet, Shift-Enter starts a new line within the current bullet. None of these require the <br> tag, though....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found