<feed xmlns='http://www.w3.org/2005/Atom'>
<title>auditory.vim/autoload, branch audio-tail-fix</title>
<subtitle>vim interface sounds</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/auditory.vim/'/>
<entry>
<title>autoload/auditory.vim: Prevent double `AuditoryOn` &amp; `AuditoryOff`</title>
<updated>2015-11-24T04:53:37+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-11-24T04:48:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/auditory.vim/commit/?id=24f334fa25c736ccfd6bbea337434fba759eded4'/>
<id>24f334fa25c736ccfd6bbea337434fba759eded4</id>
<content type='text'>
Previously executing `:AuditoryOn` and `:AuditoryOff` would always do
the thing they're supposed to do regardless of whether Auditory was
already on or off.

This caused errors because things got messed up when trying to
double assign the mappings and double unmap the mappings.

Now check for the status of the `g:auditory_on` flag before turning
Auditory on or off.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously executing `:AuditoryOn` and `:AuditoryOff` would always do
the thing they're supposed to do regardless of whether Auditory was
already on or off.

This caused errors because things got messed up when trying to
double assign the mappings and double unmap the mappings.

Now check for the status of the `g:auditory_on` flag before turning
Auditory on or off.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix normal mode `G` mapping</title>
<updated>2015-11-24T04:39:17+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-11-24T04:39:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/auditory.vim/commit/?id=ffa7c57008a7ff501de0bd61d1c8e4b9ad23e28f'/>
<id>ffa7c57008a7ff501de0bd61d1c8e4b9ad23e28f</id>
<content type='text'>
Pressing `G` would bring the cursor to the first line in the buffer
instead of the last line in the buffer because the count in the mapping
was always `v:count1`. This meant that the `G` mapping behaved like `1G`
when no count was specified.

This change fixes the `G` mapping to use `v:count` so that it goes to
the last line in the buffer as expected.

We also add support for arbitrary mappings to choose whether they want
to be `v:count` or `v:count1` depending on what value is specified in
the mapping dict.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pressing `G` would bring the cursor to the first line in the buffer
instead of the last line in the buffer because the count in the mapping
was always `v:count1`. This meant that the `G` mapping behaved like `1G`
when no count was specified.

This change fixes the `G` mapping to use `v:count` so that it goes to
the last line in the buffer as expected.

We also add support for arbitrary mappings to choose whether they want
to be `v:count` or `v:count1` depending on what value is specified in
the mapping dict.
</pre>
</div>
</content>
</entry>
<entry>
<title>autoload/auditory.vim: Change `s:mappings` to `g:auditory_mappings`</title>
<updated>2015-08-17T00:45:39+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-08-17T00:45:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/auditory.vim/commit/?id=4939b77188a5187f3661bce20bc5e4c64e9a462c'/>
<id>4939b77188a5187f3661bce20bc5e4c64e9a462c</id>
<content type='text'>
Make the mappings dictionary global to allow it to be user-customisable.
This way users can add new commands or sounds to be mapped without
modifying the plugin directly. Seems like it could be useful.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make the mappings dictionary global to allow it to be user-customisable.
This way users can add new commands or sounds to be mapped without
modifying the plugin directly. Seems like it could be useful.
</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>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>autoload/auditory.vim: Allow unmapping of non-normal mode commands</title>
<updated>2015-08-16T06:17:54+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-08-16T06:08:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/auditory.vim/commit/?id=d5b7bd6857e82fd2b164d41b929426394dcbf10e'/>
<id>d5b7bd6857e82fd2b164d41b929426394dcbf10e</id>
<content type='text'>
Add support for unmapping a map from any mode where it was defined, not
just normal mode mappings from `auditory#Unmap()`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add support for unmapping a map from any mode where it was defined, not
just normal mode mappings from `auditory#Unmap()`.
</pre>
</div>
</content>
</entry>
</feed>
