
u/Haunting_Laugh_9013

A crappy little side-by-side git diff script
(define (diff)
(define path (helix.static.cx->current-file))
(define line (helix.static.get-current-line-number))
(define pwd (current-directory))
(define len (string-length pwd))
(define rel-path (substring path (+ len 1)))
(helix.static.align_view_center)
(helix.static.vsplit_new)
(helix.insert-output (string-append "git show HEAD:" rel-path))
(helix.static.collapse_selection)
(helix.set-language "java") ; or whatever u do mostly
(helix.goto-line line)
(helix.static.align_view_center))
This took a lot of trial and error :p
Its not really a proper diff viewer, but it opens up the unedited file in a vsplit, so it works well enough for me!
HDMI Support on M1 Pro Macbooks
I was looking at the docs, and it says that only firmware versions of 13.5 are supported, and my macos installation is version 14.7. Do you guys know whether HDMI is supported on higher firmware versions, or only 13.5?
raylib vs sola-raylib
If you go to the raylib website and follow the link to their rust bindings, it links to sola-raylib, but there is also a raylib crate on crates.io that has been downloaded an order of magnitude more times, and both look like they are maintained. Sola-raylib says they are a fork of the raylib crate. Which one should I use, if I am just looking for raylib bindings?
How would I set zsh to the default shell for nix develop declaratively?
I want to use zsh as the default shell for nix develop, and I want to do it in the flake.nix. Is there a specific argument to pkgs.mkShell to set the command, or do I just have to do nix develop -c zsh every time?