<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/selection.c, branch 1.5.1</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.5.1</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.5.1'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2020-10-11T17:27:07Z</updated>
<entry>
<title>selection: use appropriate check for PRIMARY paste</title>
<updated>2020-10-11T17:27:07Z</updated>
<author>
<name>Sergey Nazaryev</name>
<email>sergey@nazaryev.com</email>
</author>
<published>2020-10-10T18:13:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e842f4936740477a28357e8238455253aa2f02de'/>
<id>urn:sha1:e842f4936740477a28357e8238455253aa2f02de</id>
<content type='text'>
Assume it could be a copy-paste typo. We should check PRIMARY, not
CLIPBOARD. Without this fix, we can't use PRIMARY until we copy anything
to CLIPBOARD.
</content>
</entry>
<entry>
<title>selection: reset clipboard/primary-&gt;text after free:ing it</title>
<updated>2020-09-17T18:05:22Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-17T18:05:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fcb2beebdaf7882a7f9e7af9c040a7e0a3a68391'/>
<id>urn:sha1:fcb2beebdaf7882a7f9e7af9c040a7e0a3a68391</id>
<content type='text'>
</content>
</entry>
<entry>
<title>selection: primary unset: don’t free text twice</title>
<updated>2020-09-17T18:02:38Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-17T18:02:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=dd18710bb74575e2edfce697f4e9f81b9255e595'/>
<id>urn:sha1:dd18710bb74575e2edfce697f4e9f81b9255e595</id>
<content type='text'>
</content>
</entry>
<entry>
<title>selection: add selection_&lt;type&gt;_has_data()</title>
<updated>2020-09-09T17:01:21Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-09T16:45:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=dec6f963cbedb093370f8d9559e357e72a31df90'/>
<id>urn:sha1:dec6f963cbedb093370f8d9559e357e72a31df90</id>
<content type='text'>
Returns true when there is data available for paste in the
clipboard/primary selection.
</content>
</entry>
<entry>
<title>selection: add selection_&lt;type&gt;_unset()</title>
<updated>2020-09-09T17:01:21Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-09-09T16:44:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=c3cacb470430f3a19db8e2442f1ed61887044373'/>
<id>urn:sha1:c3cacb470430f3a19db8e2442f1ed61887044373</id>
<content type='text'>
These functions clear the current selection.
</content>
</entry>
<entry>
<title>codespell: selection: faild -&gt; failed</title>
<updated>2020-08-27T17:55:27Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-27T17:55:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=44e7943fef752e145f67c52588af6bc00eb422fe'/>
<id>urn:sha1:44e7943fef752e145f67c52588af6bc00eb422fe</id>
<content type='text'>
</content>
</entry>
<entry>
<title>selection: don't initiate a paste when we're already pasting</title>
<updated>2020-08-25T16:56:15Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-22T14:30:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1707db167815348eff3a3e8e7c5a73130df678ca'/>
<id>urn:sha1:1707db167815348eff3a3e8e7c5a73130df678ca</id>
<content type='text'>
</content>
</entry>
<entry>
<title>selection: must use term_paste_data_to_slave() for paste data</title>
<updated>2020-08-25T16:56:15Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-22T14:20:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9ec4c3fd947d8160ce38b9892e3172440bffe667'/>
<id>urn:sha1:9ec4c3fd947d8160ce38b9892e3172440bffe667</id>
<content type='text'>
</content>
</entry>
<entry>
<title>selection: clipboard callback: assert we're in sending-paste-data mode</title>
<updated>2020-08-25T16:56:15Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-22T07:23:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=efbc3431ed5f89f7a050af35d54ceb76e77e9aa8'/>
<id>urn:sha1:efbc3431ed5f89f7a050af35d54ceb76e77e9aa8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>selection: block non-paste data from being sent to client while pasting</title>
<updated>2020-08-25T16:56:15Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-22T07:14:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e570146c07b43ffacde6518e35b734b87095ed56'/>
<id>urn:sha1:e570146c07b43ffacde6518e35b734b87095ed56</id>
<content type='text'>
While pasting data from the clipboard, block *all* other data from
being sent to the client. This includes keyboard and mouse events, but
also replies for VT queries.

This is particularly important when bracketed paste has been enabled,
since then the client will interpret *everything* between the
bracketed paste start and end as paste data.
</content>
</entry>
<entry>
<title>selection: add a 2 second timeout when receiving clipboard data</title>
<updated>2020-08-25T16:56:13Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-22T06:29:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=81222dac578589d8ee37408ad892250fdd2d6de3'/>
<id>urn:sha1:81222dac578589d8ee37408ad892250fdd2d6de3</id>
<content type='text'>
When reading clipboard data, a malicious clipboard provider could
stall us forever, by not sending any data, and not closing the pipe.

This commit adds a timer_fd based timeout of 2 seconds. If the timer
triggers, we abort the clipboard receive.
</content>
</entry>
<entry>
<title>selection: don't do "return function_returning_void()" in functions returning void</title>
<updated>2020-08-23T08:07:09Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-23T07:39:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=74cf8e0206481394c4c75496467cca4b488fcbac'/>
<id>urn:sha1:74cf8e0206481394c4c75496467cca4b488fcbac</id>
<content type='text'>
</content>
</entry>
<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>selection: don't highlight trailing empty cells in a selection</title>
<updated>2020-08-18T16:03:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-12T16:54:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=cb9626741abefee1d5952c933e8ce5e2068fe9e3'/>
<id>urn:sha1:cb9626741abefee1d5952c933e8ce5e2068fe9e3</id>
<content type='text'>
This makes it clear which cells contain spaces (that will be copied)
or are empty (will *not* be copied).
</content>
</entry>
<entry>
<title>selection: extend: set ongoing to true</title>
<updated>2020-08-14T05:38:56Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-11T08:16:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f14b49068ac404879495b42343a6ab2e78b0609f'/>
<id>urn:sha1:f14b49068ac404879495b42343a6ab2e78b0609f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>selection: finalize: clear ongoing selection</title>
<updated>2020-08-14T05:38:55Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-11T08:15:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=9517c6443c0a0a9c8abf350e388c0be505c03de7'/>
<id>urn:sha1:9517c6443c0a0a9c8abf350e388c0be505c03de7</id>
<content type='text'>
Check for ongoing selection, and *clear* it before bailing out due to
the selection not having an end-point.

This fixes an issue where a selection was kept as ongoing, even though
the button had been released. Typically triggered by clicking without
moving the mouse; this started a new selection, then (tried to)
finalize it, but failed since the selection didn't have an end-point.
</content>
</entry>
<entry>
<title>selection: update: don't update if there's no ongoing selection</title>
<updated>2020-08-14T05:38:55Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-11T08:14:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=cddeaa2c1c648682e5d966d173f1663bee1d95a9'/>
<id>urn:sha1:cddeaa2c1c648682e5d966d173f1663bee1d95a9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: add mouse specific bind actions</title>
<updated>2020-08-14T05:38:55Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-11T07:55:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=20f0334e1314508683651b0e5c59fd637d1d13f5'/>
<id>urn:sha1:20f0334e1314508683651b0e5c59fd637d1d13f5</id>
<content type='text'>
This extends the "normal" bind action enum with mouse specific
actions.

When parsing key bindings, we only check up to the last valid keyboard
binding, while mouse bindings support *both* key actions and mouse
actions.

The new actions are:

* select-begin: starts an interactive selection
* select-extend: interactively extend an existing selection
* select-word: select word under cursor
* select-word-whitespace: select word under cursor, where the only
  word separating characters are whitespace characters.

The old hard-coded selection "bindings" have been converted to instead
use these actions, via default bindings added to the configuration.
</content>
</entry>
<entry>
<title>selection: improve handling of multi-column characters</title>
<updated>2020-08-13T16:33:22Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-13T16:33:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1decd8e9ded3ff9ea6af2226ce85a3fad9731399'/>
<id>urn:sha1:1decd8e9ded3ff9ea6af2226ce85a3fad9731399</id>
<content type='text'>
* Don't assume multi-column characters are exactly *two* columns
* Check for CELL_MULT_COL_SPACER values instead of using wcwidth()
</content>
</entry>
<entry>
<title>selection: handle multi-column characters when reversing selection direction</title>
<updated>2020-08-13T16:32:56Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-08-13T16:32:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=3816a3b460704c1576e558701e780bdeaeb802a3'/>
<id>urn:sha1:3816a3b460704c1576e558701e780bdeaeb802a3</id>
<content type='text'>
</content>
</entry>
</feed>
