Flow Toggl Plugin
A performant Toggl Track plugin for Flow Launcher to bring time tracking right to your fingertips.
Features
- Powerful, speed-optimised interface
- Auto-complete for any time entry started within the last 366 days
This is significantly longer than the ~1 month of Toggl’s own interface!
- Support for projects, clients, and workspaces
- Coloured icons for projects
- Human-friendly date and time display
- Open source
- Private and secure—all data is stored locally!
Commands
Start new time entries
Continue a previously tracked time entry
Stop currently running time entries
Edit a previously tracked time entry
Delete a previously tracked time entry
Reports of tracked time by projects, clients, and entries
Browser quick-launch shortcut
Demos
tgl

tgl reports

Setup Instructions
-
Install the plugin.
pm install Toggl Track
-
Paste your Toggl Track API key into the plugin settings.
This can be found at the bottom of your Toggl Track profile settings page.
-
Trigger the plugin with the (configurable) action keyword tgl.
Command Reference
This command reference applies to version v4.1.0.
Older Versions:
Quick Links
tgl
Description
:memo: The action keyword lists:
- the result(s) to start a new time entry,
- past time entries that fuzzy match the current input, and
- all currently executable plugin commands.
When the plugin is triggered with no further input, the list of results will contain:
Start an empty time entry now,
Start an empty time entry [x time] ago at previous stop time, and
- A list of currently executable commands.
The previous stop time action is only available if:
- There is a past time entry, and
- There is no currently running time entry.
Relevant Usage Tips will also be displayed if Show Usage Results: Tips is enabled in the plugin settings.

tgl [exact partial command name]
When followed by an exact match for the start of any recognised command name, the list of results will contain all the executable commands which fuzzy match the query.
This allows you to search for plugin commands without the list of results being flooded by past time entry suggestions.


[!NOTE]
To create a new time entry that starts with a partial command name, you may escape the partial command with a backslash (\) character.

tgl [command name]
When followed by a full recognised command name, the respective command will be auto-triggered and the list of results will contain its respective actions.

[!NOTE]
To create a new time entry that starts with a command name, you may escape the command with a backslash (\) character.

tgl ...
When followed by anything other than a command name, the list of results will contain:
Start ... now,
Start ... [x time] ago at previous stop time,
- A list of past time entries whose descriptions fuzzy match the
... query, and
- A list of currently executable commands that fuzzy match the
... query.
The previous stop time action is only available if:
- There is a past time entry, and
- There is no currently running time entry.
Relevant Usage Tips will also be displayed if Show Usage Results: Tips is enabled in the plugin settings.

Usage Examples
tgl
tgl stop
tgl edit
tgl reports
tgl start
Description
:memo: Start a new time entry.
This command exists at the top-level and does not have a command name (ie no tgl start).
Usage Examples
tgl
tgl new time entry
tgl @[project]
tgl new time entry@[project]
tgl Release v1.2.1 -t -10
tgl New time entry -t 30s @[project]
Symbols, Flags, and Key Modifiers
| Name |
Symbol |
Description |
Example |
| Project Selection Prefix |
@ |
Set a project for the new time entry |
@flow-toggl-plugin |
| Name |
Flag |
Description |
Example |
| Time Span |
-t |
Offset the starting time of the new time entry with a specified time span |
-t -30 seconds |
| Clear Description |
-C |
Empty the time entry description from the Flow search bar |
-C |
| Name |
Key Modifier |
Description |
Example |
| Quick-Start from Project Selection |
Alt |
Instantly start the new time entry directly from the project selection screen |
tgl Release v4.0.0@flow-toggl > Alt + Enter |
Notes and Warnings
- Any currently running time entry will first be stopped before starting the new time entry to prevent overlapping entries (mimics Toggl Track behaviour)
- If a time entry is not currently running, there will be an option to start the new time entry at the previous stop time (if one exists).
- To include a command symbol/flag in your time entry description, you can escape it with a backslash (
\), eg tgl Email james\@jamesnzl.xyz \-t -t -5
- The
Time Span flag must be the entered after the time entry description. Anything entered after the -t flag will be ignored.
- Due to a current Flow Launcher bug, the
Alt quick-start will execute if you use the Alt + number hotkey to select a project. This can be circumvented for the time being by changing your Open Result Modifier Key to Ctrl in the Flow Hotkey settings.
Screenshots





tgl continue
Description
:memo: Continue a previous time entry.
This command exists at the top-level and does not have a command name (ie no tgl continue).
Usage Examples
tgl [previous time entry description]
Flags
| Name |
Flag |
Description |
Example |
| List Past Time Entries |
-l |
List all past time entries to continue, even if the query is empty |
tgl -l |
Key Modifiers
| Name |
Key Modifier |
Description |
Example |
| Quick-Start without editing |
Alt |
Instantly continue the time entry without confirmation |
tgl [past time entry] > Highlight result > Alt + Enter |
Notes
- The default behaviour is to autofill the time entry description/project for
start.
- The list is guaranteed to contain all time entries tracked within the preceeding 12 months.
Screenshots


