<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/ime.c, branch 1.10.2</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.10.2</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.10.2'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2021-05-14T12:41:02Z</updated>
<entry>
<title>term: rename CELL_MULT_COL_SPACER -&gt; CELL_SPACER, and change its definition</title>
<updated>2021-05-14T12:41:02Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-05-14T12:41:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d9e1aefb9173857f0632227de5ac368a505c69bf'/>
<id>urn:sha1:d9e1aefb9173857f0632227de5ac368a505c69bf</id>
<content type='text'>
Instead of using CELL_SPACER for *all* cells that previously used
CELL_MULT_COL_SPACER, include the remaining number of spacers
following, and including, itself. This is encoded by adding to the
CELL_SPACER value.

So, a double width character will now store the character itself in
the first cell (just like before), and CELL_SPACER+1 in the second
cell.

A three-cell character would store the character itself, then
CELL_SPACER+2, and finally CELL_SPACER+1.

In other words, the last spacer is always CELL_SPACER+1.

CELL_SPACER+0 is used when padding at the right margin. I.e. when
writing e.g. a double width character in the last column, we insert a
CELL_SPACER+0 pad character, and then write the double width character
in the first column on the next row.
</content>
</entry>
<entry>
<title>config: add ‘beam-thickness’ option</title>
<updated>2021-04-30T18:36:16Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-04-30T18:31:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7ce767ab87ca915b2ac4023cc95dbda81fe87abd'/>
<id>urn:sha1:7ce767ab87ca915b2ac4023cc95dbda81fe87abd</id>
<content type='text'>
* Rename cursor.style value ‘bar’ to ‘beam’. ‘bar’ remains recognized,
  but should eventually be deprecated and then removed.
* Add ‘cursor.beam-thickness’ option, a pt-or-px value specifying the
  thickness of the beam cursor. Defaults to 1.5pt.
* Rename (and export) pt_or_px_as_pixels() to
  term_pt_or_px_as_pixels()
* Change term_pt_or_px_as_pixels() to round point values instead of
  truncating them.
</content>
</entry>
<entry>
<title>ime: set ‘have_warned = true’ to avoid warning over and over again</title>
<updated>2021-03-25T08:36:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-23T16:30:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ebb92a4db6e7c3484b918c07092aa381103bada7'/>
<id>urn:sha1:ebb92a4db6e7c3484b918c07092aa381103bada7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ime: log warning on text-input::done() received without keyboard focus</title>
<updated>2021-03-25T08:36:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-23T13:02:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=adb5a344fe6b4a8789813f5a39cce7067a40034f'/>
<id>urn:sha1:adb5a344fe6b4a8789813f5a39cce7067a40034f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ime: don’t enable IME if we don’t have keyboard focus</title>
<updated>2021-03-25T08:36:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-23T13:01:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ed3e70a9c78413e85b2cb1c379d26d592c13f827'/>
<id>urn:sha1:ed3e70a9c78413e85b2cb1c379d26d592c13f827</id>
<content type='text'>
Closes #411
</content>
</entry>
<entry>
<title>ime: don’t pass ‘term’ to ime_update_cursor_rect()</title>
<updated>2021-03-25T08:36:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-23T12:56:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=13b45db13e134c81ea72d1d70bf782ecd2445900'/>
<id>urn:sha1:13b45db13e134c81ea72d1d70bf782ecd2445900</id>
<content type='text'>
In all instances where we call ime_update_cursor_rect(), the ‘term’
argument is the same as seat-&gt;kbd_focus.

So, let ime_update_cursor_rect() use that directly instead.

Also make ime_send_cursor_rect() static (i.e. local to ime.c).
</content>
</entry>
<entry>
<title>ime: codespell: actaually -&gt; actually</title>
<updated>2021-03-25T08:36:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-23T12:37:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1c355f7b7f61a85578144b967aa50aa9e8f2cf36'/>
<id>urn:sha1:1c355f7b7f61a85578144b967aa50aa9e8f2cf36</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ime: move preedit state from terminal struct to the seat struct</title>
<updated>2021-03-25T08:36:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-03-23T12:03:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e8ffb05bc7fb3b996752f345b77af4b757f69776'/>
<id>urn:sha1:e8ffb05bc7fb3b996752f345b77af4b757f69776</id>
<content type='text'>
This ensures different seat’s don’t step on each others IME pre-edit
state.

It also removes most dependencies on having a valid term pointer for
many IME operations.

We’re still not all the way, since we support disabling IME with a
private mode, which is per terminal, not seat.

Thus, we still require the seat to have keyboard focus on one of our
windows.

Closes #324. But note that *rendering* of multiple seat’s IME pre-edit
strings is still broken.
</content>
</entry>
<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>
</feed>
