<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/search.c, branch 1.4.2</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.4.2</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.4.2'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-07-22T15:51:27Z</updated>
<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>
<entry>
<title>wayland: store pointer to window instance in all surfaces</title>
<updated>2020-02-29T11:09:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-29T11:09:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=43c05518064d6b6dc9a24cf2bded216ab84508f7'/>
<id>urn:sha1:43c05518064d6b6dc9a24cf2bded216ab84508f7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wayland: instantiate sub-surfaces on-demand</title>
<updated>2020-02-26T11:22:16Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-26T11:22:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ea97a0dc87f7d8f070de747f0e3adc35780c6cca'/>
<id>urn:sha1:ea97a0dc87f7d8f070de747f0e3adc35780c6cca</id>
<content type='text'>
While most compositors handle instantiated but not-yet-mapped
sub-surfaces correctly, e.g. kwin does not.

For example, it will incorrectly offset the main surface both
horizontally and vertically with a couple of pixels, leaving two
transparent areas at the top and left, between the SSDs and the main
surface.

Note that a workaround is to position the sub-surfaces inside the main
surface while they're unmapped. However, since the surfaces may be
larger than the main surface (the CSDs, for examples, always are),
this doesn't quite work since kwin, at least, resizes the window to
include the sub-surfaces, even when unmapped.

So, instead we instantiate all sub-surfaces on demand, when we know
where to position them, and when they should be mapped.
</content>
</entry>
<entry>
<title>search: rename render.search_offset -&gt; render.search_glyph_offset</title>
<updated>2020-01-05T14:25:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-05T14:25:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7e178d63374fd26da27ed9cc862b4b88443d1917'/>
<id>urn:sha1:7e178d63374fd26da27ed9cc862b4b88443d1917</id>
<content type='text'>
</content>
</entry>
<entry>
<title>render: ensure cursor is always visible in the search box</title>
<updated>2020-01-05T14:16:40Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-05T14:16:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5a895202740963971423ee27d5c0f77a4a3f84cc'/>
<id>urn:sha1:5a895202740963971423ee27d5c0f77a4a3f84cc</id>
<content type='text'>
Maintain a view 'offset' (which glyph from the search string to start
rendering at).

This defines the start of the viewable area. The end is the offset +
the search box size (which is limited to the window size).

Adjust this offset whenever the cursor moves outside the viewable
area. For now, this is always done in the same way: set the offset to
the cursor position.

This means that when we're entering text at the end of the search
criteria (i.e. the normal case; we're simply typing), and the search
box reaches the window size, the cursor will jump to the start of the
search box, which will be empty. This could be confusing, but let's go
with for now.
</content>
</entry>
<entry>
<title>selection: track selection type; normal or block selection</title>
<updated>2020-01-03T22:29:45Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-01-03T22:29:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d706e6828062aa35505d3893fb3c04b84985aa29'/>
<id>urn:sha1:d706e6828062aa35505d3893fb3c04b84985aa29</id>
<content type='text'>
</content>
</entry>
<entry>
<title>search: match_to_end_of_word: reset end_col when done with a row</title>
<updated>2019-12-03T19:26:32Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-03T19:26:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a17ce10c03f9c69f11ca6ebc03bca1ac2adc9d48'/>
<id>urn:sha1:a17ce10c03f9c69f11ca6ebc03bca1ac2adc9d48</id>
<content type='text'>
</content>
</entry>
</feed>
