Skip to content
New issue

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

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

Already on GitHub? # to your account

Editable task titles #10

Merged
merged 2 commits into from
Apr 11, 2024
Merged

Editable task titles #10

merged 2 commits into from
Apr 11, 2024

Conversation

mmstick
Copy link
Contributor

@mmstick mmstick commented Apr 11, 2024

This utilizes the new editable_input widget in libcosmic. Some further refinements will be necessary, but it's now possible to test the feature in practice here.

@mmstick mmstick force-pushed the editable branch 2 times, most recently from 7c6c1a7 to 4bf0835 Compare April 11, 2024 12:54
@edfloreshz
Copy link
Member

edfloreshz commented Apr 11, 2024

Everything looks good, only thing I noticed is that it is now significantly harder to open the task details now that we have an editable input, I'm thinking that maybe we should have a dedicated details button instead of making the list item clickable.

We can merge this regardless, I'll make the changes later.

@edfloreshz edfloreshz merged commit 3b3c8ef into cosmic-utils:main Apr 11, 2024
@mmstick mmstick deleted the editable branch April 11, 2024 17:49
@edfloreshz
Copy link
Member

Thanks Michael! 🎉

@mmstick
Copy link
Contributor Author

mmstick commented Apr 11, 2024

Perhaps an editable input should not capture an event unless it is in write mode

@mmstick
Copy link
Contributor Author

mmstick commented Apr 11, 2024

I will push a fix to libcosmic

@mmstick
Copy link
Contributor Author

mmstick commented Apr 11, 2024

The fix is here: pop-os/libcosmic#391

@edfloreshz
Copy link
Member

How do you feel about a double click to edit the input?

@mmstick
Copy link
Contributor Author

mmstick commented Apr 11, 2024

Looking at the keyboard shortcuts page, the spec says to make the text editable and focused on a single click, and select all text on a double click

@edfloreshz
Copy link
Member

That sounds good as well.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants