Skip Navigation

Posts
0
Comments
198
Joined
2 yr. ago

  • OK, well FWIW in Zsh you can use a keybind to trigger ZLE functions that turn your already-entered lines back into in-progress lines.

    The most straightforward built-in function for this is push-line-or-edit:

    At the top-level (PS1) prompt, equivalent to push-line. At a secondary (PS2) prompt, move the entire current multiline construct into the editor buffer. The latter is equivalent to push-input followed by get-line.

    So let's say you want to trigger this with ctrl+e, all you need is:

     
        
    bindkey '^e' push-line-or-edit
    
      
  • What behavior are you looking for? Could Zsh with some configuration work?

  • https://nestedtext.org/

    It’s like yaml but simple, consistent, untyped, and you never need to escape any characters, ever.

    Types and validation aren’t going to be great unless they’re in the actual code anyway.

  • https://nestedtext.org/

    It’s like yaml but simple, consistent, untyped, and you never need to escape any characters, ever.

    Types and validation aren’t going to be great unless they’re in the actual code anyway.

  • meld really is my favorite, but there's also mcdiff from mc, in combination with your editor of choice (use_internal_edit=false). If you can like the internal editor, though, that's got to be a better experience.

    I find a bunch of the themes are unreadable, so am rotating and eliminating with this Zsh function:

     
        
    mcdiff () {
      emulate -L zsh
    
      local skins=(
        gotar
        gray-green-purple256
        modarin256-defbg
        modarin256
        modarin256root-defbg
        modarin256root
        sand256
        seasons-autumn16M
        seasons-spring16M
        seasons-summer16M
        seasons-winter16M
        xoria256
        yadt256-defbg
        yadt256
      )
    
      local skin=${skins[RANDOM % $#skins + 1]}
    
      print -rl -- "Using skin: $skin:t:r"
      =mcdiff -c -S $skin $@
    }
    
      

    For a non-interactive diff viewer I find riff's output pretty legible.

    Other than that, I've used a combination of tools with a broot config to browse and manage the diffs...

  • I wanted to try using yamlpath (yaml-set in particular) to recreate the first example, even though the usage model doesn't quite match up. It's a bit tedious because I don't think you can do unrelated replacements in a single command:

     
        
    $ <<<'{}' yaml-set -g ignored.hello -a world | yaml-set -g tabwidth -a 2 -F dquote | yaml-set -g trailingComma -a all | yaml-set -g singleQuote -a true -F dquote | yaml-set -g semi -a true -F dquote | yaml-set -g printwidth -a 120 -F dquote | yaml-get -p .
    
      

    Trying to make it neater with Zsh and (forbidden) use of eval:

     
        
    $ reps=(ignored.hello world tabwidth 2 trailingComma all singleQuote true semi true printwidth 120) cmd=()
    $ for k v ( ${(kv)reps} )  cmd+=(yaml-set -g $k -a $v -F dquote \|)
    $ <<<'{}' eval $cmd yaml-get -p .
    
      

    EDIT: Ugh I can't figure out how to properly write the less than sign in lemmy comments.

  • Bash code is not safe to run as if it were Zsh, and Zsh has language features Bash doesn't. They are different languages.

  • I see a lot of good recommendations already, and want to add one more suggestion to try: Siduction.

    I'm not sure how exactly its repos match up against the software you want more recent releases for but IMO it's worth checking in a live boot environment or VM.

  • I see you've already got your problem solved, but FYI someone made whatfiles for this purpose.

  • Ooh, thanks! I've used rbw successfully in the past.

  • I don't think I saw Xournal++ (AKA Xournalpp) mentioned yet, which has helped me once or twice.

  • Here in New York City folks were distributing free bagels to the homeless. Out of concern for the food safety aspect of it all, our government helpfully disrupted the work and dumped bleach over the bagels to protect the needy from potentially unsafe food.

    When the authorities finished their good work, the hungry folks proceeded to eat bleach-tainted bagels.

    Governments don't need to be red to do awfully stupid awful things.

  • Thanks for the report! I'd love to see a screenshot of your set up if you don't mind and get chance.

  • For reproducible configuration in the Arch world, there's a project which always looks good to me: aconfmgr

    https://github.com/CyberShadow/aconfmgr

    I think Arch+aconfmgr+yadm+btrfs == a pretty solid arrangement.

    Though I'm of course itching for first class Bcachefs support...

  • I haven't, at least not in years if I ever did. I didn't start enjoying Plasma until 4, and I have a feeling I'd miss a whole different set of features going "back" to a 3-style desktop. Do you actually use it daily?

  • Many of us don't praise or want titlebars controlled by apps individually, and there are more reasons to keep them separate than just backward compatibility, FWIW.

    But if you haven't checked it out lately, you may want to look at the MauiKit/Nitrux stuff.

  • Is anyone supporting my old Nexus 9 tablet? I'd love to flash anything supported there.

  • I have used Clementine and Strawberry, great projects, but unfortunately I no longer have my old music collection, and rely on streaming services these days.