4
$\begingroup$

When I type *, with the input cursor at the very beginning of a cell, it creates a cell with the "Item" style.

Is this feature extensible? Can I define my own special characters which trigger the creation of a special cell? For example, can we make ' create a "Code" style cell?

$\endgroup$
  • $\begingroup$ @andre Yes, that's it! $\endgroup$ – Szabolcs Jan 27 '18 at 19:51
  • $\begingroup$ related: 18406 $\endgroup$ – Kuba Jan 27 '18 at 21:39
  • $\begingroup$ @Kuba I guess ... but neither of those two are true duplicates in the sense that they're not easy to find ... of course the answers resolve all my problem, especially Carl's. $\endgroup$ – Szabolcs Jan 27 '18 at 21:47
  • $\begingroup$ @Kuba I would prefer a one-line answer mentioning StyleKeyMapping and linking to Carl's description. $\endgroup$ – Szabolcs Jan 27 '18 at 21:48
6
$\begingroup$

StyleKeyMapping does exactly what you need.

It is nicely and concisely explained here.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.