<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/search.c, branch 1.0.0</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.0.0</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.0.0'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2019-12-03T19:26:32Z</updated>
<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>
<entry>
<title>wayland: implement wayl_init()</title>
<updated>2019-10-27T18:08:48Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-10-27T18:08:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=61cc8c3c55767556b81474eebe6712f7e9b42706'/>
<id>urn:sha1:61cc8c3c55767556b81474eebe6712f7e9b42706</id>
<content type='text'>
Wayland instantiation is now done by the wayland backend, not in main.
</content>
</entry>
<entry>
<title>term: wayland struct is now not a part of the terminal struct</title>
<updated>2019-10-27T17:51:14Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-10-27T17:51:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1adab32906b5455781921b779019a6d3f0e4fe56'/>
<id>urn:sha1:1adab32906b5455781921b779019a6d3f0e4fe56</id>
<content type='text'>
We do however need access to it, so provide a pointer. The difference
is that now we can have a *single* wayland instance, but multiple
terminal instances.
</content>
</entry>
<entry>
<title>wayland: change all wayland callbacks to take a wayland pointer</title>
<updated>2019-10-27T17:43:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-10-27T17:43:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9f0b1f94c284e76ff1579e7f34f4a7418ef98b02'/>
<id>urn:sha1:9f0b1f94c284e76ff1579e7f34f4a7418ef98b02</id>
<content type='text'>
Instead of passing the terminal to the wayland callbacks, pass a
'struct wayland' pointer.
</content>
</entry>
</feed>
