When I use the TODO bundle I want it to scan the entire project, but it defaults to scanning the file selected in the. project drawer.
That leads to this annoying workflow:
- Call up TODO list - Scratch head why it's empty - Remember - Curse - Finde selected file in project drawer and deselect - Call up TODO list
How can I get the TODO bundle to always scan the entire project?
Thanks
Gerd
On 09-12-08 2:29 PM, Gerd Knops wrote:
When I use the TODO bundle I want it to scan the entire project, but it defaults to scanning the file selected in the. project drawer.
That leads to this annoying workflow:
- Call up TODO list
- Scratch head why it's empty
- Remember
- Curse
- Finde selected file in project drawer and deselect
- Call up TODO list
How can I get the TODO bundle to always scan the entire project?
Thanks
Gerd
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
I can't seem to replicate this.
When I use the shortcut or go through the menu it stays selected and scans everything. As far as I know, it operated the same way for me on Leopard as it is now on Snow Leopard. Are you using any plugins?
Jack
It may have to do with my current project not having an actual tmproj file? I'd like to keep it that way rhough.
I double-checked, TM_PROJECT_DIRECTORY is set to the correct value.
I don't see TODO using TM_SELECTED_FILES or TM_SELECTED_FILE. It does use TM_FILEPATH, but only when called with a 'dir' argument. I double-checked and that branch is not executed.
So I have no idea why it is doing that...
Thanks
Gerd
On Dec 8, 2009, at 4:44 PM, Jack matier wrote:
On 09-12-08 2:29 PM, Gerd Knops wrote:
When I use the TODO bundle I want it to scan the entire project, but it defaults to scanning the file selected in the. project drawer.
That leads to this annoying workflow:
- Call up TODO list
- Scratch head why it's empty
- Remember
- Curse
- Finde selected file in project drawer and deselect
- Call up TODO list
How can I get the TODO bundle to always scan the entire project?
Thanks
Gerd
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
I can't seem to replicate this.
When I use the shortcut or go through the menu it stays selected and scans everything. As far as I know, it operated the same way for me on Leopard as it is now on Snow Leopard. Are you using any plugins?
Jack
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Just tried it without having a tmproj file, it's working equally as well for me.
As far as I know, there is no TM_PROJECT_DIRECTORY set (by looking in preferences). Is there a temporary location that environment variables are stored that I can check?
Jack
On 09-12-08 3:29 PM, Gerd Knops wrote:
It may have to do with my current project not having an actual tmproj file? I'd like to keep it that way rhough.
I double-checked, TM_PROJECT_DIRECTORY is set to the correct value.
I don't see TODO using TM_SELECTED_FILES or TM_SELECTED_FILE. It does use TM_FILEPATH, but only when called with a 'dir' argument. I double-checked and that branch is not executed.
So I have no idea why it is doing that...
Thanks
Gerd
On Dec 8, 2009, at 4:44 PM, Jack matier wrote:
On 09-12-08 2:29 PM, Gerd Knops wrote:
When I use the TODO bundle I want it to scan the entire project, but it defaults to scanning the file selected in the. project drawer.
That leads to this annoying workflow:
- Call up TODO list
- Scratch head why it's empty
- Remember
- Curse
- Finde selected file in project drawer and deselect
- Call up TODO list
How can I get the TODO bundle to always scan the entire project?
Thanks
Gerd
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
I can't seem to replicate this.
When I use the shortcut or go through the menu it stays selected and scans everything. As far as I know, it operated the same way for me on Leopard as it is now on Snow Leopard. Are you using any plugins?
Jack
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Dec 9, 2009, at 10:23 AM, Jack Matier wrote:
As far as I know, there is no TM_PROJECT_DIRECTORY set (by looking in preferences). Is there a temporary location that environment variables are stored that I can check?
⌃⇧⌘P will “Show TM_* Variables”.
On Dec 8, 2009, at 5:29 PM, Gerd Knops wrote:
It may have to do with my current project not having an actual tmproj file? I'd like to keep it that way rhough.
I double-checked, TM_PROJECT_DIRECTORY is set to the correct value.
I don't see TODO using TM_SELECTED_FILES or TM_SELECTED_FILE. It does use TM_FILEPATH, but only when called with a 'dir' argument. I double-checked and that branch is not executed.
So I have no idea why it is doing that...
I dug deeper... So in case anyone else runs across this:
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.
Gerd
Thanks
Gerd
On Dec 8, 2009, at 4:44 PM, Jack matier wrote:
On 09-12-08 2:29 PM, Gerd Knops wrote:
When I use the TODO bundle I want it to scan the entire project, but it defaults to scanning the file selected in the. project drawer.
That leads to this annoying workflow:
- Call up TODO list
- Scratch head why it's empty
- Remember
- Curse
- Finde selected file in project drawer and deselect
- Call up TODO list
How can I get the TODO bundle to always scan the entire project?
Thanks
Gerd
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
I can't seem to replicate this.
When I use the shortcut or go through the menu it stays selected and scans everything. As far as I know, it operated the same way for me on Leopard as it is now on Snow Leopard. Are you using any plugins?
Jack
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
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
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/000b087291cb75bde763bd75ee2a... 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@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Dec 8, 2009, at 5:29 PM, Gerd Knops wrote:
When I use the TODO bundle I want it to scan the entire project, but it defaults to scanning the file selected in the. project drawer.
That leads to this annoying workflow:
- Call up TODO list
- Scratch head why it's empty
- Remember
- Curse
- Finde selected file in project drawer and deselect
- Call up TODO list
How can I get the TODO bundle to always scan the entire project?
I can confirm this behavior. I hadn’t used TODO for a while and thought maybe it always worked this way and I had forgotten. That could still be the case, but I would love for it to scan an entire project by default if anyone knows a way.