todo.txt-vim icon indicating copy to clipboard operation
todo.txt-vim copied to clipboard

Open a project-file belonging to a task with 'gf'

Open GordianDziwis opened this issue 7 years ago • 0 comments

Hi,

with this function in your .vimrc:

autocmd FileType todo call s:todo_settings()
function! s:todo_settings()
  setl includeexpr=substitute(v:fname,'+','','g')
  setl suffixesadd+=.md
  setl path+=~/Cloud/wiki/
endfunction

Pressing gf with the crusor on the project tag, will open a corresponding project file.

For example:

(C) add todo.txt to conky +ConkyAndTodo.txt

Pressing gf on the project tag will open the file: ~/Cloud/wiki/ConkyAndTodo.txt.md

Cheers

Gordian

GordianDziwis avatar Dec 31 '16 18:12 GordianDziwis