<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vim-gitcha/autoload, branch v0.0.1</title>
<subtitle>Completion for Git SHAs</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-gitcha/'/>
<entry>
<title>autoload/gitcha.vim: Fix match list population</title>
<updated>2017-04-29T04:17:49+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-04-29T04:17:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-gitcha/commit/?id=884a799b977d5f747ac73d75e9fe7c8e529af349'/>
<id>884a799b977d5f747ac73d75e9fe7c8e529af349</id>
<content type='text'>
Previously, we were using the completion function sample copied from the
Vim manual. This function determined `a:findstart` using a match against
`\a`, which only matches alphanumeric characters.

Git commit SHAs are SHA-1s, which can contain alphanumeric characters.
With the previous match regex, if the word to be completed contained
numbers, the `a:findstart` match would fail. This resulted in `a:base`
being empty, causing all SHAs to be added to the `matches` array.

Now we correctly match only the characters that can appear in a SHA-1,
and the completion correctly fills in the rest given the start of a SHA.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, we were using the completion function sample copied from the
Vim manual. This function determined `a:findstart` using a match against
`\a`, which only matches alphanumeric characters.

Git commit SHAs are SHA-1s, which can contain alphanumeric characters.
With the previous match regex, if the word to be completed contained
numbers, the `a:findstart` match would fail. This resulted in `a:base`
being empty, causing all SHAs to be added to the `matches` array.

Now we correctly match only the characters that can appear in a SHA-1,
and the completion correctly fills in the rest given the start of a SHA.
</pre>
</div>
</content>
</entry>
<entry>
<title>autoload/gitcha.vim: Abbreviate commit SHA in the popup menu</title>
<updated>2017-04-29T03:55:35+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-04-29T03:53:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-gitcha/commit/?id=9ccc0ce69ffac2da269f411cbe810e4021a3f861'/>
<id>9ccc0ce69ffac2da269f411cbe810e4021a3f861</id>
<content type='text'>
Only show the first 10 characters of the commit SHA in the popup menu to
allow more room for the subject. The first part of the SHA is enough to
be able to identify it, so this gets rid of some non-essential
information.

The full commit SHA will still be inserted as a result of the
completion.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Only show the first 10 characters of the commit SHA in the popup menu to
allow more room for the subject. The first part of the SHA is enough to
be able to identify it, so this gets rid of some non-essential
information.

The full commit SHA will still be inserted as a result of the
completion.
</pre>
</div>
</content>
</entry>
<entry>
<title>autoload/gitcha.vim: Include entire subject in popup extra text</title>
<updated>2017-04-29T03:49:34+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-04-29T03:49:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-gitcha/commit/?id=4bdd26ecda16e202b5725a14a8204618032c38f0'/>
<id>4bdd26ecda16e202b5725a14a8204618032c38f0</id>
<content type='text'>
Fix the subject issue from 0773fdd7bde5e7ce462c15bd1c71db3a3e46862a and
show the entire commit subject in the popup menu.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix the subject issue from 0773fdd7bde5e7ce462c15bd1c71db3a3e46862a and
show the entire commit subject in the popup menu.
</pre>
</div>
</content>
</entry>
<entry>
<title>autoload/gitcha.vim: Add commit subject to completion popup (WIP)</title>
<updated>2017-04-29T03:45:43+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-04-29T03:45:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-gitcha/commit/?id=0773fdd7bde5e7ce462c15bd1c71db3a3e46862a'/>
<id>0773fdd7bde5e7ce462c15bd1c71db3a3e46862a</id>
<content type='text'>
Initial try at adding the commit subject to the popup menu to provide
context for the commit.

Currently only shows the first word of the subject because I'm using
`split()`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Initial try at adding the commit subject to the popup menu to provide
context for the commit.

Currently only shows the first word of the subject because I'm using
`split()`.
</pre>
</div>
</content>
</entry>
<entry>
<title>autoload/gitcha.vim: Describe the code with comments</title>
<updated>2017-04-29T02:56:56+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-04-29T02:56:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-gitcha/commit/?id=0a271656ab963c30bfb82dca7f2cbd5d0fbb7ffb'/>
<id>0a271656ab963c30bfb82dca7f2cbd5d0fbb7ffb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Move functions to autoload/</title>
<updated>2017-04-29T02:48:35+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-04-29T02:48:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-gitcha/commit/?id=ee60b16343ff5e98dc4279bb976586001a002bfe'/>
<id>ee60b16343ff5e98dc4279bb976586001a002bfe</id>
<content type='text'>
Don't force our functions to be loaded when the ftplugin is loaded. Be
good Vimscript citizens and respect load performance.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Don't force our functions to be loaded when the ftplugin is loaded. Be
good Vimscript citizens and respect load performance.
</pre>
</div>
</content>
</entry>
</feed>
