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

add hotkeys for unslecting and deleting timespans #148

Merged
merged 5 commits into from
Oct 23, 2023

Conversation

CalebBassham
Copy link
Contributor

Added hotkeys for deleting timespans.

Selecting a timespan and pressing delete or backspace will delete it.
Pressing escape will unselect.

Pressing escape after creating a new timespan will delete the newly created timespan until it or another timespan has been selected. Side note: I think it would be preferred to set newly created timespans as selected and open the popper menu for tagging and whatnot and this side case would no longer be necessary as just pressing delete and backspace / the trash icon would feel more natural. But... I can't figure out how to get that to work and without it, this feels pretty good.

Copy link
Member

@jmattheis jmattheis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contributes, I've added remarks in sub comments.

ui/src/timespan/calendar/CalendarPage.tsx Outdated Show resolved Hide resolved
ui/src/timespan/calendar/CalendarPage.tsx Outdated Show resolved Hide resolved
ui/src/timespan/calendar/CalendarPage.tsx Outdated Show resolved Hide resolved
ui/src/timespan/calendar/CalendarPage.tsx Outdated Show resolved Hide resolved
ui/src/timespan/calendar/CalendarPage.tsx Outdated Show resolved Hide resolved
ui/src/timespan/calendar/CalendarPage.tsx Outdated Show resolved Hide resolved
ui/src/timespan/TimeSpan.tsx Show resolved Hide resolved
ui/src/timespan/TimeSpan.tsx Show resolved Hide resolved
ui/src/timespan/TimeSpan.tsx Show resolved Hide resolved
Copy link
Member

@jmattheis jmattheis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed some linting errors, otherwise 👍

@jmattheis jmattheis merged commit 6842b5c into traggo:master Oct 23, 2023
CalebBassham added a commit to CalebBassham/traggo-server that referenced this pull request Oct 23, 2023
jmattheis added a commit that referenced this pull request Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants