Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GordianDziwis opened this issue Dec 31, 2016 · 0 comments
Open

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

GordianDziwis opened this issue Dec 31, 2016 · 0 comments

Comments

@GordianDziwis
Copy link

GordianDziwis commented Dec 31, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant