--- Log opened Mon Jul 26 00:00:55 2021 |
01:30 | <@celticminstrel> | Who thought quadruple-clicking to select the entire document was a good idea? |
01:33 | <~Vornicus> | I don't know I've never heard of that one |
01:43 | <&[R]> | I suppose that's a reasonable extension of Linux's tripple click to select a line, but I think I'd rather it select a paragraph |
01:43 | < catalyst> | that's an exciting one |
01:43 | <&[R]> | Since there's a shortcut to select the entire document |
01:44 | <@celticminstrel> | This is in VSCode. |
01:44 | < catalyst> | yeah I'd expect word, sentence, paragraph, document |
01:44 | <@celticminstrel> | And yeah, Cmd+A selects the whole document. I’d rather not have a mouse click do that. |
01:44 | < catalyst> | identifier, expression, scope |
01:44 | <@celticminstrel> | Especially since my mouse clicks itself sometimes, so a double-click can become a quadruple-click before I’ve noticed. |
01:58 | <@celticminstrel> | Uhh, hey, whoever wrote wesnoth.as_text… “escaping takes 3/4 of the time, but we can't avoid it…” |
01:59 | <@celticminstrel> | Doesn’t string.format(‘%q’, str) solve the issue? |
02:00 | <@celticminstrel> | I don’t know for certain that it would be faster, but given that it’s implemented in C instead of Lua, it seems likely. |
02:06 | <@celticminstrel> | My quick, unscientific profiling suggests that string.format is 8x faster than the gsub-based escape function. |
02:29 | | Degi_ [Degi@Nightstar-h00uc3.pool.telefonica.de] has joined #code |
02:30 | | Degi [Degi@Nightstar-3iikp5.pool.telefonica.de] has quit [Operation timed out] |
02:30 | | Degi_ is now known as Degi |
02:57 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Connection reset by peer] |
02:58 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code |
03:36 | | Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed] |
05:17 | | Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has joined #code |
05:17 | | mode/#code [+qo Vorntastic Vorntastic] by ChanServ |
06:15 | | VirusJTG [VirusJTG@Nightstar-0th.oti.104.208.IP] has quit [Connection closed] |
06:15 | | VirusJTG [VirusJTG@Nightstar-0th.oti.104.208.IP] has joined #code |
06:15 | | mode/#code [+ao VirusJTG VirusJTG] by ChanServ |
09:05 | | Kindamoody[zZz] is now known as Kindamoody |
09:25 | <@ErikMesoy> | [R]: BTW, triple click also selects line on Windows. Or at least it does in the five text-reading programs I had open to check. |
13:59 | | catalyst_ [catalyst@Nightstar-fig41j.dab.02.net] has joined #code |
14:01 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Ping timeout: 121 seconds] |
14:41 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code |
14:44 | | catalyst_ [catalyst@Nightstar-fig41j.dab.02.net] has quit [Connection closed] |
15:49 | | Vorntastic [uid293981@Nightstar-h2b233.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity] |
16:56 | | Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has joined #code |
17:07 | | Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code |
17:07 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
17:17 | | Kindamoody is now known as Kindamoody|afk |
17:58 | <&ToxicFrog> | celticminstrel: it's possible that their escaping requirements don't match the ones assumed by %q (which is specifically "escape in a manner readable by the lua lexer") but I doubt it |
17:59 | <&ToxicFrog> | perhaps worth sending in a patch! |
18:34 | | catalyst_ [catalyst@Nightstar-j8cj4s.dab.02.net] has joined #code |
18:37 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has quit [Ping timeout: 121 seconds] |
18:47 | | catalyst [catalyst@Nightstar-058ijn.cable.virginm.net] has joined #code |
18:50 | | catalyst_ [catalyst@Nightstar-j8cj4s.dab.02.net] has quit [Ping timeout: 121 seconds] |
19:02 | <@celticminstrel> | Oh wow, I posted that in the wrong channel. XD |
19:04 | <@celticminstrel> | Its intention is just as a pretty-print function primarily for debugging purposes (because Lua’s default print output for tables is quite useless). |
19:06 | <&ToxicFrog> | Yeah, that's why I wrote table.print() and table.dump() back in the day |
19:07 | <@celticminstrel> | If I were the sole developer I probably would’ve put something like that in the table module too, but some of the Wesnoth people seem to dislike the idea of modifying built-in modules. |
19:07 | <&ToxicFrog> | The whole point of embedding lua in your project is that you can modify it any way you like! |
19:08 | <@celticminstrel> | Wel, it’s not like I don’t see their point; I just don’t agree with it. |
19:08 | <@celticminstrel> | There could be something to be said for keeping the built-in modules in a state that matches official Lua documentation. |
19:09 | <@celticminstrel> | It does mean that if you see “table.something” you know you can check the official documentation and it’ll be there. |
19:10 | <@celticminstrel> | While if yoou see (eg) “tablex.something” you know it’ll be in the Wesnoth documentation. |
19:10 | <@celticminstrel> | I don’t get how my keyboard keeps randomly doubling letters on me… |
19:26 | < Emmy> | it might be dying on you |
19:26 | < Emmy> | omg wesnoth!? |
19:27 | < Emmy> | @celticminstrel, mechanical keyboard? |
21:04 | | Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed] |
21:12 | | abudhabi- [abudhabi@Nightstar-7m4gto.adsl.tpnet.pl] has joined #code |
21:15 | | abudhabi [abudhabi@Nightstar-6kq5no.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds] |
21:23 | | Kindamoody|afk is now known as Kindamoody |
21:46 | | catalyst [catalyst@Nightstar-058ijn.cable.virginm.net] has quit [[NS] Quit: -a- Connection Timed Out] |
21:46 | | catalyst [catalyst@Nightstar-058ijn.cable.virginm.net] has joined #code |
22:04 | | catalyst_ [catalyst@Nightstar-urffvf.dab.02.net] has joined #code |
22:07 | | catalyst [catalyst@Nightstar-058ijn.cable.virginm.net] has quit [Ping timeout: 121 seconds] |
22:13 | | catalyst [catalyst@Nightstar-ejd4sd.cable.virginm.net] has joined #code |
22:15 | | catalyst_ [catalyst@Nightstar-urffvf.dab.02.net] has quit [Ping timeout: 121 seconds] |
22:43 | | himi [sjjf@Nightstar-v37cpe.internode.on.net] has quit [Connection closed] |
23:09 | | Kindamoody is now known as Kindamoody[zZz] |
23:21 | | Emmy [Emmy@Nightstar-l49opt.fixed.kpn.net] has quit [Ping timeout: 121 seconds] |
--- Log closed Tue Jul 27 00:00:57 2021 |