<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qcd, branch v0.1.0</title>
<subtitle>Define shortcuts to directories for quick `cd`s</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/qcd/'/>
<entry>
<title>Remove 'new interface.txt'</title>
<updated>2016-07-23T02:09:16+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-07-23T02:09:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/qcd/commit/?id=3631742cb99b1ea2527de1e2c334e6edb8afc483'/>
<id>3631742cb99b1ea2527de1e2c334e6edb8afc483</id>
<content type='text'>
This was our ideas file when implementing the new database supported
version of `qcd`. Now that it's working the way we wanted it to, this
ideas file can be removed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This was our ideas file when implementing the new database supported
version of `qcd`. Now that it's working the way we wanted it to, this
ideas file can be removed.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add README.md</title>
<updated>2016-07-23T02:04:00+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-07-23T02:04:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/qcd/commit/?id=b247c9a849f458273d1d01ccc7b96d210ae142fd'/>
<id>b247c9a849f458273d1d01ccc7b96d210ae142fd</id>
<content type='text'>
Include a short description, example usage information, installation
instructions, and license information.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Include a short description, example usage information, installation
instructions, and license information.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add license information (GPLv3)</title>
<updated>2016-07-22T08:34:32+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-07-22T08:34:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/qcd/commit/?id=76389e82bcb37d59173bb29de63b190640946beb'/>
<id>76389e82bcb37d59173bb29de63b190640946beb</id>
<content type='text'>
* COPYING file
* Copyright headers on source files
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* COPYING file
* Copyright headers on source files
</pre>
</div>
</content>
</entry>
<entry>
<title>qcd.bash-completion: Remove path variables</title>
<updated>2016-07-22T08:24:44+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-07-22T08:24:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/qcd/commit/?id=b3c735fb2f3c7ac648495b2c5beaf0d3e1adc411'/>
<id>b3c735fb2f3c7ac648495b2c5beaf0d3e1adc411</id>
<content type='text'>
Assume we'll get these from the main `qcd` script as currently they're
sourced to the global environment. This way at least we're not repeating
those lines in two places.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Assume we'll get these from the main `qcd` script as currently they're
sourced to the global environment. This way at least we're not repeating
those lines in two places.
</pre>
</div>
</content>
</entry>
<entry>
<title>Update Bash completion file to work with database-enabled version</title>
<updated>2016-07-22T05:54:47+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-07-22T05:54:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/qcd/commit/?id=70f810bc7877918d09346673de6d4906c7f82f51'/>
<id>70f810bc7877918d09346673de6d4906c7f82f51</id>
<content type='text'>
Bash completion now works for the new database-backed `qcd`.

Arguments 1 and 2 are completed by searching the `qcd` database.
Argument 3 is completed using default Bash completion by setting
`COMPREPLY` to `()` and adding `-o default` to the `complete` call as
recommended here:

http://stackoverflow.com/questions/12933362/getting-compgen-to-include-slashes-on-directories-when-looking-for-files/19062943#19062943

Copied over the directory variables from the `qcd` script. Not sure if I
should be putting them somewhere else so they're not in two different
places. I probably should. I was also concerned that once the scripts
are sourced, these variables will be in a user's shell environment. That
doesn't feel right, but I'm going to ignore it for now.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bash completion now works for the new database-backed `qcd`.

Arguments 1 and 2 are completed by searching the `qcd` database.
Argument 3 is completed using default Bash completion by setting
`COMPREPLY` to `()` and adding `-o default` to the `complete` call as
recommended here:

http://stackoverflow.com/questions/12933362/getting-compgen-to-include-slashes-on-directories-when-looking-for-files/19062943#19062943

Copied over the directory variables from the `qcd` script. Not sure if I
should be putting them somewhere else so they're not in two different
places. I probably should. I was also concerned that once the scripts
are sourced, these variables will be in a user's shell environment. That
doesn't feel right, but I'm going to ignore it for now.
</pre>
</div>
</content>
</entry>
<entry>
<title>qcd: Run initial setup</title>
<updated>2016-07-22T05:51:46+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-07-22T05:51:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/qcd/commit/?id=950c61432dd973bb0ba2c19a0483740d9e1f7d01'/>
<id>950c61432dd973bb0ba2c19a0483740d9e1f7d01</id>
<content type='text'>
In addition to creating the config directory, also touch the database
file to ensure it exists before we query it with `awk` in
`shortcut_exists`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In addition to creating the config directory, also touch the database
file to ensure it exists before we query it with `awk` in
`shortcut_exists`.
</pre>
</div>
</content>
</entry>
<entry>
<title>qcd: Add descriptive comment to `change_shortcut`</title>
<updated>2016-07-22T03:25:19+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-07-22T03:25:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/qcd/commit/?id=80504f6387f9bb2e831588e7ce933ef6f78383dd'/>
<id>80504f6387f9bb2e831588e7ce933ef6f78383dd</id>
<content type='text'>
Add a comment describing what those seemingly random slashes are for.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a comment describing what those seemingly random slashes are for.
</pre>
</div>
</content>
</entry>
<entry>
<title>qcd: Enable `cd` into paths with spaces</title>
<updated>2016-07-22T03:20:37+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-07-22T03:20:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/qcd/commit/?id=30fcb9ed86d95be7c33f527f04e167682728627a'/>
<id>30fcb9ed86d95be7c33f527f04e167682728627a</id>
<content type='text'>
Previously, the `awk` command would only print out the second column,
meaning that if we had a database entry like:

    qproj	/Users/user/code/Q Proj

`awk` would give us:

    /Users/user/code/Q

(missing the " Proj" part).

Output all columns except the first using this `awk` substitution by Ed
Morton on Stack Overflow:
http://stackoverflow.com/questions/2626274/print-all-but-the-first-three-columns/18819899#18819899
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, the `awk` command would only print out the second column,
meaning that if we had a database entry like:

    qproj	/Users/user/code/Q Proj

`awk` would give us:

    /Users/user/code/Q

(missing the " Proj" part).

Output all columns except the first using this `awk` substitution by Ed
Morton on Stack Overflow:
http://stackoverflow.com/questions/2626274/print-all-but-the-first-three-columns/18819899#18819899
</pre>
</div>
</content>
</entry>
<entry>
<title>qcd: Quote the `$path` variable</title>
<updated>2016-07-22T03:11:16+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-07-22T03:10:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/qcd/commit/?id=f0189d6dc374b4238892e3309e116317a6d8c48c'/>
<id>f0189d6dc374b4238892e3309e116317a6d8c48c</id>
<content type='text'>
If the path contains spaces, the path following the space will be lost
unless we quote the variable.

TODO: Get the `cd` command working with spaces
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the path contains spaces, the path following the space will be lost
unless we quote the variable.

TODO: Get the `cd` command working with spaces
</pre>
</div>
</content>
</entry>
<entry>
<title>qcd: Only run `cd` if the given shortcut exists</title>
<updated>2016-07-22T02:42:10+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-07-22T02:42:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/qcd/commit/?id=7de785f2f7ad0387f56323f6f14a67357293651f'/>
<id>7de785f2f7ad0387f56323f6f14a67357293651f</id>
<content type='text'>
If we don't check that the shortcut exists before trying to `cd`, we end
up in the HOME directory, which is not what we want. We just want the
`qcd` command to fail silently.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If we don't check that the shortcut exists before trying to `cd`, we end
up in the HOME directory, which is not what we want. We just want the
`qcd` command to fail silently.
</pre>
</div>
</content>
</entry>
</feed>
