Skip to content
Discussion options

You must be logged in to vote

Hello👋

This is a known limitation and there is an open issue tracking exactly this auto pair behavior with triple quotes: #13697. So its not something you are missing, its a real gap in the current auto-pair logic.

A cleaner workaround than a macro: disable auto-pairing for " specifically in Python.
Add this to languages.toml in your config directory (~/.config/helix/languages.toml on Linux/macOS, %AppData%\helix\languages.toml on Windows):

[[language]]
name = "python"

[language.auto-pairs]
'(' = ')'
'{' = '}'
'[' = ']'
"'" = "'"
'`' = '`'

Leaving " out of that table turns off auto closing for double quotes in Python files only and other pairs keep auto pairing normally. Then writing a d…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@brunobord
Comment options

Answer selected by brunobord
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants