• hu3 an hour ago

    I found this code interesting (not sarcasm) in demo/boiling.ml:

      let increase_level t =
        let level =
          match t.level with
          | No_Fire -> One_Fire
          | One_Fire -> Two_Fires
          | Two_Fires -> Three_Fires
          | Three_Fires -> Three_Fires
        in
        { t with level }
      ;;
    
      let decrease_level t =
        let level =
          match t.level with
          | No_Fire -> No_Fire
          | One_Fire -> No_Fire
          | Two_Fires -> One_Fire
          | Three_Fires -> Two_Fires
        in
        { t with level }
      ;;
    • kleiba an hour ago

      Anyone using magit?

      • ckolkey 4 minutes ago

        Missed it so much in vim I started maintaining the neovim clone.

        • _ix 13 minutes ago

          I do. It works so well I've almost taken it for granted.

          • umanwizard an hour ago

            I use it, it’s great.

          • bruwozniak 2 hours ago

            I got fairly good mileage with https://github.com/MitMaro/git-interactive-rebase-tool/ which has similar goal

            • oniony 2 hours ago

              Went to repository expecting a Git rebase editor and found a whole world of confusion.

              Not sure what this project is now, it certainly does not seems to be a TUI focused on Git rebases.

              • OJFord 2 hours ago

                It seems to be a demo app for the framework described, your 'whole world of confusion' is the framework and other demo app(s):

                https://github.com/NyuB/ocli?tab=readme-ov-file#newbase

                • oniony 10 minutes ago

                  Yeah, I got that eventually.

                  I can get behind installing a focused app to give it a whirl and see how it flies, but I draw the line at worlds of confusion. I don't need that on my PC (looking at you NPM).

                • Bigpet 2 hours ago

                  I was confused at first too because I tabbed out and came back to it.

                  You need to scroll down to the `Newbase` Section. It's apparently both the repo for some kind of cli framework and for the rebase tool.

                • xuhu 2 hours ago

                  Watching the screencast I realize how often text and an editor are a replacement for lists, treeviews, tabs, scrollbars etc.

                  Maybe AI is the answer for enforcing the format and for discoverability since it provides GUI-like hand holding without the hassle of actually writing GUI code.

                  • chx an hour ago

                    AI is never the answer. Unless ...

                    https://hachyderm.io/@inthehands/112006855076082650

                    > You might be surprised to learn that I actually think LLMs have the potential to be not only fun but genuinely useful. “Show me some bullshit that would be typical in this context” can be a genuinely helpful question to have answered, in code and in natural language — for brainstorming, for seeing common conventions in an unfamiliar context, for having something crappy to react to.

                    > Alas, that does not remotely resemble how people are pitching this technology.

                    • heresie-dabord 13 minutes ago

                      > "Show me some bullshit that would be typical in this context"

                      "Show me some bullshit that would be typical in this context... And we'll build a multi-trillion dollar investment bubble with whatever you say."

                      Cheers! TYFTL (thank you for the laugh)

                  • mro_name 2 hours ago

                    how is your tea different from https://opam.ocaml.org/packages/teash/?

                    • the_duke 2 hours ago

                      I think all of this is available in lazygit as well, which seems to still be way too unknown, despite the 50k stars: https://github.com/jesseduffield/lazygit

                      • rkangel 16 minutes ago

                        All I want is a good TUI git log viewer. I'm perfectly happy to do all the operations on the command line, but navigating the log works well interactively (e.g. start as --first-parent, with single line entries and then be able to selectively show branch commits, and patches for commits).

                        I end up with a log view and then copy and paste commit hashes to do different things. Or use Sublime Merge which is great, but doesn't work over SSH.

                        • keybored 4 minutes ago

                          I was curious if tig(1) could do such a navigation. But I didn’t find anything.

                        • chb 30 minutes ago

                          No other TUI for git is comparable to it.

                          • jckahn an hour ago

                            lazygit is as necessary in my life as Vim. Absolutely incredible tool!

                            • amar-laksh an hour ago

                              Bloody love lazygit!

                              • shafyy 37 minutes ago

                                Fucking love lazygit

                              • syntaxing 2 hours ago

                                Nice work! Lazygit is a pretty popular too that does git stuff via a TUI (everything from rebasing to nuking your local)

                                [1] https://github.com/jesseduffield/lazygit

                                • morgansolis 2 hours ago

                                  What is the main purpose of the ocli project on GitHub, and how can I use it in my command-line applications?