Coder Social home page Coder Social logo

tdd-status-mode-line's Introduction

TDD status mode-line widget

Build Status

This little package implements a mode-line widget to track one's current test-driven development state (FAIL, PASS, or REFACTOR). Fully customisable faces and states and all that. The idea is based on a similar solution for Vim.

Screenshot

Installation

Once the package is downloaded, either via a git checkout or simply saving the tdd-status-mode-line.el file somewhere on your load path, simply requiring it is all you need. The package adds the TDD status to mode-line-misc-info, you need to have that in your mode-line for the package to work.

The package is also available from Marmalade:

(require 'package)
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/"))
(package-initialize)
(package-install 'tdd-status-mode-line)

(require 'tdd-status-mode-line)

Usage

The package defines three global key bindings:

  • C-x t n advances the state (from none to FAIL, then to PASS and onto REFACTOR, and finally back to FAIL).
  • C-x t p steps the state back (from PASS to FAIL, etc).
  • C-x t c clears the state and hides the widget.

By default, the TDD state is global. If one wants to make it buffer local, the tdd-status/current-status-index variable needs to be made buffer local:

(require 'tdd-status-mode-line)
(make-variable-buffer-local 'tdd-status/current-status-index)

tdd-status-mode-line's People

Contributors

algernon avatar

Watchers

 avatar  avatar  avatar

Forkers

syohex

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.