GTG

Feature request: Command line interface

Bug #680798 reported by jbatista
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTG
Fix Released
High
Bryce Harrington

Bug Description

One of my most-used applications is xterm (well, actually gnome-terminal). If I have a way to avoid switching one hand between the keyboard and mouse or pad it would be nice (as also most laptop users would agree).

I think it would be great if it were possible to do some operations with GTG using the command line interface. Add is already available through gtg_new_task, but it opens up a *WINDOW* (which you then have to look for the "save" button). Writing something such as gtg_new_task "Buy beer" seems a bit of a mouthful (sure, I can assign gtg_new_task with an alias), but what about marking an item as "done" or even listing them?

I agree that there are other CLI-based programs doing it, but due to GTG's integration with Gnome, I'm wondering if this feature makes sense in the program's context and whether it fits as an internal feature or as a plugin.

Revision history for this message
Bryce Harrington (bryce) wrote :

There is already a new gtcli command line utility included. It talks across dbus to a running gtg.

bryce@blumonc:~/src/gtg/gtg$ ./gtcli
gtcli -- a command line interface to gtg

Options:
  -h, --help This help

Basic commands:
  gtcli new Create a new task
  gtcli show <tid> Display detailed information on given task id
  gtcli edit <tid> Opens the GUI editor for the given task id
  gtcli delete <tid> Removes task identified by tid
  gtcli list [all|today|<filter>|<tag>]... List tasks
  gtcli count [all|today|<filter>|<tag>]... Number of tasks
  gtcli summary [all|today|<filter>|<tag>]... Report how many tasks starting/due each day
  gtcli postpone <tid> <date> Updates the start date of task
  gtcli close <tid> Sets state of task identified by tid to closed
  gtcli browse [hide|show] Hides or shows the task browser window

http://gtg.fritalk.com/

Changed in gtg:
status: New → Fix Committed
Revision history for this message
jbatista (jmnbatista) wrote :

Now I get it; in Ubuntu Lucid, gtcli is not packaged (for some reason I do not know). I'll try looking into it and file a request to include it (in Lucid if possible).

Revision history for this message
jbatista (jmnbatista) wrote :

Hmmm looks like I should have done some more investigation before posting. While Googling I've found one implementation at http://www2.bryceharrington.org:8080/files/gtcli but I'm not sure if it's the latest. Will this CLI utility be included in Ubuntu's packaging anytime soon?

Revision history for this message
Bryce Harrington (bryce) wrote :

Yeah, when ubuntu updates to a newer (0.3-ish) gtg release it should get pulled in and packaged automatically.

In case a 0.3 release doesn't look likely in the natty time-frame, maybe we should do a 0.2.5 with gtcli and some bug fixes. I'll raise this on the list.

Changed in gtg:
importance: Undecided → High
assignee: nobody → Bryce Harrington (bryce)
milestone: none → 0.2.9
Izidor Matušov (izidor)
Changed in gtg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.