pacmax beta

Alfred Pac by jason0x43 on GitHub

toggl

Alfred Workflow for interacting with the Toggl time tracking service

From their README

alfred-toggl

⚠️ Note: This workflow is no longer being actively developed, but pull requests will still be accepted. ⚠️

An Alfred workflow for accessing the Toggl time-tracking service

Screenshot

Installation

Download the latest workflow package from the releases page and double click it — Alfred will take care of the rest.

Usage

The workflow uses one main keyword: “tgl”. The first time you use the keyword, only two items will be available: login, token, and reset. Actioning login will prompt you for your username and password, which are used to temporarily authenticate with toggl.com to retrieve your API token. The token item can be used to directly enter your API token (available at the bottom of your Toggl profile page).

Login

Once you’ve logged in, a number of commands will be available.

Main menu

Items may be either “tabbed” or “actioned”. Tabbing means to press the Tab key, and actioning means to press the Return or Enter key. In general, tabbing will auto-complete, while actioning takes an action or enters a new mode (although it may also auto-complete in certain situations).

The workflow can operate in various modes, described below. For example, the timers mode lists timers and allows the user to create, update, and delete them. To enter the timers mode, type tgl timers and press Enter. The major modes also have direct keywords. Typing tgt is equivalent to typing tgl timers and pressing Enter.

timers

The timers command (tgl timers or tgt) lists all user time entries created during the last 9 days, up to 1000. Entries are listed in reverse chronological order by start time. If a timer is active, its icon will be green.

Timers list

Actioning a time entry will show various properties for that entry, and also allow the entry to be modified or deleted. Holding Cmd while actioning a time entry from the list will continue the time entry (either creating a new instance of the entry or extending its duration, depending on the configured default behavior).

If no entries are running, hold Ctrl while actioning the most recent time entry will "unstop" it. A new entry will be created with the same start time as the original, and the original will be removed. The end result will be as if the entry had never been stopped.

In the timer property list, actioning a property will allow it to be modified. If the property involves selecting an option or a true/false value, a checklist of possible values will be presented. If the property is a string, number, or time, a new value can be entered directly. Pressing Enter will update the property.

Timer menu

projects

The projects (tgl projects or tgp) command lists all user projects. Projects are listed in reverse creation order. If a timer is active, its project icon will be green.

Projects list

Actioning a project will present a list of properties (name), subcommands (delete), and an item for listing the project’s time entries. Actioning a property will show the property’s value, and may allow it to be changed. Actioning a subcommand will execute the subcommand.

Project menu

A new project may be added by entering a unique project name when the projects list is displayed.

tags

The tags command (tgl tags) lists all user tags in alphabetical order. A new tag may be added by entering a unique tag name when the tags list is displayed.

report

The report command (tgl report or tgr) can be used to generate summary time-spent reports for the current or previous days or for the current week (starting on Monday).

Report menu

Actioning one of the report types will show the total hours for the given time frame, as well as a breakdown of how many hours were spent on each project.

This week’s report

Actioning one of the projects will show how time was spent on that project, broken up by task. Multiple time entries with the same description will be grouped into a single task. Actioning a time entry will show how that time entry was distributed over the reporting period.

The report date or period may also be specified manually. A single date may be entered using a variety of formats, such as ‘2016-08-12’ or ‘8/12’. A range of dates may be specified by separating two dates with ‘..’ (like ‘8/10..8/15’).

Custom reporting period

When using the predefined 'week' report type, the start day will be the "beginning of week" day specified in your Toggl account settings.

options

The options command (tgl options or tgo) lists user-configurable options and allows the user to modify them.

Options menu

As in other modes, actioning an option will allow a new value to be specified. Values with discrete options will allow the user to pick from a list, while numbers and strings will allow the user to directly enter a new value.

status

The status command (tgl status or tgs) will download current user data, including account info, tags, projects, and time entries for the last 9 days, from Toggl.com, and will show the currently running timer and the total time spent in the current day.

Current status

logout

The logout commmand will clear the locally stored copy of the user‘s API token, preventing the workflow from interacting with Toggl.com. Other locally cached data and configuration information will not be affected.

reset

The reset command will clear all locally cached data and configuration information, including the API token. This returns the workflow to a clean initial state.

Latest release

  • 2.13.02 years ago, 5.9 MBDownload

    This version updates the workflow to work with Toggl's v9 API. (#66)

    Thanks to @s7anley for the update!

