<feed xmlns='http://www.w3.org/2005/Atom'>
<title>auditory.vim, branch command-to-toggle-mappings</title>
<subtitle>vim interface sounds</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/auditory.vim/'/>
<entry>
<title>Add CHANGELOG</title>
<updated>2015-08-16T21:38:12+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-08-16T21:38:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/auditory.vim/commit/?id=17a812cd4a20c6967be281b9beb8a297298dcf8f'/>
<id>17a812cd4a20c6967be281b9beb8a297298dcf8f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>TODO: Update with latest completed tasks</title>
<updated>2015-08-16T19:11:17+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-08-16T19:11:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/auditory.vim/commit/?id=431c43bab11294ba0123c1964ae40f1c5665d9e4'/>
<id>431c43bab11294ba0123c1964ae40f1c5665d9e4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>autoload/auditory.vim: Remove old functions</title>
<updated>2015-08-16T19:09:22+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-08-16T19:08:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/auditory.vim/commit/?id=324da0f6817f9fd409f7963b1c34dd8eb8d7a2b6'/>
<id>324da0f6817f9fd409f7963b1c34dd8eb8d7a2b6</id>
<content type='text'>
Delete some old code that isn't used any more. This was when I first
made the plugin. These functions were used to start a song when insert
mode was activated and stop the song on insert leave.

Since we're not playing full songs any more, and our insert sounds are
tied to key presses, these functions are no longer needed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Delete some old code that isn't used any more. This was when I first
made the plugin. These functions were used to start a song when insert
mode was activated and stop the song on insert leave.

Since we're not playing full songs any more, and our insert sounds are
tied to key presses, these functions are no longer needed.
</pre>
</div>
</content>
</entry>
<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>autoload/auditory.vim: Fix `AuditoryToggle` + `Auditory[On|Off]`</title>
<updated>2015-08-16T06:48:18+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-08-16T06:48:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/auditory.vim/commit/?id=87452e0058fb8984b678947d33715b155dd3dbf0'/>
<id>87452e0058fb8984b678947d33715b155dd3dbf0</id>
<content type='text'>
When using `:AuditoryToggle` in conjunction with `:AuditoryOn` or
`:AuditoryOff`, things would get messed up. This is because
`:AuditoryToggle` relies on `g:auditory_on` in order to know whether to
turn sounds on or off, but the variable was only getting set in
`auditory#ToggleMappings`, not in the functions that `:AuditoryOn` or
`:AuditoryOff` call.

Move the setting of the variable into `auditory#AssignMappings` and
`auditory#Unmap` so that the right thing will happen regardless of which
on/off/toggle commands you run.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When using `:AuditoryToggle` in conjunction with `:AuditoryOn` or
`:AuditoryOff`, things would get messed up. This is because
`:AuditoryToggle` relies on `g:auditory_on` in order to know whether to
turn sounds on or off, but the variable was only getting set in
`auditory#ToggleMappings`, not in the functions that `:AuditoryOn` or
`:AuditoryOff` call.

Move the setting of the variable into `auditory#AssignMappings` and
`auditory#Unmap` so that the right thing will happen regardless of which
on/off/toggle commands you run.
</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>
</feed>
