<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vim-gitcha/ftplugin/gitcommit, branch master</title>
<subtitle>Completion for Git SHAs</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-gitcha/'/>
<entry>
<title>ftplugin/gitcommit: Restore &lt;Plug&gt; mapping</title>
<updated>2017-05-10T19:00:54+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-05-10T19:00:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-gitcha/commit/?id=69a382bf1d6cd4645dfb4408f757368b069694fc'/>
<id>69a382bf1d6cd4645dfb4408f757368b069694fc</id>
<content type='text'>
Restore this after 60bc8ea8b3b7be511c4240ca1d7dc1cc1149b113 where I made
a mess experimenting trying to get `complete()` to work.

Take the mapping that we used successfully from that commit and combine
it with our `&lt;Plug&gt;` mappings from before to call our new completion
function.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Restore this after 60bc8ea8b3b7be511c4240ca1d7dc1cc1149b113 where I made
a mess experimenting trying to get `complete()` to work.

Take the mapping that we used successfully from that commit and combine
it with our `&lt;Plug&gt;` mappings from before to call our new completion
function.
</pre>
</div>
</content>
</entry>
<entry>
<title>gitcha#GitSHAComplete(): Use `complete()` to open popup menu (WIP)</title>
<updated>2017-05-10T03:53:57+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-05-10T03:10:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-gitcha/commit/?id=60bc8ea8b3b7be511c4240ca1d7dc1cc1149b113'/>
<id>60bc8ea8b3b7be511c4240ca1d7dc1cc1149b113</id>
<content type='text'>
Work in progress

Rough code for a working implementation using `complete()` instead of
'completefunc'.

Rejigger `start` and make a new `base` variable since we can no longer
get it as an argument.

Correctly reset 'completeopt' to its original user value after opening
the popup menu.

Return an empty string from the function as recommended by

    :h complete()
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Work in progress

Rough code for a working implementation using `complete()` instead of
'completefunc'.

Rejigger `start` and make a new `base` variable since we can no longer
get it as an argument.

Correctly reset 'completeopt' to its original user value after opening
the popup menu.

Return an empty string from the function as recommended by

    :h complete()
</pre>
</div>
</content>
</entry>
<entry>
<title>ftplugin/gitcommit: Check for `b:did_ftplugin`</title>
<updated>2017-04-29T06:12:24+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-04-29T06:12:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-gitcha/commit/?id=33bff57b53bbf80e245cda573ed9ec83da7abf9f'/>
<id>33bff57b53bbf80e245cda573ed9ec83da7abf9f</id>
<content type='text'>
Be a good Vim citizen and don't load if `b:did_ftplugin` is already set.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Be a good Vim citizen and don't load if `b:did_ftplugin` is already set.
</pre>
</div>
</content>
</entry>
<entry>
<title>ftplugin/gitcommit: Cleaner `if` condition</title>
<updated>2017-04-29T05:43:02+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-04-29T05:43:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-gitcha/commit/?id=58eb3fe8a2a26ad6a6bdfba7781cc69fc777b3f8'/>
<id>58eb3fe8a2a26ad6a6bdfba7781cc69fc777b3f8</id>
<content type='text'>
Clean up the check for `g:no_plugin_maps` based on this style from
tpope's gitrebase.vim:

    https://github.com/tpope/vim-git/blob/5fcaf2b4f66cd28984cf4fe814d7803bbf073a12/ftplugin/gitrebase.vim
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Clean up the check for `g:no_plugin_maps` based on this style from
tpope's gitrebase.vim:

    https://github.com/tpope/vim-git/blob/5fcaf2b4f66cd28984cf4fe814d7803bbf073a12/ftplugin/gitrebase.vim
</pre>
</div>
</content>
</entry>
<entry>
<title>ftplugin/gitcommit: Add `b:undo_ftplugin`</title>
<updated>2017-04-29T05:31:32+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-04-29T05:31:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-gitcha/commit/?id=3950864bd41ce990278ac3a5627f785e1d6e4750'/>
<id>3950864bd41ce990278ac3a5627f785e1d6e4750</id>
<content type='text'>
Allow the plugin's actions to be undone. Will be executed automatically
when users change the filetype, as explained here:

    :h undo_ftplugin
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allow the plugin's actions to be undone. Will be executed automatically
when users change the filetype, as explained here:

    :h undo_ftplugin
</pre>
</div>
</content>
</entry>
<entry>
<title>ftplugin/gitcommit: Make completion mapping user-editable</title>
<updated>2017-04-29T05:24:52+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-04-29T05:19:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-gitcha/commit/?id=0108d430e9885547517c4c33050cc6d0cac85fc3'/>
<id>0108d430e9885547517c4c33050cc6d0cac85fc3</id>
<content type='text'>
Instead of forcing the mapping '&lt;C-x&gt;&lt;C-s&gt;' to activate Git SHA
completion, allow users to define a different custom mapping.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of forcing the mapping '&lt;C-x&gt;&lt;C-s&gt;' to activate Git SHA
completion, allow users to define a different custom mapping.
</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>
<entry>
<title>Move ftplugin to ftplugin/gitcommit/gitcha.vim</title>
<updated>2017-04-29T02:38:49+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-04-29T02:38:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-gitcha/commit/?id=bc4fcb2b082805914d6e87ff38516dbafc5c5538'/>
<id>bc4fcb2b082805914d6e87ff38516dbafc5c5538</id>
<content type='text'>
To ensure that we don't conflict with the real "gitcommit" ftplugin,
move ours into a new custom file.

As described in

    :h ftplugin-name

we can create additional ftplugins for the same filetype by putting our
script in a directory named for the filetype.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To ensure that we don't conflict with the real "gitcommit" ftplugin,
move ours into a new custom file.

As described in

    :h ftplugin-name

we can create additional ftplugins for the same filetype by putting our
script in a directory named for the filetype.
</pre>
</div>
</content>
</entry>
</feed>
