<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/search.c, branch 1.2.1</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.2.1</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.2.1'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-03-06T18:16:54Z</updated>
<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>
<entry>
<title>search: match_to_end_of_word: bug: reset end-col when bumping end-row</title>
<updated>2019-12-03T19:25:22Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-03T19:25:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0f98101bbcff89be4743c5e879531ca3fd520019'/>
<id>urn:sha1:0f98101bbcff89be4743c5e879531ca3fd520019</id>
<content type='text'>
When we calculate the end coords, we must reset end-col when we reach
the end of the line and bump the end-row.

This fixes an issue where bumping the row once lead to the end row
being bumped for *each* remaining match character.
</content>
</entry>
<entry>
<title>search: bug: restore end-col/end-row adjustment</title>
<updated>2019-12-03T19:24:41Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-03T19:24:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=6cfb3216c350011ac7a15850f87e5dec6da29850'/>
<id>urn:sha1:6cfb3216c350011ac7a15850f87e5dec6da29850</id>
<content type='text'>
Turns out end_col *can* be exactly 0. In this case, we need to adjust
the end-row too.
</content>
</entry>
<entry>
<title>search: bug: re-initialize start-row when attempting a new match</title>
<updated>2019-12-03T19:00:38Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-03T19:00:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=008281757b007cfed3b1ebf22b7879d68820aaef'/>
<id>urn:sha1:008281757b007cfed3b1ebf22b7879d68820aaef</id>
<content type='text'>
When we've already found a partial match (but *not* a complete match),
and that match spanned multiple lines, then when we continued with the
next start-column we re-used a know-wrong row pointer.
</content>
</entry>
<entry>
<title>search: map ctrl+shift+w to match to end of word, spaces only</title>
<updated>2019-12-03T18:43:45Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-03T18:43:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0982210af21ae53135e2bb139e4a69d25d316285'/>
<id>urn:sha1:0982210af21ae53135e2bb139e4a69d25d316285</id>
<content type='text'>
This works just like ctrl+w, except that the only space separating
characters are whitespaces.
</content>
</entry>
<entry>
<title>search: search_match_to_end_of_word: rename start_{row,col} -&gt; end_{row,col}</title>
<updated>2019-12-03T18:43:11Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-03T18:42:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=867cac4207aea464803729339c014024389c5b81'/>
<id>urn:sha1:867cac4207aea464803729339c014024389c5b81</id>
<content type='text'>
</content>
</entry>
<entry>
<title>search: split up search_update() into two</title>
<updated>2019-12-03T18:40:22Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-03T18:40:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2a5da66e4e3020b91f52a411bab1617f9232c421'/>
<id>urn:sha1:2a5da66e4e3020b91f52a411bab1617f9232c421</id>
<content type='text'>
* search_find_next() searches the scrollback, continuing from the last
  match. The assumption is that the search buffer has changed.

* search_update_selection() updates the selection and moves the view
  to ensure the selection is visible. Note that it doesn't verify the
  selection actually matches the search buffer.
</content>
</entry>
<entry>
<title>search: rename search_update() -&gt; search_find_next()</title>
<updated>2019-12-03T18:24:33Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-03T18:24:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e003736e1195c48d4371e5bdc02883addd3850f4'/>
<id>urn:sha1:e003736e1195c48d4371e5bdc02883addd3850f4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>search: map ctrl+w to 'extend current selection to end of word'</title>
<updated>2019-12-03T18:22:47Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-03T18:22:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b5a04dcaae5bd0ebffa6daf02a75a0900925a562'/>
<id>urn:sha1:b5a04dcaae5bd0ebffa6daf02a75a0900925a562</id>
<content type='text'>
If the user has started a scrollback search and have some matching
text, he can now press ctrl+w to extend that selection (and thus the
search criteria too) to the end of the current word, or to the end of
the next word if currently at a word separating character.
</content>
</entry>
<entry>
<title>search: discard canceled compose sequences</title>
<updated>2019-12-03T18:21:16Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-03T18:21:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=694d84a9e903114d242fbc3ea0c845b8a35010f4'/>
<id>urn:sha1:694d84a9e903114d242fbc3ea0c845b8a35010f4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revert "search: discard canceled compose sequences"</title>
<updated>2019-12-03T18:21:03Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-03T18:21:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a34deabcc90fa252ad9165f79cd0e1a6dda7a0ba'/>
<id>urn:sha1:a34deabcc90fa252ad9165f79cd0e1a6dda7a0ba</id>
<content type='text'>
This reverts commit f67733c0e3a4e4ba19e1c70bc36ee78af762868f.
</content>
</entry>
</feed>
