Skip to content
This repository has been archived by the owner on Dec 26, 2019. It is now read-only.
/ Todo-Visualizer Public archive

Quick & dirty todo visualizer for Todo.txt file format

Notifications You must be signed in to change notification settings

Bornholm/Todo-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Todo.txt - JQuery Plugin

A quick & dirty vizualizer for Todo.txt file format, a great but simple way to create todo lists.

You can learn more here about the Todo.txt format.

This plugin has been tested with JQuery 1.7.1

Demo

Check the demo here

How to

Include the followings files in your HTML template :

<link rel="stylesheet" href="/path/to/todo.css"> <!-- Default Todo Style -->
<script type="text/javascript" src="/path/to/jquery.js"></script> <!-- Require JQuery ! -->
<script type="text/javascript" src="/path/to/jquery-todo.js"></script>  <!-- Plugin script -->

To create a new Todo :

<div id="todo-container"></div> <!-- Todo List Container -->
<script type="text/javascript">
	$(document).ready(function(){
		var options = {
			url : "/path/to/your/todo.txt"
		};
		$("#todo-container").todo( options );
	});
</script>

Get the todo instance after creation :

var todo = $("#todo-container").data("todo");

Options

url : Todo.txt file url

local : String to use as source ( \n is the line separator )

headerAlias : Columns headers alias

separator : Multiples values separator

Example

var options = {
	headerAlias : {
		contexts : "Context(s)",
		projects : "Project(s)",
		text : "Task",
		startDate : "Started",
		priority : "Priority"
	}
};

contentTransform : Transform cells content

Example

var options = {
	contentTransform : {
		contexts : function(content) { return "Context : "+content; }
	}
};

Method(s)

reload( opts ) : Reload with new options

Todo

  • Close date extraction
  • Search & filters controls
  • Sorting controls

About

Quick & dirty todo visualizer for Todo.txt file format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published