Better HN
topnewbestaskshowjobs
Log inSign up

konfekt

28 karma · joined May 13, 2020 (6y ago) · 22 submissions

Submissions

comment 7mo ago · link · parent

:Silent [0] is an effort to work similarly in Neovim to Vim's `:!`

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

comment 7mo ago · link · parent

:Silent [0] is an effort to work similarly in Neovim to Vim's `:!`

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

comment 9mo ago · link · parent

With ever more code coming at you in growing diffs, efficiently shifting it around with Vim becomes even more valuable

comment 9mo ago · link · parent

Just stating the obvious that there's an entire culture around replacing mice by keyboards, starting with a Vim mode in most apps.

comment 11mo ago · link · parent

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.

comment 11mo ago · link · parent

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".

comment 1y ago · link · parent

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/

comment 1y ago · link · parent

Haigh's Mathematics in Everyday Life [0] provides modern examples.

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

comment 1y ago · link · parent

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 "$@"

comment 1y ago · link · parent

There's the built-in `packadd editexisting` to take care of that; On Unix https://github.com/gioele/vim-autoswap could be more convenient.

comment 1y ago · link · parent

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

comment 1y ago · link · parent

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

comment 1y ago · link · parent

Maybe worth reminding the self-documenting Makefile [0] discussed here.

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

comment 2y ago · link · parent

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

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

Try set send_multipart_alternative_filter=markdown2html.py [0] in your muttrc

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

comment 2y ago · link · parent

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...

comment 2y ago · link · parent

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)

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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

comment 6y ago · link · parent

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