Skip navigation.
KDE Developer's Journals

More productivity tips

dfaure's picture

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 Smiling

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 Eye-wink, 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!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
brainsqueezer's picture

Dolphin

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

aurélien gâteau's picture

Time for a new tag line

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" Smiling

randomguy3's picture

Falling behind

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

metellius's picture

cgdb

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)

dfaure's picture

cgdb vs gdb

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 Smiling
* 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)

dfaure's picture

more about cgdb

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 Sad

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.