Readit News logoReadit News
ckolkey commented on Magit Is Amazing   heiwiper.com/posts/magit-... · Posted by u/Bogdanp
anlsh · 2 months ago
I've got [a bit of neovim config](https://github.com/anlsh/nvim/blob/8b61520a5ecd752427abffc45...) which sends you straight to `neogit` (which is basically equivalent as far as I use it) when a certain env var is set.

So in my .profile I've got

``` alias gg="NEOGIT_SLAVE=1 nvim" ```

It's definitely not perfect but it's good enough to work for basic committing/rebasing flows and it's faster than booting up emacs for the same purpose.

ckolkey · 2 months ago
Random, but on line 266 map `P` to `false` not `nil` and it won't show up.
ckolkey commented on Magit Is Amazing   heiwiper.com/posts/magit-... · Posted by u/Bogdanp
theappsecguy · 2 months ago
I would love to use magit buuuut I don’t want to have to learn emacs… is there any alternative path?
ckolkey · 2 months ago
First, install doom emacs. Second, create a shell alias for "magit" that is bound to "emacs -nw -f magit". Then just run magit like any other TUI app - the fact that it's in emacs is easy to forget.

Or, if you're into neovim, there's Neogit, which is inspired by magit. And if you're not, there's https://github.com/altsem/gitu

ckolkey commented on Show HN: VS Code extension to edit the filesystem like a text buffer   github.com/ahrm/voil... · Posted by u/hexomancer
hexomancer · 5 months ago
> Creating empty files is rarely useful or necessary

I kind of disagree? Most files were once created as an empty file! (at least that's the case in my workflow).

ckolkey · 5 months ago
I've always just used `:e <filename>` - never saw the appeal of oil.nvim for that use case. But for other kinds of modifications it's nifty.
ckolkey commented on Don't force your kids to do math   blog.avocados.ovh/posts/h... · Posted by u/happycats
GodelNumbering · 8 months ago
thank Descartes
ckolkey · 8 months ago
I thank, therefore I am...
ckolkey commented on Zen browser had a backdoor enabled by default   github.com/zen-browser/de... · Posted by u/nobunaga
jofzar · 9 months ago
I'm a little bit confused here. You are saying they are not responding appropriately but this was raised as an issue and merged the same day?
ckolkey · 9 months ago
...seven months ago, no less
ckolkey commented on macOS Tips and Tricks (2022)   saurabhs.org/macos-tips... · Posted by u/pavel_lishin
barrell · 10 months ago
Came here to recommend aerospace. It’s been amazing. My whole desktop is like a tmux session now.

It’s very much changed how I work/use my computer. More than Rectangle did, more than LLMs have.

(I still adore hookshot/rectangle though :)

ckolkey · 10 months ago
I used Yabai for years until I found aerospace, and switched over instantly. Would highly recommend anyone to try it :)
ckolkey commented on Installed an open source garage door opener, and I'm loving it   arstechnica.com/gadgets/2... · Posted by u/ChumpGPT
pbnjay · a year ago
I have a variety of Shelly 1 devices in my house, one of which is on the oldschool Garage Door opener (with a reed switch for open/close tracking) - Very inexpensive, flexible for other applications, and works with HA etc.

https://us.shelly.com/products/shelly-1-gen3

ckolkey · a year ago
Huge fan of shelly. I wrote a little sinatra web-server that can just show the current state, and toggle the state, of a bunch of lights around my yard. I really appreciate that all you need is http, no cloud, no fuss to just put together a custom ui for them. Couldn't recommend them more highly
ckolkey commented on Show HN: I made a git rebase TUI editor   github.com/NyuB/ocli... · Posted by u/NyuB
kleiba · a year ago
Anyone using magit?
ckolkey · a year ago
Missed it so much in vim I started maintaining the neovim clone.
ckolkey commented on Refactoring Python with Tree-sitter and Jedi   jackevans.bearblog.dev/re... · Posted by u/todsacerdoti
jonathanyc · a year ago
The query language is definitely underdocumented. In case it helps you, what helped me was realizing it’s basically a funky pattern language, à la the match pattern sublanguages in OCaml/Haskell/Rust.

But the syntax for variable binding is idiosyncratic and the opposite of normal pattern languages. Writing “x” doesn’t bind the thing at the position to the variable x; instead, you have to write e.g. foo @x to bind x to the child of type foo. Insanely, some Scheme dialects use @ with the exact opposite semantics!! There’s also a bizarre # syntax for conditionals and statements.

Honestly there isn’t really an excuse for how weird they made the pattern syntax given that people have spent decades working on pattern matching for everything from XML to objects (even respecting abstraction!). I’ve slowly been souring on treesitter in general, but paraphrasing Stroustrup: there are things people complain about, and then there are things nobody uses.

ckolkey · a year ago
Its just a Scheme dialect. A bit odd, but not crazy.
ckolkey commented on Show HN: Io_uring for Ruby   github.com/digital-fabric... · Posted by u/ciconia
slashdev · a year ago
The whole point of IO uring is to be fast by reducing the number of system calls per request.

If you then process your requests in the slowest programming language, you add back at least 100x the overhead.

It doesn’t make sense to me.

ckolkey · a year ago
Oh, that meme is old, sorry to say. Here's a nice blog post about ruby outperforming C with the new JIT compiler. Fun times :)

https://railsatscale.com/2023-08-29-ruby-outperforms-c/

u/ckolkey

KarmaCake day345March 11, 2020View Original