diff --git a/README.markdown b/README.markdown index fe387b8..c15f955 100644 --- a/README.markdown +++ b/README.markdown @@ -178,6 +178,11 @@ following lines to your vimrc: au filetype todo setlocal completeopt-=preview +If you would like the preview window to open even if there is only one match for +a completion, then add the following lines to your vimrc: + + au filetype todo setlocal completeopt+=menuone + ## Hierarchical sort @@ -256,6 +261,12 @@ Possible values are : + `due:` : (Insert mode) Insert `due:` followed by the current date + `DUE:` : (Insert mode) Insert `DUE:` followed by the current date +If you would like the creation date (today) prefixed on new lines, add the +following to your vimrc: + + let g:Todo_txt_prefix_creation_date=1 + + ### Done diff --git a/doc/todo.txt b/doc/todo.txt index 51851db..91a8809 100644 --- a/doc/todo.txt +++ b/doc/todo.txt @@ -188,6 +188,12 @@ following lines to your vimrc: au filetype todo setlocal completeopt-=preview < +If you would like the preview window to open even if there is only one match for +a completion, then add the following lines to your vimrc: +> + au filetype todo setlocal completeopt+=menuone +< + =============================================================================== 5. Hierarchical sort *TodoTxt-HierarchicalSort* ~ @@ -278,6 +284,12 @@ Possible values are : `DUE:` : (Insert mode) Insert `DUE:` followed by the current date +If you would like the creation date (today) prefixed on new lines, add the +following to your vimrc: +> + let g:Todo_txt_prefix_creation_date=1 +< + 6.4 Done *TodoTxt-Done* diff --git a/ftplugin/todo.vim b/ftplugin/todo.vim index 19f551b..ceba715 100644 --- a/ftplugin/todo.vim +++ b/ftplugin/todo.vim @@ -4,16 +4,16 @@ " License: Vim license " Website: http://github.com/dbeniamine/todo.txt-vim -" Save context {{{1 -let s:save_cpo = &cpo -set cpo&vim - if exists("g:Todo_txt_loaded") finish else let g:Todo_txt_loaded=0.8.1 endif +" Save context {{{1 +let s:save_cpo = &cpo +set cpo&vim + " General options {{{1 " Some options lose their values when window changes. They will be set every " time this script is invocated, which is whenever a file of this type is @@ -73,6 +73,13 @@ if !exists("g:Todo_txt_do_not_map") nnoremap