fixed tabs/spaces, also set height on new window
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
if !exists('g:todo_project_context')
|
if !exists('g:todo_project_context')
|
||||||
let g:todo_project_context = ''
|
let g:todo_project_context = ''
|
||||||
endif
|
endif
|
||||||
|
|
||||||
command! -nargs=* Todo call Todo(<q-args>)
|
command! -nargs=* Todo call Todo(<q-args>)
|
||||||
command! -nargs=+ TodoAdd call TodoAdd(<q-args>)
|
command! -nargs=+ TodoAdd call TodoAdd(<q-args>)
|
||||||
command! -nargs=* -complete=customlist,CompleteTodoList TodoList call TodoList(<q-args>)
|
command! -nargs=* -complete=customlist,CompleteTodoList TodoList call TodoList(<q-args>)
|
||||||
command! -nargs=0 TodoListProjects call TodoListProj()
|
command! -nargs=0 TodoListProjects call TodoListProj()
|
||||||
command! -nargs=0 TodoListContexts call TodoListCon()
|
command! -nargs=0 TodoListContexts call TodoListCon()
|
||||||
@@ -166,11 +166,12 @@ function! s:OpenTodoBuffer(content)
|
|||||||
if exists('b:is_todo_output_buffer') && b:is_todo_output_buffer
|
if exists('b:is_todo_output_buffer') && b:is_todo_output_buffer
|
||||||
enew!
|
enew!
|
||||||
else
|
else
|
||||||
new
|
10new
|
||||||
endif
|
endif
|
||||||
setlocal buftype=nofile readonly modifiable
|
setlocal buftype=nofile readonly modifiable
|
||||||
silent put=a:content
|
silent put=a:content
|
||||||
keepjumps 0d
|
keepjumps 0d
|
||||||
setlocal nomodifiable
|
setlocal nomodifiable
|
||||||
let b:is_todo_output_buffer = 1
|
setlocal winfixheight
|
||||||
|
let b:is_todo_output_buffer = 1
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user