Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Double Quotes: closing brace at first double quote when \enquote is chosen #41

Closed
dbitouze opened this issue Feb 21, 2018 · 2 comments

Comments

@dbitouze
Copy link
Contributor

dbitouze commented Feb 21, 2018

Currently, when "Options → Configure TeXstudio... → Editor → Replace Double Quotes → Package csquotes \enquote{ }" is chosen, the following happens:

  1. when the first " is hit, only \enquote{ is inserted,
  2. when the second " is hit, the closing brace } is inserted.

The trouble is, until the second step above, the opening brace is marked as brace mismatched (by default in bold with red background) and so is the following \end{document}. This could be stressful and I suggest the closing brace being inserted at first double quote hit, with the cursor between the opening and closing braces.

BTW, this could apply to every replacement chosen in ""Options → Editor → Replace Double Quotes", that is only one " is needed and, when hit, both the opening and the closing parts of the replacement are inserted, for instance (| being the cursor):

  • for English quotes: "``|'',
  • for French Quotes (babel): "\og |\fg{},
  • for Package csquotes \enquote{ }: "\enquote{|}.
@sunderme
Copy link
Member

sunderme commented Mar 6, 2018

if you want to adapt the behaviour to your liking, you can easily do it with the macros (which are internally used for quote substitution anyway)
I don‘t see merit to change the default behaviour

@sunderme sunderme closed this as completed Mar 6, 2018
@dbitouze
Copy link
Contributor Author

dbitouze commented Mar 6, 2018

I don‘t see merit to change the default behaviour

Sigh...

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

No branches or pull requests

2 participants