ADD: Two level sort function
This commit add the first interesting difference from freitass original version. It provides a two level sort function which allow the user to sort the todo by project (or context) then by priority. TODO: Maybe think about three level sort (project, context, priority) in any order.
This commit is contained in:
22
doc/todo.txt
22
doc/todo.txt
@@ -3,7 +3,11 @@
|
||||
==============================================================================
|
||||
COMMANDS *todo-commands*
|
||||
|
||||
`<leader>-s` : Sort the file
|
||||
`<leader>-s` : Sort the file by priority
|
||||
|
||||
`<leader>-sp` : Sort the file by project then by priority
|
||||
|
||||
`<leader>-sc` : Sort the file by context then by priority
|
||||
|
||||
`<leader>-d` : Insert the current date
|
||||
|
||||
@@ -16,3 +20,19 @@ COMMANDS *todo-commands*
|
||||
`<leader>-D` : Remove completed tasks
|
||||
|
||||
<leader> is \ by default, so <leader>-s means you type \s
|
||||
|
||||
===============================================================================
|
||||
CONFIGURATION *todo-configuration*
|
||||
|
||||
The user can give argument for the two calls to vim sort function by changing
|
||||
the following variables:
|
||||
|
||||
g:Todo_txt_first_level_sort_mode
|
||||
g:Todo_txt_second_level_sort_mode
|
||||
|
||||
Defaults values are:
|
||||
|
||||
g:Todo_txt_first_level_sort_mode="i"
|
||||
g:Todo_txt_second_level_sort_mode="i"
|
||||
|
||||
For more information on the available flags see help :sort
|
||||
|
||||
Reference in New Issue
Block a user