From 2a66ed26ff0ebb38f34f492e8517d56883026198 Mon Sep 17 00:00:00 2001 From: Leandro Freitas Date: Sat, 1 Nov 2014 19:44:07 -0200 Subject: [PATCH] Updated documentation and minor fixes. --- README.markdown | 3 +-- Todo.txt | 11 ++++++----- doc/todo.txt | 10 ++++++++-- ftplugin/todo.vim | 4 ++-- 4 files changed, 17 insertions(+), 11 deletions(-) diff --git a/README.markdown b/README.markdown index e2b9fdd..7239a42 100644 --- a/README.markdown +++ b/README.markdown @@ -5,8 +5,7 @@ cp -R * ~/.vim -This plugin gives syntax highlighting to [todo.txt](http://todotxt.com/) files. It also defines a few -mappings, to help with editing these files: +This plugin gives syntax highlighting to [todo.txt](http://todotxt.com/) files. It also defines a few mappings, to help with editing these files: `-s` : Sort the file diff --git a/Todo.txt b/Todo.txt index ad5e0cb..5d904a1 100644 --- a/Todo.txt +++ b/Todo.txt @@ -1,8 +1,4 @@ -(A) 2011-05-30 Map commands to add, rm, ls, pri, depri etc @ftplugin -(A) 2011-06-06 Check file syntax @syntax -(B) 2011-05-31 Start documentation @doc -(C) 2011-06-01 Improve syntax file @syntax -x 2014-04-27 2011-05-30 Contact main project for reference +2014-11-01 Find a way to import text into markdown and vim doc @doc x 2011-05-30 Create README.markdown to be published in github @doc x 2011-05-30 Implement colorized priorities @syntax x 2011-05-30 Implement filetype detection @ftdetect @@ -11,3 +7,8 @@ x 2011-05-31 Highlight date, project and context of tasks with no priority @synt x 2011-05-31 Stop breaking lines automatically @ftplugin x 2011-06-06 Easier date input @ftplugin x 2011-06-06 Implement foldings @ftplugin +x 2014-04-27 2011-05-30 Contact main project for reference +x 2014-11-01 2011-05-30 Map commands to add, rm, ls, pri, depri etc @ftplugin +x 2014-11-01 2011-05-31 Start documentation @doc +x 2014-11-01 2011-06-01 Improve syntax file @syntax +x 2014-11-01 2011-06-06 Check file syntax @syntax diff --git a/doc/todo.txt b/doc/todo.txt index de3bc90..1a04834 100644 --- a/doc/todo.txt +++ b/doc/todo.txt @@ -9,9 +9,15 @@ COMMANDS *todo-commands* `-s@` : Sort the file on @Contexts -`-j` : Lower the priority (cursor must by on priority) +`-j` : Lower the priority of the current line -`-k` : Increase the priority (cursor must by on priority) +`-k` : Increase the priority of the current line + +`-a` : Add the priority (A) to the current line + +`-c` : Add the priority (B) to the current line + +`-b` : Add the priority (C) to the current line `-d` : Insert the current date diff --git a/ftplugin/todo.vim b/ftplugin/todo.vim index 3dd47f9..dce3bb2 100644 --- a/ftplugin/todo.vim +++ b/ftplugin/todo.vim @@ -16,7 +16,7 @@ set cpo&vim setlocal textwidth=0 setlocal wrapmargin=0 -" Functions {{{! +" Functions {{{1 function! s:TodoTxtRemovePriority() :s/^(\w)\s\+//ge endfunction @@ -28,7 +28,7 @@ endfunction function! TodoTxtMarkAsDone() call s:TodoTxtRemovePriority() call TodoTxtPrependDate() - normal! Ix + normal! Ix endfunction function! TodoTxtMarkAllAsDone()