Gtimelog

Latest version: v0.12.0

Safety actively analyzes 620901 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

0.12.1

~~~~~~~~~~~~~~~~~~~

- Nothing changed yet.

0.12

:Manual section: 1


SYNOPSIS
========

**gtimelog** [options]


DESCRIPTION
===========

``gtimelog`` provides a time tracking application to allow the user to
track what they work on during the day and how long they spend doing it.

Here's how it works: every day, when you arrive to work, start up ``gtimelog``
and type "arrived". Then start doing some activity (e.g. reading mail, or
working on a task). Whenever you stop doing an activity (either when you have
finished it, or when you switch to working on something else), type the name
of the activity into the ``gtimelog`` prompt. Try to use the same text if you
make several entries for an activity (history helps here — just use the up and
down arrow keys). The key principle is to name the activity after you've
stopped working on it, and not when you've started. Of course you can type
the activity name upfront, and just delay pressing the Enter key until you're
done.

There are two broad categories of activities: ones that count as work (coding,
planning, writing proposals or reports, answering work-related email), and
ones that don't (browsing the web for fun, reading personal email, chatting
with a friend on the phone for two hours, going out for a lunch break). To
indicate which activities are not work related add two asterisks to the
activity name::

lunch **
browsing slashdot **
napping on the couch **

If you want some activity (or non-activity) to be completely omitted from the
reports, use three asterisks::

break ***

``gtimelog`` displays all the things you've done today, calculates the total
time you spent working, and the total time you spent "slacking". It also
advises you how much time you still have to work today to get 8 hours of
work done, and how much time is left just to have spent a workday at the
office (the number of hours in a day is configurable).

There are three basic views: one shows all the activities in chronological
order, with starting and ending times; another groups all entries with the
same title into one activity and just shows the total duration; and a
third one groups all entries from the same categories into one line with
the total duration.

At the end of the day you can send off a daily report by choosing ``Report...``
from the menu. You can select a date and a date range (day/week/month) and
preview the report directly in the gtimelog window before sending it. (Actual
sending requires a working local MTA, such as Postfix, to be installed and
configured, which is outside the scope of this document.)

If you make a mistake and type in the wrong activity name, or just forget to
enter an activity, don't worry. ``gtimelog`` stores the time log in a simple
plain text file ``~/.gtimelog/timelog.txt`` (or
``~/.local/share/gtimelog/timelog.txt``). Every line contains a timestamp and
the name of the activity that was finished at the time. All other lines are
ignored, so you can add comments if you want to — just make sure no comment
begins with a timestamp. You do not have to worry about ``gtimelog``
overwriting your changes — ``gtimelog`` always appends entries at the end of
the file, and does not keep the log file open all the time. You do have to
worry about overwriting changes made by ``gtimelog`` with your editor — make
sure you do not enter any activities in ``gtimelog`` while you have
``timelog.txt`` open in a text editor.


OPTIONS
=======

--version
Show program's version number and exit.

-h, --help
Show this help message and exit.

--debug
Show debug information.

--prefs
Open the preferences window.

--email-prefs
Open the preferences window on the email page.


FILES
=====

gtimelog uses XDG-compliant config and data directories by default
(~/.config/gtimelog, ~/.local/share/gtimelog). For backwards compatibility, if
~/.gtimelog exists, it will be used instead.

| **~/.gtimelog/timelog.txt**
| **~/.local/share/gtimelog/timelog.txt**

Activity log file. Each line contains an ISO-8601 timestamp
(YYYY-MM-DD HH:MM:SS) followed by a ":" and a space, followed by the
activity name. Lines are sorted chronologically. Blank lines
separate days. Lines starting with ` are comments.

| **~/.gtimelog/tasks.txt**
| **~/.local/share/gtimelog/tasks.txt**

Tasks to be shown in the task pane. Each line is either "task name"
or "category: task name", lines starting with a ` are comments.

| **~/.gtimelog/sentreports.log**
| **~/.local/share/gtimelog/sentreports.log**

A CSV file listing reports that have been sent. The columns are:
timestamp, report kind (daily/weekly/monthly), report date, recipient's
email address.

| **~/.gtimelog/gtimelogrc**
| **~/.config/gtimelog/gtimelogrc**

Legacy configuration file for gtimelog 0.10 and older. If it exists when
gtimelog 0.11 or newer starts for the first time, settings from it will be
migrated to gsettings.


!/usr/bin/python3
"""
Script to run GTimeLog from the source checkout without installing
"""
import os
import sys


basedir = os.path.dirname(os.path.realpath(__file__))
pkgdir = os.path.join(basedir, 'src')
sys.path.insert(0, pkgdir)

from gtimelog.main import main noqa: E402


main()


Changelog
---------

0.12.0

~~~~~~~~~~~~~~~~~~~

- This version talks to an SMTP server instead of relying on /usr/sbin/sendmail
for email sending. This should work even in flatpaks.

- New command line options: --prefs, --email-prefs.

- Use libsecret instead of gnome-keyring.

- GTK 3.18 or newer is now required (GH: 131).

- Soap 3.0 is now required (GH: 238).

- Fixed an AttributeError in the undocumented remote task list feature
(GH: 153).

- Make the undocumented remote task list feature validate TLS certificates (GH:
214).

- Add Python 3.8, 3.9, 3.10, 3.11, and 3.12 support.

- Drop Python 2.7, 3.5, and 3.6 support.

- Add support for positive time offset syntax in entries.

- Focus the task entry on Ctrl+L (GH: 213).

- Change entry search to be fuzzy. It is now only required to enter characters
of the entry in the correct order to find an entry.

- Enforce minimum and maximum size for the task pane (GH: 219).

- Task pane now preserves the order of task groups to match the order in
tasks.txt (GH: 224).

- Grouped task entries can now be sorted by start date, name, duration or
according to tasks.txt order (GH: 228).

- Add the ability to change the last entry using Ctrl+Shift+BackSpace (GH: 247).

0.11.3

~~~~~~~~~~~~~~~~~~~

- Use a better workaround for window.present() not working on Wayland.

- Fix a rare AssertionError on quit.

- Fix problem with "Edit log" and "Edit tasks" menu entries on Windows
(GH: 133).

- Do not include ``***`` entries in slacking total (GH: 138).

- Show average time per day spent on filtered tasks (GH: 146).

- Drop Python 3.4 support.

0.11.2

~~~~~~~~~~~~~~~~~~~

- Window menu now includes items previously shown only in the app menu:
Preferences, About (GH: 126).

- Keyboard shortcuts window (press Ctrl+Shift+?).

- Dropped the help page (there was only one and it was only listing keyboard
shortcuts, and it was also incomplete and had no translations).

- Bugfix: if timelog.txt was a symlink, changes to the symlink target would
not get noticed automatically (GH: 128).

0.11.1

~~~~~~~~~~~~~~~~~~~

* The undocmented remote task list over HTTP(S) feature is now able to ask
for basic HTTP authentication credentials and store them in gnome-keyring
(GH: 109).

* Bugfix: entries with just a category and no task that did not have
a trailing space after the ':' were considered to be uncategorised
(GH: 117).

* Add Python 3.7 support.

* Drop Python 3.3 support.

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.