Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature; add a TODO pane #21

Closed
Tieske opened this issue Jul 26, 2012 · 6 comments
Closed

Feature; add a TODO pane #21

Tieske opened this issue Jul 26, 2012 · 6 comments
Assignees

Comments

@Tieske
Copy link
Contributor

Tieske commented Jul 26, 2012

showing just a list of comments marked with TODO

@ghost ghost assigned pkulchenko Jul 26, 2012
@petsagouris
Copy link

Does this mean that all the project files need to be parsed ?

@pkulchenko
Copy link
Owner

Not necessarily. I was thinking about showing the list from the current file. Not sure whether to update it if you switch between files (probably not).

Also, I think I'll make it more generic than just TODO. You can select any text and then select "Add filter" (or something like that) and the tab will show all the lines from the current file that include that text. This way you can specify what text you may want to search for. When you move the cursor in that tab, the position in the file is also updated, so you can use it for fast navigation between your TODO lines.

@Tieske
Copy link
Contributor Author

Tieske commented Jul 29, 2012

If you set the scope to the 'open' files, you need to parse them once (when opening), and only the active one after modifications. That would be a nice compromise I think.
The more flexible approach; using a filter, sounds good. Allows to search all references of definitions and usage of methods/objects/identifiers etc.
In general, it should list the filename (only if it handles more than 1 file, obviously useless otherwise), linenumber, and the line itself. Sorted by filename -> linenumber.

@pkulchenko
Copy link
Owner

The IDE may already have something very similar to what you are describing: if you go to Search | Find in Files and type in "TODO", you will get a list of files with that string, including the line number and the line itself. If you double click on that line, the cursor will be positioned on that line in the file.

I was thinking about something a bit more dynamic that will reflect the changes you may be making in the file(s), but if what's there is going to work for you, please let me know.

@Tieske
Copy link
Contributor Author

Tieske commented Jul 31, 2012

Its indeed the more dynamic approach, I use this feature in Visual Studio a lot. I usually setup structures and as it continues fill in more and more details, every thing uncertain, or chekcs and balances left open are marked with todo. This allows make to rest assured that nothing gets lost while working at it.

@pkulchenko
Copy link
Owner

This has been covered by todo and todoall packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants