<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/ime.c, branch 1.6.4</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.6.4</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.6.4'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2021-02-12T09:45:43Z</updated>
<entry>
<title>ime: Reset terminal's IME state on text_input.leave</title>
<updated>2021-02-12T09:45:43Z</updated>
<author>
<name>Tadeo Kondrak</name>
<email>me@tadeo.ca</email>
</author>
<published>2021-01-29T19:57:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8a32c5c5c1c1fb5bef33c2e194b3967740a8052f'/>
<id>urn:sha1:8a32c5c5c1c1fb5bef33c2e194b3967740a8052f</id>
<content type='text'>
To reproduce issue:
- Launch an IME from inside foot
- Type in some preedit text
- Use Ctrl-C to close the IME
- IME text stays in terminal until focus is changed
</content>
</entry>
<entry>
<title>Send text_input_rectangle requests for text-input</title>
<updated>2021-01-29T18:39:48Z</updated>
<author>
<name>Tadeo Kondrak</name>
<email>me@tadeo.ca</email>
</author>
<published>2020-12-20T22:01:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8f0a3ee7a9cbb1b0fc8011875a0895bfd331e0a8'/>
<id>urn:sha1:8f0a3ee7a9cbb1b0fc8011875a0895bfd331e0a8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ime: fix rendering of pre-edit cursor when positioned after the pre-edit string</title>
<updated>2021-01-26T19:46:59Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-01-25T20:57:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=adbf036053db00ef474ae53eadae93f901a1459e'/>
<id>urn:sha1:adbf036053db00ef474ae53eadae93f901a1459e</id>
<content type='text'>
We failed to convert the byte-indices to cell indices, resulting in a
box cursor covering the entire pre-edit string.

Note that in addition to fixing the translation from byte index to
cell index, the rendered had to be updated to dirty one extra cell
from the original grid.

Without this, we left trailing cursors behind us when the user deleted
text from the pre-edit string.
</content>
</entry>
<entry>
<title>ime: don’t call text-input functions when it isn’t available</title>
<updated>2021-01-21T10:44:38Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-25T21:04:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=797e79d3c7aecf27b04ed100581345ebc0f70ef0'/>
<id>urn:sha1:797e79d3c7aecf27b04ed100581345ebc0f70ef0</id>
<content type='text'>
Closes #259
</content>
</entry>
<entry>
<title>ime: don’t underline characters inside the cursor-box</title>
<updated>2020-12-07T19:44:15Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-07T17:57:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a6ed9a9773bbd4081f741dc6d792086877cdcb41'/>
<id>urn:sha1:a6ed9a9773bbd4081f741dc6d792086877cdcb41</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ime: call render_refresh_search() instead of render_refresh()</title>
<updated>2020-12-07T19:44:14Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-06T11:18:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fd42a0bc23aa0f19596f40449bf869f4245cc29c'/>
<id>urn:sha1:fd42a0bc23aa0f19596f40449bf869f4245cc29c</id>
<content type='text'>
When scrollback search is active
</content>
</entry>
<entry>
<title>ime: store wchar version of pre-edit string in terminal struct</title>
<updated>2020-12-07T19:44:14Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-06T11:17:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=194fbff883e605a3a9afac4ecc66c6cf3cc6b7fa'/>
<id>urn:sha1:194fbff883e605a3a9afac4ecc66c6cf3cc6b7fa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ime: commit text using search_add_chars() while in scrollback search mode</title>
<updated>2020-12-07T19:44:12Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-05T10:50:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d87160e5f679fc8d9c53d21584932368add61c4d'/>
<id>urn:sha1:d87160e5f679fc8d9c53d21584932368add61c4d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ime: don’t commit to the slave while scrollback searching</title>
<updated>2020-12-07T19:44:12Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-05T10:43:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7eea6f94ed753dd358fb53dac889fc40455810e1'/>
<id>urn:sha1:7eea6f94ed753dd358fb53dac889fc40455810e1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ime: add functions to enable/disable IME, simplify code that enables IME</title>
<updated>2020-12-07T19:44:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-04T17:39:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b59d695b2b00157e403399af78b3128848a65e0f'/>
<id>urn:sha1:b59d695b2b00157e403399af78b3128848a65e0f</id>
<content type='text'>
We may want to be able to enable/disable IME run-time, even though we
have received an ‘enter’ IME event.

This enables us to do that.

Also add functions to enable/disable IME on a per-terminal instance
basis.

A terminal may have multiple seats focusing it, and enabling/disabling
IME in a terminal instance enables/disables IME on all those seats.

Finally, the code to enable IME is simplified; the *only* surface that
can ever receive ‘enter’ IME events is the main grid. All other
surfaces are sub-surfaces, without their own keyboard focus.
</content>
</entry>
<entry>
<title>ime: expand cursor cell-end across multi-cell characters</title>
<updated>2020-12-07T19:44:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-03T17:41:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5c17b7f8e77f96622d558ccbd5071706863c2816'/>
<id>urn:sha1:5c17b7f8e77f96622d558ccbd5071706863c2816</id>
<content type='text'>
This fixes an issue where the cursor ended in the middle of e.g double
width characters.
</content>
</entry>
<entry>
<title>ime: don’t adjust cursor’s cell-end if it’s equal to the cell-begin</title>
<updated>2020-12-07T19:44:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-03T17:40:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=001c82fa547bb8c62c50bde1b17ff9c8dd3d61c8'/>
<id>urn:sha1:001c82fa547bb8c62c50bde1b17ff9c8dd3d61c8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ime: set cursor end correctly when it ends *after* the pre-edit string</title>
<updated>2020-12-07T19:44:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-03T17:40:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=552b9884b905fc136e368344da313eabe7bad858'/>
<id>urn:sha1:552b9884b905fc136e368344da313eabe7bad858</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ime: use correct index when calculating number of *cells* to advance</title>
<updated>2020-12-07T19:44:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-03T17:39:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=cc76f91c43981cb95e508c5b90c71bec8bbcab76'/>
<id>urn:sha1:cc76f91c43981cb95e508c5b90c71bec8bbcab76</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ime: calculate wchar widths once</title>
<updated>2020-12-07T19:44:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-03T17:37:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=98bd798daed897c56b6f0262e5105131a074bdad'/>
<id>urn:sha1:98bd798daed897c56b6f0262e5105131a074bdad</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ime: make IME compile-time optional</title>
<updated>2020-12-07T19:44:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-03T17:36:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=05083110c3fad046ccf0838a364150b8d2bab888'/>
<id>urn:sha1:05083110c3fad046ccf0838a364150b8d2bab888</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ime: render pre-edit text</title>
<updated>2020-12-07T19:44:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-02T17:52:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8c3d48c5cdb2ae4e8bdbdc48f155f53d1a92973b'/>
<id>urn:sha1:8c3d48c5cdb2ae4e8bdbdc48f155f53d1a92973b</id>
<content type='text'>
This is done by allocating cells for the pre-edit text when receiving
the text-input::done() call, and populating them by converting the
utf-8 formatted pre-edit text to wchars.

We also convert the pre-edit cursor position to cell positions (it can
cover multiple cells).

When rendering, we simply render the pre-edit cells on-top off the
regular grid. While doing so, we also mark the underlying, “real”,
cells as dirty, to ensure they are re-rendered when the pre-edit text
is modified or removed.
</content>
</entry>
<entry>
<title>ime: wip: commit all changes in ‘done()’</title>
<updated>2020-12-07T19:44:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-01T18:31:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5745c610ac5e9b96f9bac8347c6a5645d89a66c6'/>
<id>urn:sha1:5745c610ac5e9b96f9bac8347c6a5645d89a66c6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ime: feed committed string to client application</title>
<updated>2020-12-07T19:44:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-28T21:00:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b85e2f40bbc45709e8f47a435ff458f054832a99'/>
<id>urn:sha1:b85e2f40bbc45709e8f47a435ff458f054832a99</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ime: disable text-input on surface leave</title>
<updated>2020-12-07T19:44:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-28T20:59:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e97024116e0efcf956fd7504aeee70bd3ee0d999'/>
<id>urn:sha1:e97024116e0efcf956fd7504aeee70bd3ee0d999</id>
<content type='text'>
</content>
</entry>
</feed>
