dertuxmalwieder / SublimeTodoTxt

Sublime Text syntax highlighting for Todo.txt
125 stars 19 forks source link

Add filenames for TodoTxt syntax highlighting? #7

Closed sbaack closed 10 years ago

sbaack commented 10 years ago

By default, it seems syntax highlighting is only applied to files named todo.txt but I have todo lists with other names. I archive my tasks in done.txt, I have a _somedaymaybe.txt beside my daily updated todo.txt, and I share a todo list with a friend that has a different name as well.

I couldn't figure out how to define syntax highlighting for specific files/filenames in Sublime Text. I don't want to change it for the file type - not all txt files should have TodoTxt syntax. The closest I got was this plugin, but it's not available for Sublime Text 3.

Is there an easy way to add filenames for TodoTxt syntax highlighting? And if not, could you add this functionality?

dertuxmalwieder commented 10 years ago

Actually it's rather easy. My latest commit should have worked. I added done.txt as it's pretty much a default file.

(Just add them to the array.)

sbaack commented 10 years ago

Thanks for your quick reply! I have to admit I'm not programmer and never used GitHub/Git yet, so I'm not sure what to do and I don't want to mess things up ;) I would just add someday_maybe.txt to the array, I think that's something other people use too. My shared todo list has a unique name though, I don't think it would be helpful to add it to the 'official' list of supported filenames. Is there a way I can add such unique names only for me (locally)?

dertuxmalwieder commented 10 years ago

Sure, change the .tmlanguage file and add a string in the obvious place. :)

sbaack commented 10 years ago

OK, it took me a while to figure out where tmLanguage files are stored and how to edit them, but now it seems to work. Thank you! :)

dertuxmalwieder commented 10 years ago

Oh, sorry. Usually in your program folder. :)

No problem!