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 }
;;
Anyone using magit?
Missed it so much in vim I started maintaining the neovim clone.
I do. It works so well I've almost taken it for granted.
I use it, it’s great.
I got fairly good mileage with https://github.com/MitMaro/git-interactive-rebase-tool/ which has similar goal
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.
It seems to be a demo app for the framework described, your 'whole world of confusion' is the framework and other demo app(s):
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).
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.
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.
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.
> "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)
how is your tea different from https://opam.ocaml.org/packages/teash/?
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
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.
I was curious if tig(1) could do such a navigation. But I didn’t find anything.
No other TUI for git is comparable to it.
lazygit is as necessary in my life as Vim. Absolutely incredible tool!
Bloody love lazygit!
Fucking love lazygit
Nice work! Lazygit is a pretty popular too that does git stuff via a TUI (everything from rebasing to nuking your local)
What is the main purpose of the ocli project on GitHub, and how can I use it in my command-line applications?