texstudio-org / texstudio-org/texstudio

Braces are autocompleted when 'Complete selected text when non-word character is pressed' is enabled

Open
#76 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C++
Stars
3.6k
Forks
403
Avg merge
3h 14m
Merged PRs (30d)
12

Description

This is unexpected behaviour for me. In the 'Adv. Editor' section, there are options that would more clearly relate to the autocompleting of braces, which I have disabled all of:
texstudio-special-options

It's particularly annoying that this option controls brace completion, because it causes inconsistent brace autocompletion. E.g. \log{\ doesn't have its closing brace added, but \text{\ does.

My suggestion is to remove the brace completion aspect of this option

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the Adv. Editor settings and reproduce the reported behavior with brace-completion options disabled and “Complete selected text when non-word character is pressed” enabled. Compare the \log{\ and \text{\ cases, then trace the editor’s handling of non-word characters; done means that this option no longer controls brace completion and the inconsistent behavior is resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, latex
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.