From 04d603e9878ef5e40de5d846b81a9e8d4a00184d Mon Sep 17 00:00:00 2001 From: Hans Anderson Date: Tue, 28 Oct 2014 09:00:45 -0500 Subject: [PATCH 1/2] Added two new sorting functions and a way to increase/decrease priorities easily See README for more details: s@ - sort by @contexts s+ - sort by +projects j - decrease priority k - increase priority --- README.markdown | 8 ++++++++ ftplugin/todo.vim | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/README.markdown b/README.markdown index f330803..6eefede 100644 --- a/README.markdown +++ b/README.markdown @@ -10,6 +10,14 @@ mappings, to help with edition of these files: `-s` : Sort the file +`-s+` : Sort the file on +Projects + +`-s@` : Sort the file on @Contexts + +`-j` : Lower the priority (cursor must by on priority) + +`-k` : Increase the priority (cursor must by on priority) + `-d` : Insert the current date `date` : (Insert mode) Insert the current date diff --git a/ftplugin/todo.vim b/ftplugin/todo.vim index e892288..82808bd 100644 --- a/ftplugin/todo.vim +++ b/ftplugin/todo.vim @@ -45,6 +45,47 @@ if !hasmapto("s",'n') nnoremap