Mateusz Jończyk 507439112e When sorting on priority, sort also on projects and contexts
After pressing <leader>s, todo.vim used to sort all lines
alphabetically. This caused tasks related to different projects to be
placed apart from each other - the whole list was then difficult to
follow.

This patch fixes this by taking into account the fact that :sort in vim
is usually stable (see http://en.wikipedia.org/wiki/Sorting_algorithm#Stability),
so that when we sort first on contexts, then on projects and then on
priority, everything is placed in the order we want.
2015-02-01 15:46:17 +01:00
2014-11-17 10:00:15 -02:00
2011-05-31 15:55:05 -03:00
2014-11-01 21:39:09 -02:00
2014-11-01 21:39:09 -02:00

Quick install

git clone git://github.com/freitass/todo.txt-vim.git
cd todo.txt-vim
cp -R * ~/.vim

This plugin gives syntax highlighting to todo.txt files. It also defines a few mappings, to help with editing these files:

<leader>-s : Sort the file

<leader>-s+ : Sort the file on +Projects

<leader>-s@ : Sort the file on @Contexts

<leader>-j : Lower the priority of the current line

<leader>-k : Increase the priority of the current line

<leader>-a : Add the priority (A) to the current line

<leader>-b : Add the priority (B) to the current line

<leader>-c : Add the priority (C) to the current line

<leader>-d : Insert the current date

date<tab> : (Insert mode) Insert the current date

<leader>-x : Mark task as done (inserts current date as completion date)

<leader>-X : Mark all tasks as completed

<leader>-D : Move completed tasks to done.txt

If you want the help installed, run ":helptags ~/.vim/doc" inside vim after having copied the files. Then you will be able to get the commands help with: :h todo.txt

Description
No description provided
Readme GPL-3.0 376 KiB
Languages
Vim Script 97.4%
Shell 2.6%