<feed xmlns='http://www.w3.org/2005/Atom'>
<title>auditory.vim/plugin, branch v0.1.3</title>
<subtitle>vim interface sounds</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/auditory.vim/'/>
<entry>
<title>Don't turn on Galaxy Far Far away when not `g:auditory_on`</title>
<updated>2015-08-16T18:50:35+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-08-16T18:50:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/auditory.vim/commit/?id=1c9fe852b40d4e7a883bcdc71c91abdd023514bb'/>
<id>1c9fe852b40d4e7a883bcdc71c91abdd023514bb</id>
<content type='text'>
My change from 71ec214cdb8814ecb71c837bf947583fda54d37e caused Galaxy
Far Far Away sounds to be turned on any time you had
`g:auditory_galaxy_far_far_away` turned on, regardless of whether
`g:auditory_on` was also turned on.

Fix this because we never want sounds to play when `g:auditory_on` is
off.

We now rely on `auditory#AssignInsertMappings()` to know whether to use
Galaxy Far Far Away or default insert mode sounds.

Need to toggle `g:auditory_galaxy_far_far_away` in that function because
we're calling the toggle function so we need to set it to the opposite
of what we want.

In the future if we add more insert mode sounds we'll have to change
this structure around but it should work for now.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
My change from 71ec214cdb8814ecb71c837bf947583fda54d37e caused Galaxy
Far Far Away sounds to be turned on any time you had
`g:auditory_galaxy_far_far_away` turned on, regardless of whether
`g:auditory_on` was also turned on.

Fix this because we never want sounds to play when `g:auditory_on` is
off.

We now rely on `auditory#AssignInsertMappings()` to know whether to use
Galaxy Far Far Away or default insert mode sounds.

Need to toggle `g:auditory_galaxy_far_far_away` in that function because
we're calling the toggle function so we need to set it to the opposite
of what we want.

In the future if we add more insert mode sounds we'll have to change
this structure around but it should work for now.
</pre>
</div>
</content>
</entry>
<entry>
<title>Create a setting for Galaxy Far Far Away sounds</title>
<updated>2015-08-16T18:45:33+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-08-16T18:45:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/auditory.vim/commit/?id=71ec214cdb8814ecb71c837bf947583fda54d37e'/>
<id>71ec214cdb8814ecb71c837bf947583fda54d37e</id>
<content type='text'>
Adding a configuration variable for these sounds allows them to be
turned on by default without having to
`:AuditoryToggleGalaxyFarFarAway`, so if you prefer these sounds you can
enable them at the outset.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adding a configuration variable for these sounds allows them to be
turned on by default without having to
`:AuditoryToggleGalaxyFarFarAway`, so if you prefer these sounds you can
enable them at the outset.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add function and command to toggle mappings</title>
<updated>2015-08-16T06:43:09+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-08-16T06:43:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/auditory.vim/commit/?id=8a0fd42b1df21aa9bd1c9d6f8b169d060ea8db6e'/>
<id>8a0fd42b1df21aa9bd1c9d6f8b169d060ea8db6e</id>
<content type='text'>
* Create `auditory#ToggleMappings()` that turns sounds on if they're off
  and off if they're on
* Create an `:AuditoryToggle` command that runs the toggle function in a
  more user-friendly callable way

With a toggle command, turning Auditory on or off can be as simple as
hitting 1 custom mapping. With our previous `AuditoryOn` and
`AuditoryOff`, you would have to use 2 mappings: 1 for on and another
for off.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Create `auditory#ToggleMappings()` that turns sounds on if they're off
  and off if they're on
* Create an `:AuditoryToggle` command that runs the toggle function in a
  more user-friendly callable way

