Skip to content

msherry/tickscript-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MELPA MELPA Stable Build Status

tickscript-mode

A major mode for Tickscript files

Copyright Marc Sherry msherry@gmail.com

Provides Emacs font-lock, indentation, navigation, and utility functions for working with TICKscript, a DSL for use with Kapacitor and InfluxDB.

tickscript-mode

Installation

Available on MELPA and MELPA Stable -- installation from there is easiest:

M-x package-install tickscript-mode

Alternately, add the following to your .init.el:

(add-to-list 'load-path "path-to-tickscript-mode")
(require 'tickscript-mode)

Usage

In addition to syntax highlighting and indentation support, tickscript-mode provides a number of utility functions for working directly with Kapacitor:

  • C-c C-c -- tickscript-define-task

    Send the current task to Kapacitor via kapacitor define.

  • C-c C-v -- tickscript-show-task

    View the current task's definition with kapacitor show <task>. This will also render the DOT output inline, for easier visualization of the nodes involved.

  • C-c C-l p -- tickscript-list-replays

  • C-c C-l r -- tickscript-list-recordings

  • C-c C-l t -- tickscript-list-tasks

    Query Kapacitor for information about the specified objects.

Support is also provided for looking up node and property definitions:

  • C-c C-d -- tickscript-get-help

    Look up the node, and possibly property, currently under point online.

About

Emacs major mode for TICKscript files

Resources

License

Stars

Watchers

Forks

Packages

No packages published