Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can only have one empty line #18

Closed
nkallman opened this issue Nov 30, 2016 · 2 comments
Closed

Can only have one empty line #18

nkallman opened this issue Nov 30, 2016 · 2 comments

Comments

@nkallman
Copy link

I don't know if this behavior is intentional but it seemed odd to me.

I was going to add several blank lines on a new section of a list and it would only allow me to add one blank line (Pressing enter while in a blank line will not create a new line, I can only create a new line by pressing enter on a line with a value in it).

@danallison
Copy link
Member

Hi @nkallman . Thanks for opening this issue.

The behavior for blank items is intentionally different than items with text. Pressing enter on a blank item should outdent the item. This is consistent with the list item behavior of document editors like Google Docs or Microsoft Word. However, if the item is outdented as far as it can go, then nothing happens, which I agree is odd. It should create new blank items in that case.

For now, if you want to create multiple blank items, there is the new item command. The default keyboard shortcut for this is alt + enter. Depending on when you signed up, that shortcut may or may not be in you preferences already. If it's not, you can copy-paste into your keyboard shortcuts

alt + enter
  new item

.

This command/shortcut is also useful if you want to create a new item without splitting the text at the cursor, which is the default behavior when just pressing enter.

@danallison
Copy link
Member

Ok. I just deployed a fix so that pressing enter on a blank item that cannot outdent creates a new blank item. Let me know if you run into any other strange behaviors like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants