Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
joshka
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
35 ms
·
481.
▲
by
joshka
3y ago
> the git commit already contains information about which files are affected; Contra: while this is true, it's worth considering how 'information about which files are effected' scales when examining the history of a repo.
482.
▲
by
joshka
3y ago
There's a few ripgrep based tuis: - https://github.com/acheronfail/repgrep - https://github.com/konradsz/igrep - https://github.com/seg-mx/grep_tui - https://
483.
▲
by
joshka
3y ago
I like it. Generalizing this one step further, there are a bunch of actions like this that are hidden inside our IDEs (whether VSCode / Neovim plugins or built-in functionality), which might be nice to pull out into standard unix tools
484.
▲
by
joshka
3y ago
There's also a matrix bridge and Github discussions if you'd prefer those options. It's difficult to choose a place to build a community - particularly ones that are non standard so Discord works for us right now. Have you go
485.
▲
by
joshka
3y ago
Hehe - yeah, I needed an example for the table, and figured traceroute was a good easy one. Then I remembered what happens when you traceroute bad.horse...
486.
▲
by
joshka
3y ago
There are apps that are built on ratatui that support mouse already including an example in the repo[1], and crates (and some internal changes to the buffer) to support iterm/kitty/sixel based images.[2] [1]: https://gi
487.
▲
by
joshka
3y ago
Textualize and BubbleTea are both things I look to for inspiration in what Ratatui could be. Eventually, I'd like to make widgets look great with sensible defaults and support themes that allow for customization. We use Charm's VH
488.
▲
by
joshka
3y ago
I've actually got a ratatui update for glicol that I haven't pushed because I was stuck on a bug in the way the background thread continues after the UI exits. I'll flip you a PR.
489.
▲
by
joshka
3y ago
Thanks :) That was the result of wanting to do something to celebrate PR 500[1] and being repeatedly nerd-sniped by one of the other maintainers a while back. The source code for the demo[2] is in the repo btw. [1]: https://githu
490.
▲
by
joshka
3y ago
I think a lot of Ratatui apps will tend to land on similar concepts for your app. There's a few good examples of apps using a component approach rather than just widgets that I'm aware of: - https://github.com/sxya
491.
▲
by
joshka
3y ago
It's a bit broader than this - Ratatui doesn't support events at all. It's not a UI framework, it's a display library (i.e. you call us, not we call you). That doesn't mean you can't do Mouse events (there'
492.
▲
by
joshka
3y ago
It's something I've thought about a little, but I haven't seen anything that does it. There's some pretty large blockers though. TUIs get by on effectively rendering text all over the screen, potentially out of order, an
493.
▲
by
joshka
3y ago
Core Ratatui dev here. Mouse events are supported by the underlying backend libraries (e.g. crossterm). There's an example custom widget that shows how to handle these in Ratatui at https://github.com/ratatui-org/r
494.
▲
by
joshka
3y ago
Core Ratatui dev here. Fun fact, I played a lot with these libraries when I was in a kid in the 80s/90s learning Pascal and C++. I never played with clipper though.
495.
▲
by
joshka
3y ago
Take a watch of Jon Gjengset's vids on this (there's a codecrafters challenge for building out a bittorent protocol that he's going through). - https://www.youtube.com/watch?v=jf_ddGnum_4 - https://
496.
▲
by
joshka
3y ago
For a lot of things, retry once and only once (at the outermost layer to avoid multiplicative amplification) is more correct. At a large enough scale, failing twice is often significantly (like 90%+) correlated with the likelihood of failin
497.
▲
by
joshka
3y ago
Relatedly similar project: https://promptfile.org/
498.
▲
by
joshka
3y ago
I went through this myself when joining a FAANG. A few of the companies I worked for don't exist, but I kept the original job offers, anything outlining the job duties, a post employment recommendation / HR letter and various thin
499.
▲
by
joshka
3y ago
Also https://tokio.rs/tokio/tutorial has something similar
500.
▲
by
joshka
3y ago
+1 I want something that looks pretty similar for Ratatui (a rust TUI lib). https://github.com/joshka/tui-prompts is a start.
501.
▲
by
joshka
3y ago
"Developer Productivity for Humans, Part 4: Build Latency, Predictability, and Developer Productivity" [1] (discussion[2]) in the IEEE Software magazine earlier this year is a better look at this. TL;DR: less time than it currentl
502.
▲
by
joshka
3y ago
I've been meaning to have a play with miette for a while: fn main() -> Result<()> { let config: Config = serde_json::from_str(DATA).map_err(|e| BadJson::from_json_err(e, DATA))?; Ok(()) } #[deriv
503.
▲
by
joshka
3y ago
As it happens, I'm one of the maintainers of Ratatui, so it's been a little bit more than an idle thought... If you do happen to find time to revive the project I'd be happy to help. Come say hi on the ratatui discord /
504.
▲
by
joshka
3y ago
This is really pretty - I do really wish for a good rust replacement for lnav[1] someday. 1: https://lnav.org/
505.
▲
by
joshka
3y ago
Yeah - highlighting ERROR as white on red everywhere anywhere is ops gold.
506.
▲
by
joshka
3y ago
For a more nuanced viewpoint than "This is the tool I am most familiar with" (which for the most part is both the right answer for that person, but probably not for you), see the MDN articles starting at https://develop
507.
▲
by
joshka
3y ago
I took a recent go at designing a good terminal color scheme and ended up with: https://github.com/mbadolato/iTerm2-Color-Schemes#aardvark-b... The goal of this theme is that: colors are fairly natural backgr
508.
▲
by
joshka
3y ago
It's not impossible - https://github.com/g2p/git-fs did this a long while back and https://github.com/presslabs/gitfs did something similar too.
509.
▲
by
joshka
3y ago
This seems like a slight variation of "Let’s think step by step" [1] or "Let’s work this out in a step by step way to be sure we have the right answer" [2]. There's a good review of a bunch of these in https:/
510.
▲
by
joshka
3y ago
This feels like a possible troll. Also by the same person: I work from home as a software engineer and my job is happy with my performance. But I'm putting in little effort. Am I a bad person or employee? [1] --- I used to be a Senior
More ›