andrewrynhard / atom-latex-plus

16 stars 13 forks source link

ENH: Text-formatting (texttt, textbf, emph) commands #64

Open nickeubank opened 8 years ago

nickeubank commented 8 years ago

Loving Atom, except that latex libraries lack a basic functionality in TextMate and Sublime: text-formatting commands.

In particular, both TM and ST allow users to either (a) highlight text and hit the keys to get it wrapped, or (b) will add a wrapper and leave the cursor in the appropriate place for typing.

For example, if I type Cmd+b in textmate, I get \textbf{} with the cursor inside the squiggly brackets. Similarly, if the word test were highlighted and I hit Cmd+b, it would becomes \textbf{test}.

I've mentioned this on atom-language-latex but didn't seem to get any traction. In hindsight, I think that package is really for pure syntax highlighting, so perhaps this package (which has much more programming muscle) is a better place?

Any thoughts / interest / idea how to implement? Unfortunately I'm from data analysis land not web-development land, so am struggling with the coffeescripting.

andrewrynhard commented 8 years ago

I apologize for such a late response. I am definitely open to this idea. I can put it on the todo list. There are a few stability issues I would like to address first, before adding more features. Thank you for your feedback.