LaTeXTools icon indicating copy to clipboard operation
LaTeXTools copied to clipboard

Tabbing in environment

Open StevenClontz opened this issue 11 years ago • 3 comments

My typical formatting for environments is to use indentations like so:

\begin{theorem}
  $a^2+b^2=c^2$
\end{theorem}

\begin{proof}
  Pythagoras said so.
\end{proof}

When using LaTeXTools keybindings, I'll Cmd-L+E to create the environment. However, Tab is then bound to escape the environment. I could start typing my proof and then use Cmd-] to indent, but it seems that tabbing the lines initially is a more natural workflow.

My question is whether it'd be more appropriate to namespace tabbing out of the environment to Cmd-L+Tab rather than hijacking the normal usage of Tab. That seems more symmetric to me as well, since I have to Cmd-L to enter the environment as well. Thoughts?

StevenClontz avatar Jan 11 '14 19:01 StevenClontz

I have the exact same issue as well. I also like your idea of using C-L+Tab.

marktani avatar Jul 30 '14 22:07 marktani

Hmm... it's a good idea, but it sounds like something people may disagree about. I agree that the current behavior can be annoying, and I do find myself "undoing" the results of a hasty tab out of an environment. However, I could just as well imagine people complaining about having to type C-L-Tab instead of just Tab... Sadly, it's not something that can be switched on/off with a pref setting.

On Wed, Jul 30, 2014 at 5:44 PM, Nilan [email protected] wrote:

I have the exact same issue as well. I also like your idea of using C-L+Tab.

— Reply to this email directly or view it on GitHub https://github.com/SublimeText/LaTeXTools/issues/310#issuecomment-50690707 .

Marciano Siniscalchi Economics Department, Northwestern University http://faculty.wcas.northwestern.edu/~msi661

msiniscalchi avatar Jul 31 '14 06:07 msiniscalchi

Is it implemented now? Can the indent be the default behaviour without user input? Thanks

hvstms avatar Dec 21 '23 07:12 hvstms