freitass / todo.txt-vim

Vim plugin for Todo.txt
486 stars 121 forks source link

make <leader>a replace set priority, even if it's already set #34

Open naught101 opened 9 years ago

naught101 commented 9 years ago

This pull request makes the <leader>[a,b,c] functions replace the current priority, if it exists, and also prevents the priority modification functions from matching lines with no priority, with parentheses in them, e.g.

some todo (not a priority)

previously in this case, the 'y' would be modified with the increase/decrease priority functions.