Skip to content

Add Functional Bracket Auto-Completion #414

Closed

Description

@CisBetter

Description

Many modern code editors such as Atom, GNOME Builder and VS Code contain bracket auto-completion.
Mark Text already places closing brackets whenever an opening bracket is typed. However, when reaching the auto-completed closing bracket and typing the bracket again it just adds a second bracket in front of the auto-completed one.

I suggest that typing a closing bracket in front of a bracket moves the cursor behind the bracket as if it was not added by auto-completion.
An already very good implementation of this feature can be seen in Atom Text Editor (see Expected behaviour).

Steps to reproduce

  1. type opening bracket
  2. (optional) Enter some text.
  3. type closing bracket

Expected behaviour:

marktext-bug1-atom

Actual behaviour:

marktext-bug1

Link to an example:
See Expected behaviour:

Versions

  • Mark Text: v 0.12.25
  • OS:
    • Type: GNU
    • Kernel: Linux-Libre
      • Version: 4.17.3-1

Activity

  1. added
    🦄 feature request
    on Jul 3, 2018
  2. Jocs commented on Jul 3, 2018

    @Jocs
    Member

    Yeh, I agree with you, it's a better user experience to move the cursor behind when user input the close bracket. PR is also welcomed!

  3. added
    🐳 help wanted
    🐮 good first issue
    on Jul 3, 2018
  4. added 2 commits that reference this issue on Jul 19, 2018
  5. added a commit that references this issue on Jul 27, 2018
  6. added
    🐝 resolved/fixed but not released
    on Aug 12, 2018
  7. added a commit that references this issue on Jun 21, 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

    🐮 good first issue🐝 resolved/fixed but not released🦄 feature request🐳 help wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions