Skip to content

Commit da93890

Browse files
committed
Add support for client and workspace name
1 parent 6feaadb commit da93890

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Clockify/ToggleAction.cs

+5-3
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,11 @@ private string CreateTimerText(string timerTime)
112112
if (!string.IsNullOrEmpty(_settings.TitleFormat))
113113
{
114114
return _settings.TitleFormat
115-
.Replace("{projectname}", _settings.ProjectName)
116-
.Replace("{taskname}", _settings.TaskName)
117-
.Replace("{timername}", _settings.TimerName)
115+
.Replace("{workspaceName}", _settings.WorkspaceName)
116+
.Replace("{projectName}", _settings.ProjectName)
117+
.Replace("{taskName}", _settings.TaskName)
118+
.Replace("{timerName}", _settings.TimerName)
119+
.Replace("{clientName}", _settings.ClientName)
118120
.Replace("{timer}", timerTime);
119121
}
120122

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ Until the plugin is available in the [Stream Deck Store](https://apps.elgato.com
2121
- **Client Name:** *(optional)* Set the client name assigned to the specified project
2222
- **Title Format:** *(optional)* Specify the format for the title to be displayed on the button.
2323
- This can include any of:
24+
- `{workspaceName}` : The workspace name
2425
- `{projectName}` : The project name
2526
- `{taskName}` : The task name
26-
- `{timerName}` : The timer name
27+
- `{timerName}` : The timer name
28+
- `{clientName}` : The client name
2729
- `{timer}` : The current timer value when running. Blank when not running
2830
- **Server Url:** *(required)* Change from the *default* URL to the API URL of your own/company instance
2931

0 commit comments

Comments
 (0)