Files
popcyclical-blog-archive/posts/2009-12-30-console-launcher-hot-key-tilda.md
T

35 lines
4.2 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Console Launcher Hot Key - “Tilda”"
date: 2009-12-30T04:01:00-06:00
slug: console-launcher-hot-key-tilda
published: true
---
Interacting with your computer using a mouse-driven GUI makes many tasks quick and easy to accomplish.  However, when use of the keyboard is required, a healthy amount of context shifting between these two non-complimentary input devices can occur.  And thats bad news for turning thoughts into actions in a timely matter. So, whats the consequence of spending a few extra seconds to switch back and forth?  As [John D. Cook points out](http://www.johndcook.com/blog/2009/11/09/using-windows-without-a-mouse/), it adds up:
>
**Its a matter of keeping up with your thoughts**. Suppose some series of tasks takes 20 seconds with a mouse but you can accomplish the same tasks in 12 seconds using the keyboard. The big deal isnt that youve saved 8 seconds; the big deal is that youre more likely to finish your tasks before you lose the thought that motivated them.
I interact with the[![Tilda - Console Launcher Hot Key](../media/images/ConsoleLauncherHotKeyTilda_66F3/tilda_console_thumb.png)](../media/images/ConsoleLauncherHotKeyTilda_66F3/tilda_console.png) file system on a very regular basis.  I havent measured this, but I bet Ill open Windows Explorer (or [xplorer²](http://www.zabkat.com/)) at least two or three times for every hour Im at the computer.  Im forever poking around for documents and restructuring directories so that theyll be easier to find next time.  Many times Ill want to execute a command line statement in the path that Im browsing.  There are [several](http://www.burgaud.com/open-command-window-here/) [different](http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx) [strategies](http://code.kliu.org/cmdopen/) for getting a “Open Command Prompt Here” to the explorer context menu, but they all require a right-click (or [simulating one with the keyboard](http://www.ehow.com/how_8219_click-using-keyboard.html)).  Theres an easier way.
A couple years ago I read an article on [instructables](http://www.instructables.com) about a [“Drop Down”, Quake-style command prompt for Windows](http://www.instructables.com/id/%22Drop-Down%22%2c-Quake-style-command-prompt-for-Window/).  The project uses [AutoHotKey](http://www.autohotkey.com/) to launch and hide a console window using a keyboard shortcut.  Neat!  It works great, except that it always dumps you in the your %HOMEPATH%.  Ive taken the script and upgraded it to navigate directly to the currently open path in Windows Explorer its name is **Tilda**.
For example Ive got an explorer window open in `C:\console\UnxUtils\usr\local\wbin` and I want to string some of those juicy unix command line utilities together.  I can now simply do **Win**+**~**, and Ive got a new console instance in the right place.  As with the original, it will minimize/maximize the console window on subsequent usage of the key combination. 
I have this nasty habit of navigating around the file system when Im using Windows Explorer.  After running some unix commands, I might have a hankering to run MSBuild.exe (ok, probably not, but who knows?).  I could tediously type the path, or, I could have Tilda automatically enter it for me.  From the new path in Windows Explorer, I type a combination **Win**+**Shift**+**~** and the `chdir` command gets sent to the current console window.[![Tilda - chdir](../media/images/ConsoleLauncherHotKeyTilda_66F3/tilda_chdir_thumb.png)](../media/images/ConsoleLauncherHotKeyTilda_66F3/tilda_chdir.png)
Please note that Im using (and recommend) [Console](http://sourceforge.net/projects/console/) as a command line window host.  **Tilda** is currently set to use this, but the script can be easily modified to use `cmd.exe` or whichever console window host you prefer.
**Tilda **- open and close a console window using a hot key.  Automatically navigates to the currently open explorer window.  Save some trips to the mouse and make getting to the command line easier.
[Download Tilda](/content/binary/tilda.zip) ([AutoHotKey](http://www.autohotkey.com/) source and binary)