Group Abstract Group Abstract

Message Boards Message Boards

Live code templates

Posted 8 years ago
POSTED BY: Kuba Podkalicki
5 Replies

v0.10+ NotebookActions

NotebookActions is a feature which is very similar to LiveTemplates but allows to use/customize a menu of arbitrary actions.

Items are even simpler:

<|"Label" -> _String,        "ShortKey" -> _String (*char*), "Action" :> _|>
(*e.g.*)
<|"Label" -> "Print date",   "ShortKey" -> "p",              "Action" :> Print @ Now|>

See more in the Readme.MD and here is a custom example: Add spaces to Mathematica comment delimiters?

enter image description here

POSTED BY: Kuba Podkalicki

v0.8.0 (06-07-2018) VerificationTest template

Wraps an expression with VerificationTest, automatically filling result and encountered messages slots.

POSTED BY: Kuba Podkalicki

v0.7.0 (21-02-2018) support for V10.4

As of v0.7.0 code templates will work on V10.4, probably even in earlier versions but I need to check that.

For pre V11 a notebook approach is used instead of an AttachedCell based menu. To enable attached cell method in earlier versions you can run

CurrentValue[$FrontEnd, {TaggingRules, "DevTools", "MenuMethod"}] = "Cell" (*or "Notebook" *) 

but FE crashed for me once or twice and I was not able to reproduce circumstances so do it on your own risk.

POSTED BY: Kuba Podkalicki

Wolfram should compensate you for doing their work for them. This is something Wolfram should have done a long time ago with Mathematica.

POSTED BY: Jules Manson

enter image description here - Congratulations! This post is now a Staff Pick as distinguished by a badge on your profile! Thank you, keep it coming!

POSTED BY: EDITORIAL BOARD
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard