[TxMt] Re: TODO bundle question
Soryu
soryu2 at gmail.com
Thu Dec 10 09:16:56 UTC 2009
Hi Hans,
Allan changed this: http://lists.macromates.com/textmate-dev/2009-October/014188.html
You encountered it already, it seems: http://lists.macromates.com/textmate-dev/2009-December/014292.html
I just pushed a fix for this: http://github.com/textmate/todo.tmbundle/commit/000b087291cb75bde763bd75ee2aa7c80d2c6529
Change your “Show TODO List” command to:
"${TM_RUBY:-ruby}" "$TM_BUNDLE_SUPPORT/todo.rb" project
And it will ignore the selected files from the project drawer and go back to the old behaviour. Also it supports a parameter `dir` instead of `project` to search only in the dir of the currently selected file.
Stan.
On 10.12.2009, at 08:39, Hans-Jörg Bibiko wrote:
>> The TODO bundle uses the "textmate" ruby library, specifically a function TextMate.each_text_file to enumerate the files. And that function looks at TM_SELECTED_FILES.
>>
>> So to change the behavior open the Bundle editor, find TODO/Show TODO List, and insert as first line:
>>
>> TM_SELECTED_FILES=''
>>
>> Now the TODO bundle will always go through the entire project, wether there is a file selected in the project drawer or not.
>
> Why not add this to TODO's Preference pane, or to have two tmCommand “Show TODO List in selected Files” and “Show TODO List in Project” both bound to ^⇧T ?
>
> Or maybe better to have the chance to filter TODO's HTML output for “Show TODO in selected files only”, and “Show TODO in current file”
>
> --Hans
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
More information about the textmate
mailing list