Skip to content

[Bug] Numbered list #1761

Closed
Closed

Description

@annieappflowy

Bug Description

No line between numbered list items is allowed

image

How to Reproduce

  1. Create three numbered list items
  2. Try to add an empty line between 1. and 2.
  3. The numbers shown are not incremental from 1 to 3

Expected Behavior

Like Google Docs, I can add empty lines in between a numbered list
image

Operating System

Windows 10

AppFlowy Version(s)

0.0.9.1

Screenshots

No response

Additional Context

No response

Activity

  1. LucasXu0 commented on Jan 31, 2023

    @LucasXu0
    Contributor

    It's by design. If we press the enter between numbered lists, the below part will re-sort from 1.

    Please take a look at this video if you'd like to insert an empty line between the incremental numbered list.

    demo.mov

    Or using shift+enter to add a new line at the same node.

  2. richardshiue commented on Jan 31, 2023

    @richardshiue
    Contributor

    I didn't know about shift+enter, maybe that's what Annie wants. In google docs, the shift+enter to add a new line in the same node is a single enter followed a backspace, and a subsequent enter/backspace will trigger AppFlowy's usual backspace behavior that splits the number list into two.

  3. annieappflowy commented on Jan 31, 2023

    @annieappflowy
    CollaboratorAuthor

    Ok I see. I didn't figure out the trick.
    I suppose Shift + enter should be added to our shortcuts guide (which doesn't exist yet)

  4. added
    documentation
    editor
    shortcuts
    on Jan 31, 2023
  5. MayurSMahajan commented on Feb 1, 2023

    @MayurSMahajan
    Collaborator

    Okay, so we just want to add documentation for the shift+enter, in our shortcuts guide(which I will be happy to make), right? Or am I missing something? I did not understand what Richard meant.

  6. annieappflowy commented on Feb 1, 2023

    @annieappflowy
    CollaboratorAuthor

    Based on my understanding, what Richard means is that in Google Docs both ways (shift+enter or enter+backspace) can achieve adding lines between numbered item without breaking the existing number order. AppFlowy only supports shift+enter at the moment.

    I think we should write documentation to list out all the shortcuts we support. In addition, we can add an entry to the "?" list at the bottom right of the editing area to direct users to view the shortcut guide.

  7. MayurSMahajan commented on Feb 1, 2023

    @MayurSMahajan
    Collaborator

    Okay understood! Thanks.

  8. MayurSMahajan commented on Feb 1, 2023

    @MayurSMahajan
    Collaborator

    So the objective of the PR solving this issue will facilitate the redirection of the user to a documentation page that enlists all the existing predefined shortcuts. This link can be accessed by clicking on the "?" button
    image
    I can get this done, but this seems a perfect choice for a "good first issue" for any newcomers. If no one claims it I will work on it.

  9. added
    good first issue for devs
    on Feb 1, 2023
  10. AmanNegi commented on Feb 15, 2023

    @AmanNegi
    Contributor

    Hey there can I work on this?

  11. MayurSMahajan commented on Feb 15, 2023

    @MayurSMahajan
    Collaborator

    Hey @AmanNegi! Go ahead, you can start working on this.

  12. AmanNegi commented on Feb 15, 2023

    @AmanNegi
    Contributor

    Hey there, do we already have a list of Shortcuts listed somewhere? If not are we supposed to create a Flutter Page or a SHORTCUTS.md in the GitHub Repository?

  13. annieappflowy commented on Feb 15, 2023

    @annieappflowy
    CollaboratorAuthor

    Hi @AmanNegi , we should create a documentation page to list the shortcuts we support and build a link in the app so people can be directed to that page.

    Just created a page for you to fill good stuff in: https://github.com/AppFlowy-IO/AppFlowy-Docs/blob/main/essential-documentation/shortcuts.md
    You can work on it and submit a PR for review.
    Meanwhile, you can also work on adding a link to "?"

  14. MayurSMahajan commented on Feb 15, 2023

    @MayurSMahajan
    Collaborator

    Hey @AmanNegi, you can find the list of existing shortcuts here.
    AppFlowy\frontend\app_flowy\packages\appflowy_editor\lib\src\service\shortcut_event\built_in_shortcut_events.dart

  15. AmanNegi commented on Feb 15, 2023

    @AmanNegi
    Contributor

    Thanks, 😊 @MayurSMahajan That helps a lot!

  16. AmanNegi commented on Feb 17, 2023

    @AmanNegi
    Contributor

    Hey there, I had a question. If I add some text, do I need to add translation in each language?

      "questionBubble": {
        "shortcuts": "Shortcuts", 
        "whatsNew": "What's new?", 
        "help": "Help & Support",
        "debug": {
          "name": "Debug Info",
          "success": "Copied debug info to clipboard!",
          "fail": "Unable to copy debug info to clipboard"
        }
      }

    Added "shortcuts": "Shortcuts" above in en.json.

    PS: I have added all the shortcuts and made a PR here.

  17. MayurSMahajan commented on Feb 18, 2023

    @MayurSMahajan
    Collaborator

    No just English is fine, if you want to add a translation for any other language, you can create a new PR for that.

  18. AmanNegi commented on Feb 18, 2023

    @AmanNegi
    Contributor

    Okay great :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationeditorgood first issue for devsshortcuts

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions