<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/ime.c, branch 1.7.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.7.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.7.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2021-03-02T08:01:40Z</updated>
<entry>
<title>ime: don’t commit IME changes when we don’t have IME focus</title>
<updated>2021-03-02T08:01:40Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-02T08:01:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3f19ee4d921e69e90073d00846fa2a5a37d691af'/>
<id>urn:sha1:3f19ee4d921e69e90073d00846fa2a5a37d691af</id>
<content type='text'>
Fixes log spamming in Sway:

  00:54:07.780 [DEBUG] [wlr] [types/wlr_text_input_v3.c:181] Text input commit received without focus
  00:54:07.780 [INFO] [sway/input/text_input.c:127] Inactive text input tried to commit an update

Closes #384
</content>
</entry>
<entry>
<title>ime: enter(): remove assertion on surface kind being TERM_SURF_GRID</title>
<updated>2021-02-07T10:11:58Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-07T10:11:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7cb49681e76ec84bc89a2e67943bec258f11e553'/>
<id>urn:sha1:7cb49681e76ec84bc89a2e67943bec258f11e553</id>
<content type='text'>
The main surface is the *only* IME capable surface we have. If the
compositor is sending an ime::enter event for another surface, it is a
compositor bug, not a foot bug.
</content>
</entry>
<entry>
<title>ime: Reset terminal's IME state on text_input.leave</title>
<updated>2021-01-30T19:24:12Z</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=1515b7e44bde7c045eae12105d8fe6a168fb3152'/>
<id>urn:sha1:1515b7e44bde7c045eae12105d8fe6a168fb3152</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-29T05:22:01Z</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=95c0c89cac5cef4ea73a1391b8ecd20f5dcfb2ff'/>
<id>urn:sha1:95c0c89cac5cef4ea73a1391b8ecd20f5dcfb2ff</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-26T18:30:34Z</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=a763531775a3423501710346a729c2a7d5a37db6'/>
<id>urn:sha1:a763531775a3423501710346a729c2a7d5a37db6</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>debug: rename assert() to xassert(), to avoid clashing with &lt;assert.h&gt;</title>
<updated>2021-01-16T20:16:00Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2021-01-16T20:16:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e56136ce1192d04a52b01ccb41284f0b7896430e'/>
<id>urn:sha1:e56136ce1192d04a52b01ccb41284f0b7896430e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ime: don’t call text-input functions when it isn’t available</title>
<updated>2020-12-26T11:09:48Z</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=2227e36c662d05c0a91ef6d98e8bee1ad625928d'/>
<id>urn:sha1:2227e36c662d05c0a91ef6d98e8bee1ad625928d</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>
</feed>
