<feed xmlns='http://www.w3.org/2005/Atom'>
<title>readline-incdec/t, branch master</title>
<subtitle>Readline bindings to increment and decrement numbers on the command line</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/readline-incdec/'/>
<entry>
<title>Update copyright year</title>
<updated>2022-05-26T14:55:23+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2022-05-26T14:52:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/readline-incdec/commit/?id=1cb9ad7286b87c348861dafd112a73901e4d6358'/>
<id>1cb9ad7286b87c348861dafd112a73901e4d6358</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>100-increment-decrement: Add a more complex leading zero test</title>
<updated>2022-05-25T22:34:51+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2022-05-25T22:34:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/readline-incdec/commit/?id=c74280c3c3f15915fbcb3f326a86633c92cd805c'/>
<id>c74280c3c3f15915fbcb3f326a86633c92cd805c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>incdec.pm: Idea for correctly excluding leading zero</title>
<updated>2022-05-24T23:48:50+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2022-05-24T23:48:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/readline-incdec/commit/?id=3831218d3271133e176b07e0f19e0b16dd907491'/>
<id>3831218d3271133e176b07e0f19e0b16dd907491</id>
<content type='text'>
This passes the two leading zero tests, but fails the test that tries to
increment a single-digit "0" at the last position in the string.

Also fix the test's expected start position.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This passes the two leading zero tests, but fails the test that tries to
increment a single-digit "0" at the last position in the string.

Also fix the test's expected start position.
</pre>
</div>
</content>
</entry>
<entry>
<title>100-increment-decrement: Add tests for integers with leading zero</title>
<updated>2022-05-24T23:43:06+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2022-05-24T23:39:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/readline-incdec/commit/?id=ac4b0dc07c3b2ac710f51fa804068ee7a76f916f'/>
<id>ac4b0dc07c3b2ac710f51fa804068ee7a76f916f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>100-increment-decrement: Swap "want" and "got"</title>
<updated>2021-09-07T18:10:12+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-09-07T18:10:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/readline-incdec/commit/?id=4b6101765c326b51cc36018f3eb1e0c76fb23450'/>
<id>4b6101765c326b51cc36018f3eb1e0c76fb23450</id>
<content type='text'>
When I refactored the tests to add `@want` and `@got` variables, I made
a mistake with the names. Swap the two variables to make their contents
reflect the meaning of the words.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When I refactored the tests to add `@want` and `@got` variables, I made
a mistake with the names. Swap the two variables to make their contents
reflect the meaning of the words.
</pre>
</div>
</content>
</entry>
<entry>
<title>100-increment-decrement: Want to return real start position from incdec</title>
<updated>2021-08-28T20:14:17+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-08-28T20:14:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/readline-incdec/commit/?id=9be99793b2d7eb4cc28db4cfc615325055d3853f'/>
<id>9be99793b2d7eb4cc28db4cfc615325055d3853f</id>
<content type='text'>
In order to set up point moving only when point is on or after the start
position of the changed number, I want the second return value from
`incdec()` to always give me the correct start position.

Currently, it returns 0 as the start position when backwards is on and
point is before the first number. It should return the start position of
the first number.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In order to set up point moving only when point is on or after the start
position of the changed number, I want the second return value from
`incdec()` to always give me the correct start position.

Currently, it returns 0 as the start position when backwards is on and
point is before the first number. It should return the start position of
the first number.
</pre>
</div>
</content>
</entry>
<entry>
<title>incdec.pm: Return both line and start position</title>
<updated>2021-08-28T17:42:31+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-08-28T17:42:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/readline-incdec/commit/?id=729cdbe8c41598aaa70c7c71d708953dd72a6866'/>
<id>729cdbe8c41598aaa70c7c71d708953dd72a6866</id>
<content type='text'>
I want access to the start position of the number being operated on.
This will allow me to determine if point should be moved or not.
Refactor everything to accept an array from `incdec()`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I want access to the start position of the number being operated on.
This will allow me to determine if point should be moved or not.
Refactor everything to accept an array from `incdec()`.
</pre>
</div>
</content>
</entry>
<entry>
<title>incdec.pm: Fix an issue where first number wasn't incremented backwards</title>
<updated>2021-08-28T16:25:23+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-08-28T16:08:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/readline-incdec/commit/?id=88cc7f664a2c582c4fb08a4c3f927da7863ce9fc'/>
<id>88cc7f664a2c582c4fb08a4c3f927da7863ce9fc</id>
<content type='text'>
When `$start_position` was 0 going backwards, the `sed` test command
line failed to increment the first number in the line.

Can't figure out exactly what was wrong, but there seemed to be a
problem with using the `\G` assertion for that test case. Decided to
remove `\G` when `$start_position` position is 0 to work around the
problem. Not sure if there's a more concise solution to this that
wouldn't require me to have two separate subtitution lines.

Also simplified the substitution regular expression. It turns out I
didn't need the first capture group, and it was incorrect in matching
/[^-\d]*/ because we really wanted /(?!-?\d+)/, not either or of the
characters in the group. Completely removing it still allows everything
to work. Don't remember if I added that when I was still using the
substringing algorithm, but whatever happens, it's not necessary now.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When `$start_position` was 0 going backwards, the `sed` test command
line failed to increment the first number in the line.

Can't figure out exactly what was wrong, but there seemed to be a
problem with using the `\G` assertion for that test case. Decided to
remove `\G` when `$start_position` position is 0 to work around the
problem. Not sure if there's a more concise solution to this that
wouldn't require me to have two separate subtitution lines.

Also simplified the substitution regular expression. It turns out I
didn't need the first capture group, and it was incorrect in matching
/[^-\d]*/ because we really wanted /(?!-?\d+)/, not either or of the
characters in the group. Completely removing it still allows everything
to work. Don't remember if I added that when I was still using the
substringing algorithm, but whatever happens, it's not necessary now.
</pre>
</div>
</content>
</entry>
<entry>
<title>100-increment-decrement: Add failing test for backward first number</title>
<updated>2021-08-28T13:29:46+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-08-28T13:29:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/readline-incdec/commit/?id=924e467583354e6faa179518d90e1d4e7ca89743'/>
<id>924e467583354e6faa179518d90e1d4e7ca89743</id>
<content type='text'>
When point is before the first number, that number should be incremented
or decremented. This doesn't work correctly with more complex, real
world commands.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When point is before the first number, that number should be incremented
or decremented. This doesn't work correctly with more complex, real
world commands.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add license (GNU GPLv3+)</title>
<updated>2021-08-24T21:22:58+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-08-24T21:22:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/readline-incdec/commit/?id=ee898b113f54911e9e2719c3f6b73dcf42139a0e'/>
<id>ee898b113f54911e9e2719c3f6b73dcf42139a0e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
