<feed xmlns='http://www.w3.org/2005/Atom'>
<title>editor/src/main.rs, branch main</title>
<subtitle>A terrible text editor</subtitle>
<id>https://code.roseh.moe/editor/atom/src/main.rs?h=main</id>
<link rel='self' href='https://code.roseh.moe/editor/atom/src/main.rs?h=main'/>
<link rel='alternate' type='text/html' href='https://code.roseh.moe/editor/'/>
<updated>2024-01-14T05:05:59Z</updated>
<entry>
<title>Apply some clippy suggestions.</title>
<updated>2024-01-14T05:05:59Z</updated>
<author>
<name>Rose Hogenson</name>
<email>rosehogenson@posteo.net</email>
</author>
<published>2024-01-14T05:05:59Z</published>
<link rel='alternate' type='text/html' href='https://code.roseh.moe/editor/commit/?id=c92c5a78e6333b6025131c031c6466413e60e442'/>
<id>urn:sha1:c92c5a78e6333b6025131c031c6466413e60e442</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Escape control characters.</title>
<updated>2024-01-14T01:45:37Z</updated>
<author>
<name>Rose Hogenson</name>
<email>rosehogenson@posteo.net</email>
</author>
<published>2024-01-14T01:45:37Z</published>
<link rel='alternate' type='text/html' href='https://code.roseh.moe/editor/commit/?id=d3f52cf5dc1e06a81fb75a8631ac00e8adc04ac7'/>
<id>urn:sha1:d3f52cf5dc1e06a81fb75a8631ac00e8adc04ac7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reject files with invalid utf-8.</title>
<updated>2024-01-13T20:31:42Z</updated>
<author>
<name>Rose Hogenson</name>
<email>rosehogenson@posteo.net</email>
</author>
<published>2024-01-13T20:31:42Z</published>
<link rel='alternate' type='text/html' href='https://code.roseh.moe/editor/commit/?id=1e32f5d480ecefa3a1c8fd1c43ac6b4260459266'/>
<id>urn:sha1:1e32f5d480ecefa3a1c8fd1c43ac6b4260459266</id>
<content type='text'>
It's easier to only support files with valid utf-8.
</content>
</entry>
<entry>
<title>Start tuning the performance of rope.</title>
<updated>2024-01-13T05:03:25Z</updated>
<author>
<name>Rose Hogenson</name>
<email>rosehogenson@posteo.net</email>
</author>
<published>2024-01-13T05:03:25Z</published>
<link rel='alternate' type='text/html' href='https://code.roseh.moe/editor/commit/?id=a41476ac28083a2d8a54161d4177b3ee5c028525'/>
<id>urn:sha1:a41476ac28083a2d8a54161d4177b3ee5c028525</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix a bug where cursor_pos would return old data.</title>
<updated>2024-01-12T16:31:12Z</updated>
<author>
<name>Rose Hogenson</name>
<email>rosehogenson@posteo.net</email>
</author>
<published>2024-01-12T16:31:12Z</published>
<link rel='alternate' type='text/html' href='https://code.roseh.moe/editor/commit/?id=d333343b15aab5747ccf74c495cb085b4e32b029'/>
<id>urn:sha1:d333343b15aab5747ccf74c495cb085b4e32b029</id>
<content type='text'>
For now I'm just counting the failures, and aborting if cursor_pos
immediately failed before. We have to skip the incoming status reports
with read_key before cursor_pos will start working again. This should
flush any old status reports, and prevent reading them incorrectly.
</content>
</entry>
<entry>
<title>Implement Home, End, PgUp, and PgDn.</title>
<updated>2024-01-12T05:31:39Z</updated>
<author>
<name>Rose Hogenson</name>
<email>rosehogenson@posteo.net</email>
</author>
<published>2024-01-12T00:38:04Z</published>
<link rel='alternate' type='text/html' href='https://code.roseh.moe/editor/commit/?id=e23b1c7254aa21c0eb2fd18f720df262725c6d81'/>
<id>urn:sha1:e23b1c7254aa21c0eb2fd18f720df262725c6d81</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Keep the cursor position on error.</title>
<updated>2024-01-12T03:04:27Z</updated>
<author>
<name>Rose Hogenson</name>
<email>rosehogenson@posteo.net</email>
</author>
<published>2024-01-12T03:04:27Z</published>
<link rel='alternate' type='text/html' href='https://code.roseh.moe/editor/commit/?id=28dffed640adf8815294faa7a1f4b4d8a50c9707'/>
<id>urn:sha1:28dffed640adf8815294faa7a1f4b4d8a50c9707</id>
<content type='text'>
Now it handles errors so well! You can barely tell that nearly all of
the calls to cursor_pos are failing.
</content>
</entry>
<entry>
<title>Do a little more to handle errors.</title>
<updated>2024-01-12T02:53:20Z</updated>
<author>
<name>Rose Hogenson</name>
<email>rosehogenson@posteo.net</email>
</author>
<published>2024-01-12T02:53:20Z</published>
<link rel='alternate' type='text/html' href='https://code.roseh.moe/editor/commit/?id=965c0aa3446da87b84c5db656b1cc3ce6e4a691b'/>
<id>urn:sha1:965c0aa3446da87b84c5db656b1cc3ce6e4a691b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Optimize for ASCII case in floor/ceil_grapheme.</title>
<updated>2024-01-12T02:47:06Z</updated>
<author>
<name>Rose Hogenson</name>
<email>rosehogenson@posteo.net</email>
</author>
<published>2024-01-12T02:47:06Z</published>
<link rel='alternate' type='text/html' href='https://code.roseh.moe/editor/commit/?id=781478d73dd3dfe42596e1dd370339ca6ad30e31'/>
<id>urn:sha1:781478d73dd3dfe42596e1dd370339ca6ad30e31</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Optimise line_offset for the ASCII case.</title>
<updated>2024-01-12T02:01:10Z</updated>
<author>
<name>Rose Hogenson</name>
<email>rosehogenson@posteo.net</email>
</author>
<published>2024-01-12T02:01:10Z</published>
<link rel='alternate' type='text/html' href='https://code.roseh.moe/editor/commit/?id=7c66a5c1216f334bfa29bddd7e4c3a451900efbb'/>
<id>urn:sha1:7c66a5c1216f334bfa29bddd7e4c3a451900efbb</id>
<content type='text'>
In most cases we really won't need the full binary search. We can check
quickly for ASCII without ever printing anything, and fall back to
binary search if we find any Unicode characters.
</content>
</entry>
</feed>
