Skip to content

Commit

Permalink
Add support for client and workspace name
Browse files Browse the repository at this point in the history
  • Loading branch information
eXpl0it3r committed Feb 8, 2024
1 parent b2c5551 commit 58d3fde
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Clockify/ToggleAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,11 @@ private string CreateTimerText(string timerTime)
{
return _settings.TitleFormat
.ToLower()
.Replace("{workspacename}", _settings.WorkspaceName)
.Replace("{projectname}", _settings.ProjectName)
.Replace("{taskname}", _settings.TaskName)
.Replace("{timername}", _settings.TimerName)
.Replace("{clientname}", _settings.ClientName)
.Replace("{timer}", timerTime);
}

Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ Until the plugin is available in the [Stream Deck Store](https://apps.elgato.com
- **Client Name:** *(optional)* Set the client name assigned to the specified project
- **Title Format:** *(optional)* Specify the format for the title to be displayed on the button.
- This can include any of:
- `{workspaceName}` : The workspace name
- `{projectName}` : The project name
- `{taskName}` : The task name
- `{timerName}` : The timer name
- `{timerName}` : The timer name
- `{clientName}` : The client name
- `{timer}` : The current timer value when running. Blank when not running
- **Server Url:** *(required)* Change from the *default* URL to the API URL of your own/company instance

Expand Down

0 comments on commit 58d3fde

Please sign in to comment.