Skip to content

Add autoclosing of an environment when using the latex auto fill feature when approiate#1696

Open
dam024 wants to merge 4 commits intoSublimeText:masterfrom
dam024:master
Open

Add autoclosing of an environment when using the latex auto fill feature when approiate#1696
dam024 wants to merge 4 commits intoSublimeText:masterfrom
dam024:master

Conversation

@dam024
Copy link

@dam024 dam024 commented Mar 12, 2026

This modification improves the Fill-helper autocompletion features of LaTeXTools:

  • When using the fill-helper to autocomplete an environment (\begin{), the environment is automatically closed when appropriate and the cursor is moved to the appropriate position.
  • When fill-helper completes another command than an environment, the cursor is moved after the closing bracket when appropriate
  • Settings were made to control the behavior of these new features (please, refer to these for more information)

dam024 added 4 commits March 11, 2026 23:02
If the env_auto_trigger settings is true, LaTeXTools asks the user to enter an environment name via a WindowCommand. This modification ensures that the environment is closed automatically when the user triggers this feature with \begin{...}
The following bugs have been fixed:
- When called from the latextools_fill_all TextCommand, the autoclose is not performed
- When completing another command than \begin{...}, the cursor is moved by one character, being after the closing bracket.
The new features are deactivated by default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant