<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/search.c, branch 1.1.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.1.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.1.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-01-05T14:25:24Z</updated>
<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>
<entry>
<title>search: discard canceled compose sequences</title>
<updated>2019-12-03T18:19:55Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-03T18:19:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f67733c0e3a4e4ba19e1c70bc36ee78af762868f'/>
<id>urn:sha1:f67733c0e3a4e4ba19e1c70bc36ee78af762868f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>search: remove debug log</title>
<updated>2019-12-03T18:19:26Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-03T18:19:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ac2eda885abde3540a7e2dafdc535de228d1f20f'/>
<id>urn:sha1:ac2eda885abde3540a7e2dafdc535de228d1f20f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>search: don't line-wrap unless we actually have a match on the next row</title>
<updated>2019-12-03T18:17:51Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-03T18:17:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=10cf7226179a8598239eda3be0566b515ecbb11a'/>
<id>urn:sha1:10cf7226179a8598239eda3be0566b515ecbb11a</id>
<content type='text'>
When matching characters, we moved on to next row directly after
matching the last character in a row.

This was wrong since if that last character was the last matching
character, we tried to create a selection that was on the wrong row.
</content>
</entry>
<entry>
<title>search: break out search buffer resize code to a new function</title>
<updated>2019-12-03T18:17:34Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-03T18:17:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d94fc80966295d24613f7bfa49884d518d59caa3'/>
<id>urn:sha1:d94fc80966295d24613f7bfa49884d518d59caa3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add missing includes</title>
<updated>2019-12-01T18:22:45Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-01T18:22:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b5780e735e5b73ba5aa50d53af698e012aaf3f74'/>
<id>urn:sha1:b5780e735e5b73ba5aa50d53af698e012aaf3f74</id>
<content type='text'>
</content>
</entry>
<entry>
<title>search: update xcursor when starting and ending a search</title>
<updated>2019-11-29T21:11:15Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-29T21:11:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=876cd6895fe0eaf24aa45b340a698b07d2c5470e'/>
<id>urn:sha1:876cd6895fe0eaf24aa45b340a698b07d2c5470e</id>
<content type='text'>
</content>
</entry>
</feed>
