News for hackers. Stuff that matters.

konfekt

Re:Neovim 0.12.0 on Monday March 30, 2026 @06:20AM (#47572525)
:Silent [0] is an effort to work similarly in Neovim to Vim's `:!`

[0] https://gist.github.com/Konfekt/8e484af2955a0c7bfe82114df683...

Re:Neovim 0.12.0 on Monday March 30, 2026 @06:17AM (#47572508)
:Silent [0] is an effort to work similarly in Neovim to Vim's `:!`

[0] https://gist.github.com/Konfekt/8e484af2955a0c7bfe82114df683...

Re:Ask HN: Is it worth learning Vim in 2026? on Monday February 23, 2026 @02:56AM (#47119346)
With ever more code coming at you in growing diffs, efficiently shifting it around with Vim becomes even more valuable
Just stating the obvious that there's an entire culture around replacing mice by keyboards, starting with a Vim mode in most apps.
How about buying (and installing) two cheap laptops, say used Thinkpads (or Framework!?), and then backing up $HOME (and maybe list of installed packages) at one's convenience? These are nowadays light enough to carry around when traveling with luggage. If deemed too heavy, at least a Thinkpad likely is on sale closeby and `dd`ing an ISO image, installing the missing packages and copying $HOME should not take too long.
Re:10 Years of Let's Encrypt on Sunday December 14, 2025 @06:01AM (#46262221)
They may have rendered absurd to not have TLS, but they also rendered certification absurd, in the sense that all you get is little more than encryption: if you care about identity, then the free Let's Encrypt certificate coupled to a domain owner's email address gives you little guarantee. Compare this to the extended validation certificates with personally certified credentials and browsers attesting these by, say, a green address bar (instead of today's flat padlock), that a bank customer expects before entering their login data.

Setting up an encrypted web-domain with continual Let's Encrypt certificate renewal has become tedious cargo-culting around the relicts of the idea of a certificate that establishes trust by identity verification.

The collapse of identity-based certification is not Let’s Encrypt’s fault. People naturally choose the easiest option, and Let’s Encrypt supplied it.

Entrusting a handful of commercial certificate authorities with global identity is dubious on first principles anyway, but at least they tried; yet, for all its flaws, that centralized system has proven more practical than the idealistic, decentralized "web of trust".

Re:Zoxide: A Better CD Command on Tuesday September 23, 2025 @12:57PM (#45349746)
The classic z [0] is a shell script and thus doesn't require any installation other than loading this script in your shell's rc file. I found Navita [1] an improvement over it that works more reliably on different shells such as Bash and ZSH, though.

0: https://github.com/rupa/z 1: https://github.com/CodesOfRishi/navita/

Re:How to Force Your Kids to Do Math? on Sunday April 20, 2025 @02:00AM (#43741827)
Haigh's Mathematics in Everyday Life [0] provides modern examples.

[0] https://plus.maths.org/content/john-haigh

Re:The State of Vim on Monday January 13, 2025 @04:35PM (#42689742)
Try these work-arounds:

- either adding to your `:help vimrc`

if has('clientserver') && empty(v:servername) try call remote_startserver('VIM-' . getpid()) catch '^Vim\%((\a\+)\)\=:E\%(941\|240\)' endtry endif

- or, at least on Unix, calling vim by, say `$HOME/bin/vim` with `$HOME/bin` in `$PATH` and launching

/usr/bin/vim --servername vim -u ~/.vim/vimrc "$@"

Re:The State of Vim on Saturday January 11, 2025 @05:53PM (#42669606)
There's the built-in `packadd editexisting` to take care of that; On Unix https://github.com/gioele/vim-autoswap could be more convenient.
Re:So You Want to Write Java in Neovim on Saturday December 28, 2024 @04:36PM (#42534971)
Try filepicker.vim [0] to navigate these in one of the many popular millers like lf, yazi, ranger or nnn

[0] https://github.com/Konfekt/filepicker.vim

Though it promises to convert everything to Markdown, it seems to be a worse version of what the already existing tools such as PDFtotext, docx2txt, pptx2md, ... collected [here] do without even pretending to export to Markdown. Looking at its [source], it indeed seems to be a wrapper to python variants of those. Making the pool smaller can hardly improve the output.

[here] https://github.com/Konfekt/vim-office [source] htps://github.com/microsoft/markitdown/blob/main/src/markitdown/_markitdown.py

Re:Just: Just a Command Runner on Saturday December 07, 2024 @03:04PM (#42352448)
Maybe worth reminding the self-documenting Makefile [0] discussed here.

[0] https://news.ycombinator.com/item?id=30137254

Re:Don't Look Down on Print Debugging on Saturday November 23, 2024 @12:52PM (#42222284)
If you buy in and happen to use Vim, there are plug-ins [0] to print debug by single keystrokes.

[0] : https://github.com/bergercookie/vim-debugstring

Re:Git Bash Is My Preferred Windows Shell on Wednesday September 11, 2024 @03:50AM (#41509070)
For those without admin rights preferring ZSH to Bash in the Windows Terminal: install MSYS2 with scoop.sh, then the ZSH package with `pacman -S zsh` and add a shell with commandline `%USERPROFILE%\\scoop\\apps\\msys2\\current\\msys2_shell.cmd -defterm -here -no-start -ucrt64 -shell zsh` to launch it in Windows Terminal.
Re:Aerc: A well-crafted TUI for email on Friday August 23, 2024 @05:00AM (#41327348)
Try set send_multipart_alternative_filter=markdown2html.py [0] in your muttrc

[0] https://gitlab.com/muttmua/mutt/-/blob/master/contrib/markdo...

Re:Aerc: A well-crafted TUI for email on Friday August 23, 2024 @04:50AM (#41327294)
All fair points. The second and third one can be mitigated by a, say, w3m mailcap entry respectively muttrc entry set send_multipart_alternative_filter=markdown2html.py [1]

[1] https://gitlab.com/muttmua/mutt/-/blob/master/contrib/markdo...

Re:How I stopped worrying and loved Makefiles on Sunday April 28, 2024 @03:24AM (#40186724)
Which make version does the latter command use? For GNU make 4.2.1 on Linux, I hade more luck with something along the lines of

    @awk '/^[a-zA-Z_-]+:[^#]*## .*$$/ {match($$0, /## (.*)$$/, arr); printf "\033[36m%-30s\033[0m %s\n", $$1, substr($$0, RSTART+3)}' $(MAKEFILE_LIST)
In the UK Thatcher might have been a driving force. In Western thinking (entering a rabbit hole) conceiving humanities as sciences is a recurrent theme (say, in the Scepticism of Hume) that Auguste Comte in the 19th century turned into the doctrine of positivism:

- The scientific method (and precision of mathematics) applies to all sciences, social and natural.

- Knowledge can be proved only by observation trough empiric means and deductive reasoning.

Re:In Praise of AutoHotKey on Wednesday May 13, 2020 @05:10AM (#23164988)
For Excel on Microsoft Windows, there is vim_ahk [1] to add Vim key bindings (after adding EXCEL.EXE to VimGroup) using AutoHotKey. For LibreOffice, especially its spreadsheet calculator Calc, there is the vibreoffice [2] extension.

[1] https://github.com/rcmdnk/vim_ahk#applications [2] https://github.com/yamsu/vibreoffice

Re:In Praise of AutoHotKey on Wednesday May 13, 2020 @05:01AM (#23164950)
In the quest for an analogue on Linux of Autohotkey that exclusively runs on Microsoft Windows, neither autokey nor espanso proved as reliable.

Instead, I derived my own little shell script snippy.sh [1] that expands a fuzzy selected string by letting xdotool type it out.

[1] https://github.com/konfekt/snippy.sh