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 possibility to edit start/end time on entry #14

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

akoppela
Copy link
Contributor

@akoppela akoppela commented Jan 8, 2022

Opening PR again. To summarize you don't want to have a variable reaper-hours-timer-mode but instead you want to automatically define what mode user is in, right? Also you want to update reaper--list-format based on mode, correct?

@xendk
Copy link
Owner

xendk commented Jan 9, 2022

Hello again,

Here's what I want you to do: Rename reaper-edit-entry-time to reaper-edit-entry-time--duration and remove the (interactive). Copy that into reaper-edit-entry-time--start-end, and fix that to use start/end time instead. Create a new interactive reaper-edit-entry-time which just checks if start_time is set to determine which of the above to call.

That should make the editing Just Work™, and eliminates the possible error of having the wrong setting for users. Better user interface.

I don't know about reaper--list-format, what do you think? I wouldn't think it's particularly useful to show all the start/end times (I'd be more interested in the duration), but I'm not using start/end tracking. In any case, it'll require a bit more work for the listing to switch (I also think it could be useful if the listing was configurable to some extend) due to the nature of the tabulated-list view, so I think that qualifies for its own PR.

@akoppela
Copy link
Contributor Author

akoppela commented Jan 9, 2022 via email

@xendk
Copy link
Owner

xendk commented Jan 9, 2022

Excellent. 👍

We'll just leave the reaper--list-format as it is then.

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