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

Reword the command and function 'snooze' to 'delay' since it's more appropriate #1

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

QuentinGruber
Copy link
Owner

@QuentinGruber QuentinGruber commented Sep 10, 2024

Rename the "snooze" command and function to "delayBreak" for better clarity.

  • lua/pomodoro/pomodoro.lua:

    • Rename the function pomodoro.snooze to pomodoro.delayBreak.
    • Rename the command PomodoroSnooze to PomodoroDelayBreak.
    • Rename the snooze_duration field in the Pomodoro class to delay_duration.
    • Rename the snooze_duration field in the PomodoroOpts class to delay_duration.
  • lua/pomodoro/ui.lua:

    • Rename the PomodoroSnooze command key to PomodoroDelayBreak.
  • lua/pomodoro/tests/pomodoro_spec.lua:

    • Rename the snooze_duration field in the test setup to delay_duration.
  • README.md:

    • Rename the PomodoroSnooze command in the usage section to PomodoroDelayBreak.

For more details, open the Copilot Workspace session.

QuentinGruber and others added 2 commits September 10, 2024 23:22
…ppropriate

Rename the "snooze" command and function to "delayBreak" for better clarity.

- **lua/pomodoro/pomodoro.lua**:
  - Rename the function `pomodoro.snooze` to `pomodoro.delayBreak`.
  - Rename the command `PomodoroSnooze` to `PomodoroDelayBreak`.
  - Rename the `snooze_duration` field in the `Pomodoro` class to `delay_duration`.
  - Rename the `snooze_duration` field in the `PomodoroOpts` class to `delay_duration`.

- **lua/pomodoro/ui.lua**:
  - Rename the `PomodoroSnooze` command key to `PomodoroDelayBreak`.

- **lua/pomodoro/tests/pomodoro_spec.lua**:
  - Rename the `snooze_duration` field in the test setup to `delay_duration`.

- **README.md**:
  - Rename the `PomodoroSnooze` command in the usage section to `PomodoroDelayBreak`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/QuentinGruber/pomodoro.nvim?shareId=XXXX-XXXX-XXXX-XXXX).
@QuentinGruber QuentinGruber merged commit 9b4c500 into master Sep 10, 2024
3 checks passed
@QuentinGruber QuentinGruber deleted the rename-snooze-to-delay branch September 10, 2024 21:31
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.

1 participant