More productivity tips

I learned a number of useful productivity tips during this akademy, so as the self-appointed guy-who-shares-productivity-tips-with-the-rest-of-kde, I thought I would share them here :-)

Read more below for yokadi, ack-grep, autojump, and cgdb.

The first one is yokadi, a command-line Todo-List manager program, which allows me to finally start applying the principles of "Getting things done" so I stop forgetting important tasks. http://yokadi.github.com - it's developed by two KDE contributors, actually: Aurélien Gateau of gwenview fame, and Sébastien Renard, coordinator of french translations.

The second one is ack-grep, a grep alternative with more human-readable output, builtin skipping of unwanted files (.svn subdirs, backup files, etc), ability to grep only certain file types, perl regexps, and more. Didn't use it much yet, though.

The third one is autojump: a "cd" command that learns, over time, where you go most often. So very quickly you can jump into the most commonly used folders by simply typing their name rather than their full path. Get it from "git clone git://github.com/joelthelion/autojump.git"

Last but definitely not least: "cgdb", a very useful (text-based) wrapper around gdb, which shows the source code in a splitter above the usual gdb prompt. This is really great, I was looking for this for a very long time. Typing "list" all the time in gdb is so cumbersome. gdb in emacs can also show source code, but I always forgot to run gdb in emacs, while now I have alias gdb=cgdb ;), and I didn't figure out how to attach gdb-in-emacs to a running process, and the keybindings were different, etc. cgdb, on the other hand, can be started exactly like gdb, and is editor-independent.

With thanks to Aurélien and Sébastien for all these useful tips!


What does cgdb offer that the gdb built-in ncurses interface doesnt have? (just in case: ncurses interface can be activated with the emacs style shortcut key C-x a)

By metellius at Thu, 07/09/2009 - 00:50

I didn't know that gdb feature, but now that I tried it as well, I can say that cgdb does it much better.
* It doesn't need an undocumented shortcut to show the sources :-)
* The stderr output from the program doesn't mess up the sources section like it does in gdb
* In cgdb, the arrow up/arrow down keys keep navigating in history like we are used to, while in gdb they make the source section scroll
* cgdb does nice syntax coloring of the sources, while gdb shows them uncolored inside an ugly black frame.

(and there are more features like Esc, navigate in sources, space to add breakpoint, "i" to go back to the prompt (insert-mode, in vi philosophy), but maybe gdb has something similar, not sure)

By David Faure at Thu, 07/09/2009 - 08:53

Oh, and cgdb stores the history of typed commands (like gdb does on Mac OS X, but I never found how to activate that on linux). So you can quit cgdb and restart it the day after, and Key_Up still remembers the commands you typed the day before.

On the other hand, Delete and Backspace are currently broken in cgdb here :-(

By David Faure at Sat, 07/11/2009 - 23:59

In case anyone reads this via google, an update on the history stuff: to save history in gdb, the ~/.gdbinit line to use is:

set history save

But anyway, we added that to kdesdk/scripts/kde-devel-gdb so you should have it enabled automatically now.

By David Faure at Wed, 09/15/2010 - 14:36

If _you_ are using the Getting Stuff Done tips, then how will the rest of us ever keep up?

By randomguy3 at Thu, 07/09/2009 - 11:39

Thanks for the nice words about Yokadi!

I think it's time we change the website tag line to "As seen on David Faure's laptop" :)

By aurélien gâteau at Fri, 07/10/2009 - 07:52

Autojump sounds the most interesting to me. Maybe this would be an good feature for Dolphin. KDE should be the productivity desktop.

By brainsqueezer at Mon, 07/13/2009 - 15:57