blakesweeney / unite-taskwarrior

A unite.vim interface to taskwarrior
6 stars 2 forks source link

on creating note file, insert description as first line #10

Closed linuxcaffe closed 9 years ago

linuxcaffe commented 9 years ago

Hit "o" and you're editing a note file.. but what was that about again? On first creating a new note file, having the task description inserted as the first line of the file, would make that note file function a lot more obvious.

blakesweeney commented 9 years ago

This should be possible now. In addition, I added a little configuration option to allow a function to create the correct format. I figure this can serve as a nice way to integrate with taskwiki style stuff as well.

linuxcaffe commented 9 years ago

I think I found a clue! This vimrc config:

let g:unite_taskwarrior_note_directory = '~/.task/notes'

seems to be creating the note in;

djp@tigger:~/.vim/bundle/unite-taskwarrior/~/.task/notes/b6a77620.tasknote.wiki  
or
djp@tigger:~/.task/wiki/~/.task/notes/b12ad853.tasknote.wiki 

seeming dependent on the PWD when the note was created.. which is not what I expected! That said, the description IS part of that tasknote file.

blakesweeney commented 9 years ago

Huh, that's odd. I'll fix it once I figure out what is causing that.

linuxcaffe commented 9 years ago

all working as advertised!

linuxcaffe commented 9 years ago

This feature, the insert-description-as-first-line-of-notefile thing, is working great, and it makes a huge difference to connect the task and the tasknote..

and I found something even better IF you're using taskwiki; insert a taskwiki-formatted task, #uuid and all, and then, when editing that tasknote, just hit to see the full task info, or 't m' to modify the task, and any external changes to the description or status, get propagated back to the tasknote.

 
* [ ] write a description  #uuid-short  

as the first line, would be super-great used with taskwiki, super-weird otherwise :)