With a toggle command, turning Auditory on or off can be as simple as
hitting 1 custom mapping. With our previous `AuditoryOn` and
`AuditoryOff`, you would have to use 2 mappings: 1 for on and another
for off.
</pre>
</div>
</content>
</entry>
<entry>
<title>plugin/auditory.vim: Condense `g:auditory_on` check</title>
<updated>2015-08-16T06:39:22+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-08-16T06:39:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/auditory.vim/commit/?id=da0a9cf9fba990b5d39041b43b7257599fd4c5a4'/>
<id>da0a9cf9fba990b5d39041b43b7257599fd4c5a4</id>
<content type='text'>
Realised that I don't need to explicitly check for 1, I can check
against true or false. Get rid of the explicit check to make this more
concise.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Realised that I don't need to explicitly check for 1, I can check
against true or false. Get rid of the explicit check to make this more
concise.
</pre>
</div>
</content>
</entry>
<entry>
<title>plugin/auditory.vim: Check for `g:auditory_on`</title>
<updated>2015-08-16T06:36:36+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-08-16T06:34:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/auditory.vim/commit/?id=957cc40ba08d66d9b39edda074662677d3d6f21a'/>
<id>957cc40ba08d66d9b39edda074662677d3d6f21a</id>
<content type='text'>
Don't heedlessly turn on sounds when the plugin is loaded. Instead, give
users a choice of whether or not sounds should be loaded when starting
Vim with a configuration variable that can be set in a user vimrc. By
default sounds are now off.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Don't heedlessly turn on sounds when the plugin is loaded. Instead, give
users a choice of whether or not sounds should be loaded when starting
Vim with a configuration variable that can be set in a user vimrc. By
default sounds are now off.
</pre>
</div>
</content>
</entry>
<entry>
<title>plugin/auditory.vim: Add `:AuditoryOn` command</title>
<updated>2015-08-16T06:26:56+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-08-16T06:26:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/auditory.vim/commit/?id=f3444f5dcfa269eee62b8daf552b3ed29a43aa04'/>
<id>f3444f5dcfa269eee62b8daf552b3ed29a43aa04</id>
<content type='text'>
Create a new command to match `:AuditoryOff` that turns on mappings and
sounds. We'll need this because I'm going to make the plugin not enable
sounds by default. That will be controlled by a global variable. You'll
be able to turn the sounds on and off as you wish.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Create a new command to match `:AuditoryOff` that turns on mappings and
sounds. We'll need this because I'm going to make the plugin not enable
sounds by default. That will be controlled by a global variable. You'll
be able to turn the sounds on and off as you wish.
</pre>
</div>
</content>
</entry>
<entry>
<title>Unmap insert mode sounds from `auditory#Unmap()`</title>
<updated>2015-08-16T06:26:31+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-08-16T06:19:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/auditory.vim/commit/?id=a612f8fb835df92648401606dec6c2d07fa3ae4b'/>
<id>a612f8fb835df92648401606dec6c2d07fa3ae4b</id>
<content type='text'>
* Move the insert mode autocommand definition into a new function that
  turns on insert mode sounds
* Create a function to turn off insert mode sounds
* Call these from our normal `AssignMappings` and `Unmap` functions so
  we can turn all our sounds on and off in one fell swoop
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Move the insert mode autocommand definition into a new function that
  turns on insert mode sounds
* Create a function to turn off insert mode sounds
* Call these from our normal `AssignMappings` and `Unmap` functions so
  we can turn all our sounds on and off in one fell swoop
</pre>
</div>
</content>
</entry>
<entry>
<title>plugin/auditory.vim: Add `:AuditoryOff` command</title>
<updated>2015-07-28T04:09:37+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-07-28T04:09:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/auditory.vim/commit/?id=a4cf047b6cc8b9f09c4aa56dbf230e66bf7497b5'/>
<id>a4cf047b6cc8b9f09c4aa56dbf230e66bf7497b5</id>
<content type='text'>
New command that turns the plugin off by removing its mappings.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
New command that turns the plugin off by removing its mappings.
</pre>
</div>
</content>
</entry>
<entry>
<title>auditory.vim: `AssignNormalModeMappings` -&gt; `AssignMappings`</title>
<updated>2015-07-19T15:47:10+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-07-19T15:42:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/auditory.vim/commit/?id=98b259d4065ef5b986d5d3cda953518061a6117f'/>
<id>98b259d4065ef5b986d5d3cda953518061a6117f</id>
<content type='text'>
Rename the function because we're not only assigning normal mode
mappings here, we're also assigning visual mode mappings. And we might
be assigning mappings for other modes here too in the future, so this
name doesn't make sense.

I had originally called it this to distinguish it from the insert mode
set defined in plugin/auditory.vim with the `CursorMovedI` autocommand,
but I think this should be more clear about what it's doing.

Edit: Also modify the comment above this section for similar reasons.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rename the function because we're not only assigning normal mode
mappings here, we're also assigning visual mode mappings. And we might
be assigning mappings for other modes here too in the future, so this
name doesn't make sense.

I had originally called it this to distinguish it from the insert mode
set defined in plugin/auditory.vim with the `CursorMovedI` autocommand,
but I think this should be more clear about what it's doing.

Edit: Also modify the comment above this section for similar reasons.
</pre>
</div>
</content>
</entry>
<entry>
<title>auditory.vim: Assign mappings with AssignNormalModeMappings()</title>
<updated>2015-07-19T01:01:03+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-07-19T01:01:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/auditory.vim/commit/?id=9779b2cee0ab633cfdc7c71f3544aa9741957b7d'/>
<id>9779b2cee0ab633cfdc7c71f3544aa9741957b7d</id>
<content type='text'>
Assign our normal mode mappings with our new function that uses the
mapping dictionary.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Assign our normal mode mappings with our new function that uses the
mapping dictionary.
</pre>
</div>
</content>
</entry>
</feed>
