Skip to content

Don't autocomplete _ and * in code- and math blocks #434

Description

@fxha

Description

It would be great if _ and * is not autocomplete to _<cursor>_ and *<cursor>* in code- and math blocks. What's your opinion?

Activity

  1. Jocs commented on Jul 22, 2018

    @Jocs
    Member

    I think _ and * autocomplete are not necessary in math blocks.

    what's your meaning in code- ?

  2. fxha commented on Jul 22, 2018

    @fxha
    ContributorAuthor

    what's your meaning in code- ?

    code-blocks

  3. Jocs commented on Jul 23, 2018

    @Jocs
    Member

    But now there is no automatic completion in the code block?

  4. enyaxu commented on Jul 23, 2018

    @enyaxu
    Contributor

    code-block now handles by codemirror

  5. Jocs commented on Jul 23, 2018

    @Jocs
    Member

    @enyaxu yes!

  6. fxha commented on Jul 24, 2018

    @fxha
    ContributorAuthor

    OK, I was wrong; only math blocks.

  7. NitroCao commented on Jul 29, 2018

    @NitroCao

    I think the autocompletion for _ and * is not necessary. I just need one _ in the normal text, but marktext gives me two when I insert a _, so that I have to delete the other. It's not convenient. In my opinion, the best way is to make this feature a modifiable preference.

  8. fxha commented on Jul 29, 2018

    @fxha
    ContributorAuthor

    @jaycecao The autocompletion is used for italic (*foo* or _foo_) and bold (**foo**or __foo__) text.

    In my opinion, the best way is to make this feature a modifiable preference.

    I'm agree with you.

    @Jocs

    My proposal is:

    1. disable autocompletion for math-blocks (as discussed above)
    2. add a option to disable autocompletion for _ and *.
  9. Jocs commented on Jul 30, 2018

    @Jocs
    Member

    @fxha @jaycecao We already have autoPairMarkdownSyntax option in user preference to disable markdown syntax autocompletion * and _.

  10. added a commit that references this issue on Sep 27, 2018
  11. 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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions