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 6feaadb commit da93890
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Clockify/ToggleAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,11 @@ private string CreateTimerText(string timerTime)
if (!string.IsNullOrEmpty(_settings.TitleFormat))
{
return _settings.TitleFormat
.Replace("{projectname}", _settings.ProjectName)
.Replace("{taskname}", _settings.TaskName)
.Replace("{timername}", _settings.TimerName)
.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 da93890

Please sign in to comment.