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

Multiline todos when following lines are indented #365

Open
svallory opened this issue Dec 28, 2022 · 1 comment
Open

Multiline todos when following lines are indented #365

svallory opened this issue Dec 28, 2022 · 1 comment

Comments

@svallory
Copy link

First of all: thanks for the great tool!

I know it's been said in #35 that "there's no way to know if the following line belongs to a todo or not" but I would like to suggest that any line following a TODO counts as part of that todo as long as they are indented in relation to the starting position of the TODO marker.

I would even suggest a minimum of 5 spaces so the todo text is nicely aligned and there's less room for mistakes.

e.g:

// TODO This would than be
//      a multiline todo :)
@fabiospampinato fabiospampinato changed the title Suggestion: Multiline todos when following lines are indented Multiline todos when following lines are indented Mar 8, 2023
@fabiospampinato
Copy link
Owner

Technically it's implementable, but the current system relies quite heavily on the fact that that one object in the todo file occupies one line, if that's not the case some optimizations go out of the window. It could still be made fast, but it would require some significant changes.

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

2 participants