Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Dennis Gosnell
    @cdepillabout

    @jakob.ledig_gitlab Hi, do you have a config anywhere available?

    Nixpkgs has a termonad-with-packages function you can use to get a Termonad with the given packages (similar to how xmonad works). If that is not working for you for some reason, you can also just compile termonad with the default.nix file in the Termonad repo.

    11 replies
    ShrykeWindgrace
    @ShrykeWindgrace
    Hi!
    I wonder if there is a way to change keybindings? I skimmed the documentation and found nothing except the list of default keybindings. The module Temonad.Keys seems to define something, but I do not see an immediate way to, for example, unbind the shortcut "Ctrl+Shift+P"
    Is it possible at all? If yes, where do I start?
    Dennis Gosnell
    @cdepillabout
    @ShrykeWindgrace Unfortunately it is not possible yet.
    However, there is an issue about this if you'd be interested in working on it:
    cdepillabout/termonad#83
    It would also be possible to just go into the source code for Termonad and modify the keybindings yourself (although this would be somewhat hacky).
    If you want to do this, but can't find where a keybinding is defined, feel free to ask.
    ShrykeWindgrace
    @ShrykeWindgrace
    @cdepillabout thanks for the prompt answer! For now I just commented out the part where the shortcut is set in src/Termonad/App.hs (the issue #83 has enough info to find the right place for that). I will take a look at that issue , but I can not promise anything for the foreseeable future =)
    ShrykeWindgrace
    @ShrykeWindgrace
    Unfortunately, my nix-build is not happy with commenting out that code:
    termonad-linux-x86_64: Failed to open file “/nix/store/27yz9h85nqcz6sfzbkqyg6lsniipzdb7-termonad-4.0.0.0-data/share/ghc-8.8.3/x86_64-linux-ghc-8.8.3/termonad-4.0.0.0/img/termonad-lambda.png”: No such file or directory (4)
    I am not very familiar with inner workings of nix, I suppose that changing source code changes a hash code somewhere, yet the app still looks at the previous hash
    Dennis Gosnell
    @cdepillabout
    @ShrykeWindgrace Maybe you could delete the already-built version of termonad with a command like rm ~/.cache/termonad?
    ShrykeWindgrace
    @ShrykeWindgrace
    It helped with running termonad, thanks a lot! However, my vim still does not receive the Ctrl+Shift+P shortcut
    on a side note, vim sees Ctrl+A/Ctrl+X commands, I am still at loss what to do =)
    Ondřej Súkup
    @mimi1vx
    @cdepillabout hello, cdepillabout/termonad#172
    Dennis Gosnell
    @cdepillabout
    There was an issue about some sort of docstring-related problem for people building on arch linux, if I remember correctly: cdepillabout/termonad#169
    If something needs to be done for this in Termonad (like bumping build-dependencies), please feel free to send a PR or open an issue.
    Although just recently I added a CI job for ghc-8.10.2 that appears to be working, so I think it should be possible to build with ghc-8.10.2.
    craige
    @craige:mcwhirter.io
    [m]
    👋 just testing this connection is working correctly 😃
    The answer appears to be yes. As you were.
    Dennis Gosnell
    @cdepillabout
    :wave:
    craige
    @craige:mcwhirter.io
    [m]
    Note to self: Gitter does not show reactions, don't use them 🤦‍♂️
    craige
    @craige:mcwhirter.io
    [m]
    Is support for italic text something that is a configuration option @cdepillabout or a feature that needs to be added?
    I was unable unable to locate italic support mentioned explicitly in the code.
    Dennis Gosnell
    @cdepillabout

    @craige:mcwhirter.io Ah, I'm not sure. There is nothing in the Termonad code that deals with it currently. There may be a VTE (https://wiki.gnome.org/Apps/Terminal/VTE) option for enabling it though.

    Here's the C VTE manual: https://developer.gnome.org/vte/unstable/VteTerminal.html

    Here's the Haskell library Termonad is using: https://hackage.haskell.org/package/gi-vte

    It looks like there is an ANSI escape code for italic text, but it specifically says, "Not widely supported": https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_(Select_Graphic_Rendition)_parameters

    If you can't find anything in VTE that supports this, I'd suggest opening an issue on the upstream VTE library asking for support. If they support it, then it should be easy to also support it in Termonad.
    craige
    @craige:mcwhirter.io
    [m]
    gnome-terminal supports it (side check I just did) and unless I missed something, that's a VTE implementation too?
    Dennis Gosnell
    @cdepillabout
    Yeah, it likely is.
    In that case, I imagine there should be a way to get it working in Termonad.
    craige
    @craige:mcwhirter.io
    [m]
    I spent ages wading through the gi.vte binding on hackage and if it's there, I missed it (likely). I'll keep poking around over the next few days and and if I find nothing, I'll hit up upstream as you suggest.
    gi.vte also appears to support hyperlinks which I'm going to have a poke at too, unless they're already a termonad option I missed...
    Dennis Gosnell
    @cdepillabout
    I took a look as well, but I couldn't find anything related to italics in either the VTE C manual, or the gi-vte bindings. I'm not sure what would need to go into that. Although also feel free to open an issue on the Termonad repo to show what you've looked into so far, and also to track an upstream issue if you end up making one.

    gi.vte also appears to support hyperlinks which I'm going to have a poke at too

    @craige:mcwhirter.io Ah, yeah, this is something I've wanted to add. There is sort of an issue about this: cdepillabout/termonad#137

    craige
    @craige:mcwhirter.io
    [m]
    Is there a "blink always" option available? I've not been able to locate one.
    Dennis Gosnell
    @cdepillabout
    @craige:mcwhirter.io For the cursor? I'm not sure. I think Termonad just exposes the same gi-vte options for the cursor, so if gi-vte exposes it, then you should hopefully be able to use it in Termonad as well. If gi-vte / VTE doesn't expose it, then feel free to create an issue upstream on the VTE repo (and possibly a tracking issue on the Termonad repo).
    craige
    @craige:mcwhirter.io
    [m]
    I'll dig more into it. Thanks @cdepillabout 😃