<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/search.c, branch 1.5.4</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.5.4</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.5.4'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-08-23T08:07:00Z</updated>
<entry>
<title>don't use empty struct initializers</title>
<updated>2020-08-23T08:07:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-23T05:42:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=dabdffafa59f43314333be42aa519d7fff1b4498'/>
<id>urn:sha1:dabdffafa59f43314333be42aa519d7fff1b4498</id>
<content type='text'>
</content>
</entry>
<entry>
<title>search: don't update/refresh match when modifier keys are pressed</title>
<updated>2020-08-12T17:40:50Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-12T16:47:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8626b4bc1a06e01659baf7cb0c2ab0b171a4c919'/>
<id>urn:sha1:8626b4bc1a06e01659baf7cb0c2ab0b171a4c919</id>
<content type='text'>
</content>
</entry>
<entry>
<title>search: fix viewport not moving if we tried to move it past the scrollback start</title>
<updated>2020-08-12T17:40:40Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-12T16:45:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b01431e38f96c8d42a5fa37c1b1e1f46bfb60f3a'/>
<id>urn:sha1:b01431e38f96c8d42a5fa37c1b1e1f46bfb60f3a</id>
<content type='text'>
If the match was somewhere near the scrollback beginning, and if the
entire scrollback hadn't yet been filled, we ended up trying to move
the viewport past the beginning of the scrollback, which we then
adjusted in the wrong direction, causing the viewport to not move at
all.

Besides being a bad user experience, since the new match wasn't
visible, foot would also crash if you manually scrolled up to the
match.
</content>
</entry>
<entry>
<title>fix printf-format errors in 32-bit builds</title>
<updated>2020-08-06T21:20:46Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-06T21:20:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=019b6bc039f318b150b78a1fec3672db71c74a63'/>
<id>urn:sha1:019b6bc039f318b150b78a1fec3672db71c74a63</id>
<content type='text'>
</content>
</entry>
<entry>
<title>search: fix crash when searching the scrollback history</title>
<updated>2020-07-25T09:23:54Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-25T09:23:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9f82cbaa496f3c9c8210d3e78bee0de038d232e9'/>
<id>urn:sha1:9f82cbaa496f3c9c8210d3e78bee0de038d232e9</id>
<content type='text'>
search_update_selection() was changed in 1.4.x to *first* update the
selection, *then* move the viewport.

This leads to a crash if the new match (selection) is outside the
current viewport; the selection code assumes the updated selection
endpoint is in the visible viewport.

Changing back to *first* move the viewport, *then* update the
selection solves this.
</content>
</entry>
<entry>
<title>search: improve viewport movements</title>
<updated>2020-07-24T15:49:50Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-24T15:49:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8d81dde5b8ba0d0b694794c0a223c76cfcff5335'/>
<id>urn:sha1:8d81dde5b8ba0d0b694794c0a223c76cfcff5335</id>
<content type='text'>
* Don't move the viewport if the new match is already fully visible
* When we do have to move the viewport, position it such that the new
  match ends up roughly in the middle.
</content>
</entry>
<entry>
<title>search: re-enable search-commit action</title>
<updated>2020-07-22T15:51:27Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-22T15:51:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ac7b229f7cb83535765597519888c3e4a27215d3'/>
<id>urn:sha1:ac7b229f7cb83535765597519888c3e4a27215d3</id>
<content type='text'>
This was disabled while implementing multi-seat support, and I forgot
to fix and re-enable before that feature was merged.
</content>
</entry>
<entry>
<title>multi-seat: re-enable scrollback search support</title>
<updated>2020-07-08T16:20:34Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-08T16:20:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=04e566492cd831f038afb5ef8908453efca84cde'/>
<id>urn:sha1:04e566492cd831f038afb5ef8908453efca84cde</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wip: multi-seat support</title>
<updated>2020-07-08T14:45:26Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-08T14:45:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c47082506714f458e999f6ff1bf3099dfc4c0c0c'/>
<id>urn:sha1:c47082506714f458e999f6ff1bf3099dfc4c0c0c</id>
<content type='text'>
Compiles and runs, but mouse, clipboard and other things have been
disabled.
</content>
</entry>
<entry>
<title>util.h: new header file defining commonly used macros</title>
<updated>2020-05-01T09:46:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-05-01T09:46:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=69c3e744983e37662fa7b4f61482fb1d142e257c'/>
<id>urn:sha1:69c3e744983e37662fa7b4f61482fb1d142e257c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>misc: replace all explicit zero-initializers with empty initializers</title>
<updated>2020-04-13T10:03:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-13T10:03:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c96a0b3b3ce22f0db45e61160d414258917e4bcd'/>
<id>urn:sha1:c96a0b3b3ce22f0db45e61160d414258917e4bcd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mbstate: fix compile warning on systems where mbstate_t isn't an integral</title>
<updated>2020-04-13T09:58:38Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-04-13T09:58:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d67f437458ed96b55d475a471d1a16da52ca4cd4'/>
<id>urn:sha1:d67f437458ed96b55d475a471d1a16da52ca4cd4</id>
<content type='text'>
An empty initializer still ensures the entire object is
zero-initialized.
</content>
</entry>
<entry>
<title>search: replace hard-coded key bindings with "user configurable" ones</title>
<updated>2020-03-18T14:30:14Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-18T14:30:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=04191564946d3ba6c1c49e5041e4bd0cda819043'/>
<id>urn:sha1:04191564946d3ba6c1c49e5041e4bd0cda819043</id>
<content type='text'>
They aren't really user configurable. At least not yet.

However, with this, we now handle raw key codes just like the normal
key bindings. Meaning, e.g. ctrl+g, ctrl+a, ctrl+e etc now works while
searching with e.g. a russian layout.
</content>
</entry>
<entry>
<title>input: bindings: don't match raw key code alone - mods must also match</title>
<updated>2020-03-18T13:52:39Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-18T13:52:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a69b818a6232a3704e3125e17f7e392382faee84'/>
<id>urn:sha1:a69b818a6232a3704e3125e17f7e392382faee84</id>
<content type='text'>
</content>
</entry>
<entry>
<title>input: bind key bindings to raw key codes too</title>
<updated>2020-03-18T13:29:34Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-18T13:29:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6d30e7d15de49ba531cd8f8cd99c356d7f1ca0fc'/>
<id>urn:sha1:6d30e7d15de49ba531cd8f8cd99c356d7f1ca0fc</id>
<content type='text'>
Before, when looking for a matching user key binding, we only
matched *symbols*.

This means that the physical keys that generate a specific key binding
is layout dependent. What's worse, it may not even be possible to
generate the key binding at all.

Russian is one such layout, where all the "normal" (us) symbols are
replaced.

By using raw key codes, we can get around this - the key code has a
direct mapping to the physical key.

However, matching raw key codes **only** doesn't always make sense
either. For now, match **both** symbols _and_ key codes. Symbols take
precedence.

TODO: we might have to make this configurable _per binding_.

Note: 'search' mode still uses mostly hardcoded shortcuts that still
have this problem (i.e. ctrl+g doesn't work with a russian layout).
</content>
</entry>
<entry>
<title>search: add support for user configurable key bindings</title>
<updated>2020-03-08T14:28:47Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-08T14:28:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0d188895c3e88f591aa47f7a5c272ad959e5a40d'/>
<id>urn:sha1:0d188895c3e88f591aa47f7a5c272ad959e5a40d</id>
<content type='text'>
No default bindings defined yet, though.
</content>
</entry>
<entry>
<title>render: never render CSD and/or search box "immediately"</title>
<updated>2020-03-06T18:16:54Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-06T18:16:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c5a1af4e534f0f290ea885b221d7d37d020ac994'/>
<id>urn:sha1:c5a1af4e534f0f290ea885b221d7d37d020ac994</id>
<content type='text'>
Handle the CSDs and the search box the same way we handle the main
grid; when we need to redraw them, call
render_refresh_{csd,search}(). This sets a flag that is checked after
each FDM iteration. All actual rendering is done here.

This also ties the commits of the Wayland sub-surfaces to the commit
of the main surface.
</content>
</entry>
<entry>
<title>search: don't mark the entire sub-surface as opaque</title>
<updated>2020-03-01T12:06:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-01T12:06:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7b3fffc6eceac1aeaa452e4c0a26c3c94ba7e8ba'/>
<id>urn:sha1:7b3fffc6eceac1aeaa452e4c0a26c3c94ba7e8ba</id>
<content type='text'>
</content>
</entry>
<entry>
<title>search: enable/disable weston sub-surface desync quirk when rendering search box</title>
<updated>2020-03-01T12:06:00Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-01T12:06:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b6f8a2e422fe05c1c1e63d39f72857d4c480bc7c'/>
<id>urn:sha1:b6f8a2e422fe05c1c1e63d39f72857d4c480bc7c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>search: update search box before we update the main grid</title>
<updated>2020-03-01T11:24:37Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-03-01T11:24:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3ec50369cef48f0eeb9b4044201c076bcbbb91bd'/>
<id>urn:sha1:3ec50369cef48f0eeb9b4044201c076bcbbb91bd</id>
<content type='text'>
</content>
</entry>
</feed>