19 earlier releases
  • 2.12.0-universal4 years ago, 5.7 MBDownload

    This is a universal (ARM-compatible) build of v2.12.0.

  • 2.12.05 years ago, 2.7 MBDownload

    This release is primarily an attempt to distribute a signed version of the workflow. Give it a try!

    Updates and bugfixes:

    • Fix a spelling error (#59)
    • Uses the new toggl API endpoint (#60)
    • Sign and notarize the workflow binary (#55)
  • 2.11.17 years ago, 3.2 MBDownload

    This is a binary-only release. There are no code changes; the workflow artifact has just been rebuilt using a newer version of go-alfred to be compatible with Alfred 4.

  • 2.11.09 years ago, 2.3 MBDownload

    This release changes how Cmd+Enter behaves when creating a time entry. When choosing a project (after typing a time entry description), Cmd+Enter will now function just like Enter, selecting a project and starting the time entry.

  • 2.10.09 years ago, 2.3 MBDownload

    This release adds support for billable projects and time entries. A "Billable" property will be shown for projects and time entries in premium workspaces.

    Thanks @blackjid!

  • 2.9.09 years ago, 2.2 MBDownload

    This release will show the client name, if available, below the project name in the project list and timer project selector (#44).

    Thanks @blackjid!

  • 2.8.09 years ago, 2.2 MBDownload

    This release fuzzy sorts time entry modification fields (like "Tags:", "Duration:", etc.) and includes back-end support for tasks (a feature only in pro accounts).

  • 2.7.09 years ago, 2.2 MBDownload

    This release fully implements the tags command. Tags may now be added and deleted, and lists of associated time entries may be generated.

    This release fixes #41.

  • 2.6.19 years ago, 2.2 MBDownload

    This is a bug fix release that corrects an issue with removing tags. It is now possible to remove all tags from a time entry. (#41)

    This fix was handled in a dependency; no code changes were required in this repo.

  • 2.6.09 years ago, 2.1 MBDownload

    This release allows 'Cmd' to be used to start new entries (e.g., holding Cmd while actioning a new time entry will immediately start it). Previously, holding Cmd while actioning a new time entry would do nothing.

  • 2.5.09 years ago, 2.1 MBDownload

    This release fixes a bug in time entry creation that prevent users from creating entries with names similar to existing time entries. A new entry item will now be shown along with matching existing time entries.

    A new option NewTimerFirst option has been added. When this option is true, the new time entry will be shown before any other timers matching the query. When false, it will be shown at the end of the time entry list.

  • 2.4.09 years ago, 2.1 MBDownload

    Overview

    This release improves the workflow's update notification functionality.

  • 2.3.09 years ago, 2.1 MBDownload

    Overview

    This release adds a new "unstop" command, and includes other UI changes and bug fixes.

    Note that there was no 2.2.0. Oops.

    New features

    • When no time entry is running, holding ctrl while actioning the most recent entry will "unstop" it. A new entry will be started from the existing one, the new entry's start time will be set to the start time of the existing entry, and the existing entry will be deleted.
    • The workflow now uses the "beginning of week" setting from a user's Toggl account when generating weekly reports.

    UI updates

    When viewing the projects or time entry lists, or the status view, inactive items are now shown with a gray logo and active items with a red logo. This most closely follows how running or active items are represented in the real Toggl UI.

    Bug fixes

    Continuing a time entry will now copy the existing entry's tags.

  • 2.1.010 years ago, 2.1 MBDownload

    This release includes several minor improvements, and allows reports to be directly accessed via hotkey.

    UI changes

    • Add a new hotkey for directly accessing the current week's report. This may not be broadly useful, but is most meant to be an example of how to set this up.
    • Add an update notification to the status command. Whenever status is run, it will check for new releases and alert you if one exists. Actioning the update item will take you to the release page on GitHub.

    Internal changes

    • Use UIDs in project lists to allow for usage-based sorting of projects (basically, the ones you use most will end up near the top of the list)
    • Handle named spans for report generation; this allows reports for something like "this week" to be accessed just with a name rather than requiring the span to be enumerated.
    • Use some of the new Alfred 3.1 blocks to simplify the workflow.
  • 2.0.010 years ago, 2.0 MBDownload

    This release significantly changes how the UI works to improve usability. The workflow now uses an external trigger to operate in various modes. For example, to list the timers in a project, a user would type tgp project name and press Enter to list project properties, then action Time entries... to list the project's timers. A particular timer could be actioned to show its properties. Overall, this leads to shorter commands and less chance of having a mistyped key lead to an expected result.

    This update also makes more use of modifiers. For example, holding Cmd while actioning a timer in the timers list will continue it rather than showing a list of its properties. Holding down Alt while creating a new time entry will create it with no project (rather than the default behavior of asking the user to select a project).

  • 1.1.710 years ago, 2.4 MBDownload

    This release improves Alfred 3 compatibility.

  • 1.1.610 years ago, 2.2 MBDownload

    This release fixes a bug in the fuzzy matching algorithm used to filter on user input.

  • 1.1.511 years ago, 1.7 MBDownload

    Features

    • New options command for viewing and setting user options
    • Support for duration-only timer continuation. When this option is enabled, continuing an existing time entry will add time to the existing entry rather than creating a new entry.
    • User-configurable time entry rounding. Time entries are always stored with full resolution time, but this setting alters how durations are displayed in the time entry list and for reports.

    Bug fixes

    • Starting a new timer will now show any previously running timer as stopped.
    • Menu items are more intelligently sorted when the user has typed a partial query.
  • 1.1.411 years ago, 1.7 MBDownload

    This is another bug fix release. UI scripting was not properly tested in the previous release, and should be working properly now.