tgl stop
Description
:memo: Stop the current time entry.
Usage Examples
tgl stop
tgl stop -T -4
tgl stop -T 1h
Flags
| Name |
Flag |
Description |
Example |
| End Time Span |
-T |
Offset the stopping time of the current time entry with a specified time span |
-T -30 seconds |
Notes
- This command is only available if there is a currently running time entry.
- Typing the time entry name (or anything else, other than the
End Time Span flag) has no effect.
Screenshots

tgl edit
Description
:memo: Edit a previous time entry.
Usage Examples
tgl edit [previous time entry description] > tgl edit -C > tgl edit New time entry description
tgl edit [previous time entry description] > tgl edit -t 20s -T 1h
tgl edit [previous time entry description] > tgl edit [previous time entry description]@no-project
tgl edit [previous time entry description] > tgl edit [previous time entry description] -R
Symbols and Flags
| Name |
Symbol |
Description |
Example |
| Project Selection Prefix |
@ |
Edit the project of the selected time entry |
@new-project |
| Name |
Flag |
Description |
Example |
| Time Span |
-t |
Offset the starting time of the selected time entry with a specified time span |
-t -30 seconds |
| End Time Span |
-T |
Offset the stopping time of the selected time entry with a specified time span |
-T -30 seconds |
| Resume Time Entry |
-R |
Unstop the time entry (ie resume it, ie restart it from the same start time) |
-R |
| Clear Description |
-C |
Empty the time entry description from the Flow search bar |
-C |
Notes and Warnings
- If an
End Time Span is specified, the time entry will be stopped (if it is currently running).
- The
End Time Span and Resume Time Entry flags are mutually exclusive (cannot be used together).
- The
Clear Description flag will only empty the time entry description from the Flow search bar, so a replacement can be input quickly.
To actually clear a time entry’s description, use the Clear Description flag then hit the Enter action key to save.
tgl edit will use the entered description to perform a fuzzy match against all previously tracked time entries (within the past 12 months), allowing you to quickly apply a previous time entry’s description/project/etc.
To include a command symbol/flag in your time entry description, you can escape it with a backslash (\), eg tgl edit Email james\@jamesnzl.xyz \-t \-T \-C
- The
Time Span/End Time Span flags must be the entered after the time entry description. Anything entered after the flag(s) will be ignored.
- The list of editable time entries will only contain up to
1000 of the most-recent time entries due to Toggl limitations.
Screenshots




tgl delete
Description
:memo: Delete a previous time entry.
Usage Examples
tgl delete [previous time entry description]
Notes
- Typing anything on the deletion confirmation page (ie after selecting a time entry) has no effect.
Screenshots

tgl reports
Description
:memo: View summary and detailed tracked time reports.
Usage Examples
tgl reports day projects project-one
tgl reports week clients client-one
tgl reports month entries [time entry description search query]
tgl reports week-3 projects no-project [time entry description search query]
With Arbitrary Date(s)
tgl reports 21/9 entries
tgl reports 1/1/2021> projects
tgl reports 2/1/2021>5/6/2021 clients
Flags and Options
| Name |
Flag |
Description |
Example |
| Show Stop Time |
-S |
Show time entry stop times when displaying a detailed report |
-S |
| Name |
Option |
Description |
Example |
| Report Span Offset |
[span]-[offset] |
Offset the report span by a specified offset |
month-1 |
| To End Date |
[start]>[end] |
The separator between the [start] and the [end] of the arbitrary span |
21/9>21/10 |
Notes and Warnings
- Arbitrary date(s) are parsed according to your system locale (eg for
en-US, your format of MM/dd will be used instead).
- Date parsing is done by the built-in
DateTimeOffset.TryParse method. Read about what it supports here and here.
- Toggl’s reports API only supports start/end dates—any time components of the parsed span will be lost and reduced to
00:00:00 for both dates.
- Using the
> separator without supplying an [end] date will produce a span between [start] and the current date.
- Reports of tracked time entries can be filtered with a fuzzy search.
- Selecting a time entry will autofill the
tgl start command.
- To include
'-S' in your fuzzy search, you can escape it with a backslash—eg tgl reports day entries \-S
- The
[end] date must be after the [start] date.
- The arbitrary report span must not exceed one year (Toggl API limitation).
Screenshots










With Arbitrary Date(s)



tgl browser
Description
:memo: Open the Toggl Track website in a browser.
Usage Examples
tgl help
Description
:memo: Open plugin command reference.
Usage Examples
Notes
tgl refresh
Description
:memo: Refresh plugin cache.
Usage Examples
Notes
- This command should only rarely need to be used, as the cache is automatically cleared after what should be quite sane cache expiration periods.
- The exception is for any changes made in Toggl Track to the following, as these are cached for up to
3 days:
- Project names/colours/clients,
- Client names,
- Reports time zone, and
- First day of the week.
Licence
The source code for this plugin is licensed under MIT.
评论