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

Only show the first line of multi-line tasks in the task list #693

Open
dlaidig opened this issue Mar 27, 2024 · 0 comments
Open

Only show the first line of multi-line tasks in the task list #693

dlaidig opened this issue Mar 27, 2024 · 0 comments

Comments

@dlaidig
Copy link

dlaidig commented Mar 27, 2024

Feature Request

What problem does it solve?

Sleek supports creating tasks that consist of multiple lines and encodes the newlines as DLE in the todo.txt file. However, the newlines only seem to have some effect in the task editor. In the task list, they are just shown as spaces and the entire content of the multi-line task is just put in one line. If there are long task descriptions, the task list becomes very cluttered.

I think it would be a lot better if only the first line is shown in the task list (with some kind of indicator that there is more content).

This issue goes in the direction of #510 but is a lot simpler with a much narrower scope. I hope that makes it relatively easy to implement. I would be really really glad to see the multi-line feature becoming useful for my use case in the near future. 😃

How does the user interface change to accommodate this request?

There are a few ways of implementing this, so I'll try to give some suggestions. As long as by default only the first line of text is visible in the task list, I'm happy.

  • The probably fastest implementation would be to show a badge (like for due text, possibly with just "..." as the content) that indicates that some content is missing. To see the full text, you can just click on the task and open it in the editor.
  • Clicking on the "..." badge could also open a dialog with the full text.
  • A bit nicer would be a way to expand the text within the task list, e.g., with some < / v arrow button. When expanding the item, the newlines should probably be rendered as newlines instead of spaces.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant