Skip to content

Unable to un-indent a list item #2466

Closed

Description

@LateralLines

Description

Isn't possible to indent to the left in regular view (different behaviour in other view modes)

  • Can you reproduce the issue?

Steps to reproduce

  1. Create list
  2. Indent first item then indent again for second item
  3. Un-indenting a third item (moving it back to item Emoji name with _, will be treat as emphasize syntax #1 indentation) doesn't work with either the shift + tab or ctrl + [ shortcuts. It seems in order to properly indent to the left by any amount, you have to move down one line (using down arrow key) and manually re-indent.

Expected behavior:

Before:

  • Item1
    • Item 2
    • Item 3

After:

  • Item1
    • Item 2
  • Item 3

Actual behavior:

Before:

  • Item 1
    • Item 2
    • Item 3

After:

  • Item 1
    • Item 2
    • Item 3 (same bullet level as item 2, just tabbed over one)
      

Sidenote #1 - ctrl + [ and ctrl + ] does absolutely nothing (in default view mode)

Sidenote #2 - When in Source Code mode however, both shift + tab and ctrl + [ function as expected

Versions

  • Mark Text version: 0.16.3.3214 (launched from .appimage executable instead of installed using .deb installer)
  • Operating system: Linux Mint (cinnamon desktop)

Edit: formatting

Activity

  1. zapme commented on Jan 19, 2021

    @zapme

    Same issue, but
    shift + tab indents another level

    Versions

    • Mark Text version v0.16.3
    • OS: MacOS Big Sur 11.1 (20C69)
  2. jenyangk commented on Feb 7, 2021

    @jenyangk

    Getting the same issue too.
    shift + tab indents to another level.

    Info:

    • Version: v0.16.3
    • OS: Windows 10 20H2

    edit: you can actually hit Enter twice to create the de-dent that you want.

  3. abuisman commented on Feb 17, 2021

    @abuisman

    Same issue:

    • Version: v0.16.3 (version in 'About' says 0.16.2 even though I downloaded 0.16.3 🤷‍♂️)
    • OS: macOS Catalina v 10.15.7
  4. HelloWorld017 commented on Mar 7, 2021

    @HelloWorld017

    IMHO, I suspect commit 5fb130d.
    Shouldn't tabCtrl.js#L312 be if (event.shiftKey && startBlock.functionType !== 'cellContent') {?

  5. XuluWarrior commented on Apr 10, 2021

    @XuluWarrior

    I just updated to 0.16.3 and immediately hit this bug. Rolling back to 0.16.2 for now.

  6. markmillerdev commented on Apr 14, 2021

    @markmillerdev

    I am experiencing it with v0.16.3 on a Mac

  7. jottr commented on Apr 18, 2021

    @jottr

    This should be considered a servere bug, since it breaks a core functionality of the application.
    @Jocs would you mind having a look?

  8. SidG2k1 commented on Apr 19, 2021

    @SidG2k1

    Same issue:

    Version: v0.16.3
    OS: Ubuntu 20.04.2 LTS

  9. emileoost commented on Apr 30, 2021

    @emileoost

    I've managed to solve it the following way on v0.16.3 OS: MacOS Big Sur:

    Summary:

    • Press Enter 3 times
    • Works for Ordered and Bullet lists
    1. Press 1st Enter
      This creates a new line with the same indent and bullet.

    2. Press 2nd Enter
      This indents to the left but removes the bullet.

    3. Press 3rd Enter
      This keeps the same indent but adds the bullet again.

    Continue pressing Enter until you get to the intended indent.

  10. o5t6iaqo7 commented on Aug 21, 2021

    @o5t6iaqo7

    I am having this problem and it is very frustrating, a major functionality broken, macOS 11.5.2 and Mark Text 0.16.3. The fix suggested by emileoost above worked but was very cumbersome. I downgraded Mark Text to 0.16.2 and it now works fine, indent / outdent un-indent as in other editors. This issue has two open threads that could be combined so I have cross-posted at:
    #2371 (comment)

  11. added a commit that references this issue on Nov 29, 2021
  12. added
    🐛 bug
    🪲 pri/major
    🦏 list block
    on May 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🪲 pri/major🐛 bug🦏 list block

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions