!AXdLfOGmSqOJipwjRW:matrix.org

tridactyl

258 Members
https://github.com/tridactyl/tridactyl archived messages: https://matrix.to/#/!xmubtggllUtLrQiGyn:matrix.org/$1654280187215fKpBY:matrix.org?via=matrix.org&via=t2bot.io&via=kde.org45 Servers

Load older messages


SenderMessageTime
23 Sep 2024
@ixhby:ixhby.devEmilia [she/her] joined the room.10:54:26
26 Sep 2024
@ixhby:ixhby.devEmilia [she/her] changed their profile picture.16:05:11
30 Sep 2024
@evilsetg:matrix.orgevilsetg joined the room.12:02:14
@evilsetg:matrix.orgevilsetg

Hey I am trying to get native messaging working on my system (Guix Linux). When trying to check if native messaging is working with :native I observed which message firefox sends to ~/.local/share/native_main and it is {"cmd": "version"} prefixed by the bytes 1100 0000 this leads to an error message Error: unhandled exception: input(1, 17) Error: } expected [JsonParsingError]. However if I try the same command with the 3300 0000 prefix as I got it from the command printf '%c\0\0\0{"cmd": "run", "command": "echo $PATH"}' 39 | ~/.local/share/tridactyl/native_main from https://github.com/tridactyl/tridactyl/blob/master/doc/troubleshooting.md it works. That mentioned command from the troubleshooting guide works too.
Now I want to ask three questions:

  1. What is the meaning of these prefixes?
  2. Who is at fault here? Firefox for sending 1100 0000 or native_main for not accepting it
  3. Is there something I can do to fix this problem? The only thing I can think of is putting something in between firefox and native main that changes these message prefixes.
12:37:01
@bovine3dom:matrix.orgbovine3dom
In reply to @evilsetg:matrix.org

Hey I am trying to get native messaging working on my system (Guix Linux). When trying to check if native messaging is working with :native I observed which message firefox sends to ~/.local/share/native_main and it is {"cmd": "version"} prefixed by the bytes 1100 0000 this leads to an error message Error: unhandled exception: input(1, 17) Error: } expected [JsonParsingError]. However if I try the same command with the 3300 0000 prefix as I got it from the command printf '%c\0\0\0{"cmd": "run", "command": "echo $PATH"}' 39 | ~/.local/share/tridactyl/native_main from https://github.com/tridactyl/tridactyl/blob/master/doc/troubleshooting.md it works. That mentioned command from the troubleshooting guide works too.
Now I want to ask three questions:

  1. What is the meaning of these prefixes?
  2. Who is at fault here? Firefox for sending 1100 0000 or native_main for not accepting it
  3. Is there something I can do to fix this problem? The only thing I can think of is putting something in between firefox and native main that changes these message prefixes.
hi, I'm pretty sure it tells the native messenger how long the message it is expecting is
14:37:05
@bovine3dom:matrix.orgbovine3dombut it's been ages since I last looked at it14:37:23
@bovine3dom:matrix.orgbovine3dommaybe there's some difference on your system with the character set?14:37:50
@bovine3dom:matrix.orgbovine3domIf you look at the native messenger repo there's a python utility for generating test messages, maybe that will help14:38:19
@unratedjockey:tchncs.de@unratedjockey:tchncs.de left the room.14:54:05
@evilsetg:matrix.orgevilsetg Thank you for the info! From what I gather then It's a bug on Firefox' side because if i count right {"cmd": "version"} are 18 characters not 17 as 0x11 would imply. I checked on another device and curiously there Firefox there also gives a length of 0x11. I think for now I build native_main with a readStr(strm, length+1) 😅. 18:56:31
@evilsetg:matrix.orgevilsetgwait, that does not work :(19:25:10
@evilsetg:matrix.orgevilsetgSo in the end it was not a firefox bug. Turns out I counted wrong. Rather it is something else. Anyways, building native_main from source and using that one fixed it. Thank you for your help!20:12:49
1 Oct 2024
@borangoher:matrix.org@borangoher:matrix.org joined the room.21:14:05
@borangoher:matrix.org@borangoher:matrix.org left the room.21:14:25
2 Oct 2024
@ixhby:ixhby.devEmilia [she/her] changed their display name from ixhby to Emilia [she/her] :3.18:47:44
4 Oct 2024
@ixhby:ixhby.devEmilia [she/her] changed their display name from Emilia [she/her] :3 to Emilia [she/her].14:38:44
9 Oct 2024
@coelacanthus:mozilla.orgCoelacanthus joined the room.10:59:13
10 Oct 2024
@Lexi:matrix.orgLexiIs it possible to show closed tabs in the order of last closed time with Tridactyl? 09:35:02
@bovine3dom:matrix.orgbovine3dom
In reply to @Lexi:matrix.org
Is it possible to show closed tabs in the order of last closed time with Tridactyl?
isn't this what :undo does?
09:36:41
@Lexi:matrix.orgLexiOmg, I never knew, thank you!09:41:16
@Lexi:matrix.orgLexiWait, if that's already there, isn't it easy / already possible to show a list of last visited pages as well?09:41:48
@bovine3dom:matrix.orgbovine3dom
In reply to @Lexi:matrix.org
Wait, if that's already there, isn't it easy / already possible to show a list of last visited pages as well?
within a single tab that's what :back does
11:02:23
@Lexi:matrix.orgLexiI'm looking for general browsing history. But that explains why it's harder I guess :-)11:58:26
@stooj:matrix.orgstoojUndo is amazing. I know it's technically possible with stock, but tridactyl makes it so easy.13:17:14
@bovine3dom:matrix.orgbovine3dom
In reply to @Lexi:matrix.org
I'm looking for general browsing history. But that explains why it's harder I guess :-)

mostly i didn't do this because i couldn't get my head around how to do the user interface

:back is already huge, with all your tabs forever it would be enormous

14:36:43
@coelacanthus:mozilla.orgCoelacanthus Hi.
I add set modeindicatormodes.normal false to tridactylrc file to hide mode indicator in normal mode. But I found it doesn't take effect until I trigger a tridactyl operation (any kinds of, e.g. hjkl to move, : enter command mode, / to search). What's wrong with my config?
17:01:58
@bovine3dom:matrix.orgbovine3dom
In reply to @coelacanthus:mozilla.org
Hi.
I add set modeindicatormodes.normal false to tridactylrc file to hide mode indicator in normal mode. But I found it doesn't take effect until I trigger a tridactyl operation (any kinds of, e.g. hjkl to move, : enter command mode, / to search). What's wrong with my config?

it's tridactyl that's wrong I think

pretty sure we have a bug

17:20:27
@bovine3dom:matrix.orgbovine3domwe added that setting so people could hide it in ignore mode and didn't really think to test it in normal mode17:20:52
@Lexi:matrix.orgLexi
In reply to @bovine3dom:matrix.org

mostly i didn't do this because i couldn't get my head around how to do the user interface

:back is already huge, with all your tabs forever it would be enormous

What do you mean by "huge" regarding the UI? The list of completions? Limiting the results with a parameter and filtering / sorting would be my dream features. Would that take long because the set to filter through is so huge?
17:45:49
@Lexi:matrix.orgLexi
In reply to @bovine3dom:matrix.org
we added that setting so people could hide it in ignore mode and didn't really think to test it in normal mode
I recently had the idea that the mode indicator could be the extension's icon like in Doom Emacs for example. Then it would never be in the way :-)
17:48:11

Show newer messages


Back to Room ListRoom Version: 6