Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
setopt
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
481.
▲
by
setopt
2y ago
I recently discovered “Howm” [1] (the “Handy Own Wiki Mode”), which is a personal wiki system for Emacs. Surprisingly, it is slightly older than Org-mode – although it now works great with Org files – and is still actively maintained by t
482.
▲
by
setopt
2y ago
I would actually love a regexp search-and-replace assisted by either TreeSitter or LSP. Something that lets me say that I want to replace “Dog\(.*\)” with “Wolf\1”, but where each substitution is performed only within single “symbols” as id
483.
▲
by
setopt
2y ago
Indeed, that's a good solution – and I believe e.g. fzf does some sort of ranking by default. The devil is however in the details: One minor inconvenience is that the scoring should ideally be different per filetype. For instance, Pyth
484.
▲
by
setopt
2y ago
Fuzzy search is not the same. For instance, it might by default match not only “FooBar” and “foo_bar” but also e.g. “FooQux(BarQuux)”, which in a large code base might mean hundreds of false positives.
485.
▲
by
setopt
2y ago
I’ve never seen an LSP server that lets you rename “Dog” to “Wolf” where your actual class names are “Dog[A-Za-z]*”? Do you have an example?
486.
▲
by
setopt
2y ago
Or Org. I like Magit, but I don’t miss it that much if I use e.g. Vim. Org on the other hand is a deal-breaker, and the main reason I’ve been stuck in Emacs for years…
487.
▲
by
setopt
2y ago
Can you not just make it a yearly repeating event?
488.
▲
by
setopt
2y ago
Birthdays are called anniversaries (anniversaire) in French.
489.
▲
by
setopt
2y ago
C-\ is one of my favorite Emacs keybindings :). You use it to change input methods, in my case to write e.g. Greek letters and other Unicode symbols in plaintext files using TeX notation. I sometimes like to program using Unicode variable n
490.
▲
by
setopt
2y ago
I think this can be avoided if you enable “bracketed paste” in your terminal.
491.
▲
by
setopt
2y ago
I also prefer many Emacs instances. It simplifies some things like e.g. making Emacs packages aware of Python virtual environments if you can just run a separate Emacs instance per environment, instead of stuff like direnv.el.
492.
▲
by
setopt
2y ago
> In terminal Emacs frames ("windows" everywhere else) serve as decent facsimiles for workspaces. I would recommend enabling tab-bar-mode instead for this – it’s in Emacs core, and the tabs are really “numbered window configura
493.
▲
by
setopt
2y ago
I dropped the prefix entirely: https://github.com/jabirali/tmux-tilish
494.
▲
by
setopt
2y ago
I tried to switch from vertico to the new built-in fido-vertical-mode a couple of times (so I was using fido+orderless). I was quite happy with its default behavior, the blocker for me was that it’s much slower than vertico (i.e. the latenc
495.
▲
by
setopt
2y ago
Aren’t the panel widgets in e.g. KDE the same concept?
496.
▲
by
setopt
2y ago
It was added upstream in 2020. Since tmux is often used on servers that don’t upgrade frequently, I still regularly work on some servers without this feature. In related news, Vim just added XDG support upstream as well. Just waiting for Zs
497.
▲
by
setopt
2y ago
The open-source CLI is indeed all you need. On Mac, I could just do `brew install typst` to get the compiler, and then run it on a local `*.typ` file. I'm sure there are packages available for most Linux distributions as well by now.
498.
▲
by
setopt
2y ago
The king in this space is Pandoc. It supports most things you might need in "serious" documents: figures, tables, equations, references, citations, etc. You can even customize the TeX export template if you need more control over
499.
▲
by
setopt
2y ago
Typst is trying to take on LaTeX: high-quality PDF output, equation typesetting, citation and reference systems, programmability, etc. But if you look closer, the actual syntax of Typst is clearly a mix of MarkDown and AsciiDoc (e.g. code b
500.
▲
by
setopt
2y ago
> his is why Emacs and Vim are so ergonomic to modify - the base system is a scriptable environment on which the editor was built. This is more an Emacs than Vim thing. GNU Emacs was scriptable from the start, while VimScript was added i
501.
▲
by
setopt
2y ago
My process is in that case quite different. When working in Python I’ll typically write thousands of tiny snippets of code directly in the interpreter to check that simple things work as I expect. Those are gradually distilled into parts of
502.
▲
by
setopt
2y ago
Interesting. Where I live (Norway) it’s pretty much opposite: There’s no mandatory fortification of any foods, and only highly processed foods are sometimes voluntarily fortified by the producer. There are strict legal limits on how much yo
503.
▲
by
setopt
2y ago
I’ve never heard of widespread magnesium fortification of foods. Do you know of a region where that is common?
504.
▲
by
setopt
2y ago
Note also that food levels of magnesium are estimated to have declined by up to 80% in the past century (possibly due to more intensive farming with modern fertilizers). So magnesium deficiency is also likely more widespread now than histo
505.
▲
by
setopt
2y ago
I’ve been very happy with Magnesium Threonate. It’s supposedly more efficient at crossing the blood-brain barrier than the Glycinate. (Both Threonate and Glycinate are more efficiently absorbed in the gut than the Oxide.) I take a mix of L-
506.
▲
by
setopt
2y ago
Not sure whether most people do that? I nearly always press * or Ctrl-I before the italicized text I’ll type, and see that often among other people in the office.
507.
▲
by
setopt
2y ago
The main problem with slash as italics is that I very often write either file Unix file paths (like /etc/) or lists of alternatives (like vim/emacs/etc), and such markup languages tend to get confused. I rarely have that
508.
▲
by
setopt
2y ago
When else do you need to quote it these days? In current societies with free speech, the main legal exceptions are usually for hate speech.
509.
▲
by
setopt
2y ago
The benefit of the + is that I don’t have to set up anything in advance. I can type an email address on any device, including devices I don’t own, and still have it work as an alias. I do have a “real” email alias as well that I use for tru
510.
▲
by
setopt
2y ago
Same here! Both GMail and iCloud Mail support this, among others. It works 95% of the time, but be aware that it sometimes doesn't: - Some webpages refuse addresses with a + in it. - I’ve had at least one instance where I lost an impor
More ›