freitass / todo.txt-vim

Vim plugin for Todo.txt
488 stars 122 forks source link

Match *.todo.txt files #29

Closed naught101 closed 9 years ago

naught101 commented 9 years ago

As mentioned at http://lifehacker.com/166299/geek-to-live--list-your-life-in-txt, it's useful to have multiple todo.txt style lists, for example, a shopping.txt. Obviously it doesn't make sense to match all .txt files, but it would be great if this plugin matched .todo.txt.

Of course, I can do that manually, with

    au BufNewFile,BufReadPost *.todo.txt set filetype=todo

but <leader>D doesn't work then, it just adds the done things to done.txt. Would it be possible for <leader>D to match the filename, and move done items to, for example, shopping.done.txt?