Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    .b
    @.b:matrix.org
    [m]
    Firefox about:addons says I have Version 1.21.1pre6005
    bovine3dom
    @bovine3dom:matrix.org
    [m]
    You could try seturl [regex for gmail] superignore true, which stops Tridactyl from loading in the page
    3 replies
    (you'd need to reload)
    It will stop most Tridactyl binds so use ctrl-, to get back to a page where Tridactyl does work
    .b
    @.b:matrix.org
    [m]
    Thanks
    Alex Follette
    @Afollet
    # controller in excmd: TypeError: e is null Why do I get this sometimes when I try to use editor() ?
    bovine3dom
    @bovine3dom:matrix.org
    [m]
    not sure, we changed a lot recently with the editor so it's possible it's a new bug or it's a bug we just fixed
    I'll try to release a new beta build tomorrow and then maybe the error will go away :)
    Alex Follette
    @Afollet
    That's awesome!
    export async function editor() {
        const elem = DOM.getLastUsedInput()
        const selector = DOM.getSelector(elem)
    What is DOM.getLastUsedInput() ? It returns a null for me and that is the source of this error. I suppose I am not using it correctly
    1 reply
    bovine3dom
    @bovine3dom:matrix.org
    [m]
    editor can only be run in insert mode iirc
    1 reply
    It's bound to ctrl-i in insert mode by default
    Alex Follette
    @Afollet
    :stars:
    That's amazing
    bovine3dom
    @bovine3dom:matrix.org
    [m]
    all working? Great :)
    Alex Follette
    @Afollet
    Yes. This project is phenomenal. Great job!
    bovine3dom
    @bovine3dom:matrix.org
    [m]
    glad you like it
    Lyhokia
    @glyh
    Hello! Can anyone tell me how to config tridactyl so that the highlight window update with the text moving?
    For example, in gitter I use '/' to search chat context, and scroll the window, the highlight won't follow the text
    is this an issue?
    2 replies
    PaweĊ‚ Sacawa
    @psacawa
    Hello, if anyone else experienced a regression in the quality of fuzzy matches in the 1.22 update, I would like to say that I tracked it down to 20dc1918, which changes the fuse.js option threshold option from its default of 0.6 to 0.3 . So to fix it, I think you can run set completionfuzziness 0.6
    3 replies
    Ned Ludd
    @nedludd
    Can you show me a bindurl syntax to only hint search results would look? The one I have from an old tridactylrc doesn't hint at all. bindurl ^https://duckduckgo.com f hint -Jc [class~=result__a]
    bindurl ^https://duckduckgo.com F hint -Jbc [class~=result__a]
    1 reply
    bovine3dom
    @bovine3dom:matrix.org
    [m]
    It was updated last in March
    Michael Rose
    @michaelmrose
    Is there a way to add a binding that will switch to ignore and leave ignore immediately after accepting one key? I really like f as my binding to hint but some pages bind f to make a video fullscreen
    1 reply
    bovine3dom
    @bovine3dom:matrix.org
    [m]
    @michaelmrose: it's ctrl-v
    Ctrl-o does the same thing but the other way around when you're already in ignore mode and want to access normal briefly
    Useful for opening the command line for example
    Michael Rose
    @michaelmrose
    thanks
    Farzad Sadeghi
    @terminaldweller
    how can I enable fuzzy matching for history?
    1 reply
    bovine3dom
    @bovine3dom:matrix.org
    [m]
    we're somewhat limited because Firefox doesn't let us query history fuzzily
    Farzad Sadeghi
    @terminaldweller
    ok. I'll take a look. thanks.
    frenchbeard
    @sebfault:matrix.org
    [m]
    hello there, couldn't find anything through a quick search in the repo / issues, has anyone attempted any integration of lazy-tabs with tridacyl ?
    1 reply
    since the add-on adds commands to the tab context menu, to lazilly (i.e., unloaded until switched to), or would you simply try to add it as a "userScript", since the whole thing seems to hold in the add-on description itself (https://addons.mozilla.org/en-US/firefox/addon/lazy-tabs/ for the curious) ?
    Dotan Cohen
    @dotancohen
    Hi all. Is there an idempotent way to just focus the page? No matter if currently the page or the address bar or some other UI element is focused, something that I can add to an automation script to focus the actual webpage?
    1 reply
    bovine3dom
    @bovine3dom:matrix.org
    [m]
    if you need to automate it use something like xdotool to trigger the keypresses - the thing it is bound to, :escapehatch, only works fully when it is triggered by a --mode=browser bind
    Dotan Cohen
    @dotancohen
    Yes, I am using xdotool.
    bovine3dom
    @bovine3dom:matrix.org
    [m]
    ctrl-, should do the trick :)
    Dotan Cohen
    @dotancohen

    the thing it is bound to, :escapehatch, only works fully when it is triggered by a --mode=browser bind

    How would that work with xdotool? xdotool has no mode flag that I know of, nor is it documented in the manpage.

    ctrl-, should do the trick :)

    Not if the address bar is focused!

    3 replies
    bovine3dom
    @bovine3dom:matrix.org
    [m]
    If you have :set escapehatchsidebarhack false for compatibility with TST then the escapehatch works less well
    We get focus from the address bar to the webpage by opening and closing the sidebar
    It's crazy but it works :(
    I should investigate whether opening and closing the browseraction popup does the same thing
    Dotan Cohen
    @dotancohen
    I have set escapehatchsidebarhack false in Tridactyl.
    2 replies
    Dotan Cohen
    @dotancohen
    Right now I'm still trying to parse sessionstore-backups/recovery.jsonlz4. I think that I've got most of what I need, but jq is a real pain. And it seems that the file is written every N seconds or so, where N is larger than I'd like. It would be nice if there were a way to force the write on demand.
    My end goal is to get the current page link as Org mode format.
    1 reply
    Maybe there is another way to do that?
    Dotan Cohen
    @dotancohen
    Not directly related to Tridactyl, but for anybody for finds this thread looking for a way to get the current URL, Title or other data out of Firefox, here is an easily-modified one-liner that returns an Org mode link to the currently-displayed page:
    lz4jsoncat $FIREFOX_DIR/sessionstore-backups/recovery.jsonlz4 | jq -r '.windows[0].t abs | sort_by(.lastAccessed)[-1] | .entries[.index-1] | \"[[\" + (.url) + \"][\" + (.title) + \"]]\"' | tr -d '\n'
    To use it I recommend setting the about:config variable browser.sessionstore.interval to 1000, otherwise the information is written only once per 15 seconds.