Skip to content

mattgaidica/mattask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Readme

Using MATLAB comments to track tasks seemed like the most agile solution to all my problems. The mattasks project recursively scans a directory for any comment with the format [ ] This is a task! and exports a pretty markdown file with every task, from every file.

How to

You can use mattasks two ways based on the useWorkingDir configuration variable:

  1. Place mattasks.m in your working directory and set useWorkingDir = true.
  2. Keep the mattasks repository anywhere and select a directory at runtime with useWorkingDir = false.

All tasks are identified with the regex pattern: \[(x| )\].* The following are valid task formats (see the tests directory for inline examples) which can appear on their own line or next to uncommented code:

  • a = 3; % [ ] Reset a to positive number
  • % [x] Exclude the following line after Joey fixes his code

Configuration

All of the configuration variables can be found at the top of the mattasks.m file.

Variable Type Description
useWorkingDir boolean true uses working directory and false opens the folder selection dialog at runtime
tasksFilename string sets the output filename (recommended: README.md or TASKS.md)
fileExtensions cell list of file extensions to search through
skipString string all tasks appearing in a file after this string is encountered are skipped
openTaskFile boolean true opens the task file when done and false does not

About

Task extractor for MATLAB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages