<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vim-rails-locale-alternate/plugin, branch master</title>
<subtitle>Commands to quickly open alternate translations of a Rails locale file</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-rails-locale-alternate/'/>
<entry>
<title>Add `g:loaded_rails_locale_alternate` header</title>
<updated>2018-03-05T20:04:13+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-03-05T20:04:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-rails-locale-alternate/commit/?id=d1d8c6405a8241362c20c7d666d74c2c05863741'/>
<id>d1d8c6405a8241362c20c7d666d74c2c05863741</id>
<content type='text'>
Prevent double-sourcing the plugin.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Prevent double-sourcing the plugin.
</pre>
</div>
</content>
</entry>
<entry>
<title>Move functions to `autoload`</title>
<updated>2018-03-05T20:01:11+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-03-05T20:01:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-rails-locale-alternate/commit/?id=dc9a0e2b3c39f1287cf8aae6eea098629778f370'/>
<id>dc9a0e2b3c39f1287cf8aae6eea098629778f370</id>
<content type='text'>
Improve startup performance and be a good Vim plugin citizen.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Improve startup performance and be a good Vim plugin citizen.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use an `autocmd` to create the commands</title>
<updated>2018-03-05T19:55:57+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-03-05T19:55:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-rails-locale-alternate/commit/?id=1bb1fe8927ad8df734adaf89cee0c95b04a396eb'/>
<id>1bb1fe8927ad8df734adaf89cee0c95b04a396eb</id>
<content type='text'>
To ensure these commands are only created for Rails locale buffers, use
an `autocmd` that matches any locale YAML files in the Rails
`config/locales/` directory or subdirectories.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To ensure these commands are only created for Rails locale buffers, use
an `autocmd` that matches any locale YAML files in the Rails
`config/locales/` directory or subdirectories.
</pre>
</div>
</content>
</entry>
<entry>
<title>Move `ftplugin` to `plugin`</title>
<updated>2018-03-05T19:39:16+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-03-05T19:39:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/vim-rails-locale-alternate/commit/?id=1826d17d9b0e9aec18d1b50ac0874defb46901b3'/>
<id>1826d17d9b0e9aec18d1b50ac0874defb46901b3</id>
<content type='text'>
Make this a regular plugin instead of a filetype plugin. Rails locale
files are YAML files, but we don't want these commands to be available
for all YAML files, only those that match the path for Rails locales.
We won't be able to do the path match and filetype separation with an
ftplugin, so instead we'll set up the commands to be defined by
`autocmd`s that match the Rails locale path.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make this a regular plugin instead of a filetype plugin. Rails locale
files are YAML files, but we don't want these commands to be available
for all YAML files, only those that match the path for Rails locales.
We won't be able to do the path match and filetype separation with an
ftplugin, so instead we'll set up the commands to be defined by
`autocmd`s that match the Rails locale path.
</pre>
</div>
</content>
</entry>
</feed>
