Hacker Newsnew | past | comments | ask | show | jobs | submit | more monroewalker's commentslogin

Anyone else have their zsh history get truncated occasionally? Not sure where in my setup the issue is but sometimes the history file will just be recreated. I have all the histsize and other env vars set correctly and I haven’t been able to correlate it to anything in particular I’m doing when it happens


Occasionally happens to me too. I believe I researched the cause being some kind of history corruption (eg bad control characters mistakenly pasted/output), and zsh will just make new history file if it detects corruption.

Now, I made myself a cron script that once a day just copies the history file to a backup folder, so that I can bring it back if it ever corrupts.


If servo (or something like it) succeeds, would that mean potentially being able to swap out chromium in Electron? Would that help with performance / application size?


Long ago it was a goal of Servo to adhere to the Chromium embedding framework, and differentiate itself from Gecko by having a good embedding story. I'm unclear whether that is still a goal of the modern project, however.


Nice! Will be trying this over the next few days


I've been working on a cross-platform clipboard manager launcher thing and using xdotool to simulate a ctrl+v on Ubuntu. On every paste though, the entire screen would freeze for a solid second. After a lot of exploring options I came across https://github.com/robertwayne/libmutter-fix/tree/main.

The TLDR as I understand it is that in Gnome's Mutter, when a keyboard event is received from a different source than the last keyboard event, some expensive operation is kicked off (`keymap_changed`) which is unnecessary for most cases but required to handle something like switching to a keyboard with a different layout than the one last used.

The Github repo linked above has more info and links to related issue trackers and discussions. The solution implemented in the repo is to checkout libmutter and just remove the line causing `keymap_changed` to be called for `XkbNewKeyboardNotify` events.

Sharing in case anyone else happens to have been banging their head against the wall about this



I've been pretty happy with Ranger (https://github.com/ranger/ranger)


It’d be cool to have a gutter on the left with the html tag that appears for that line


Don't know which tag you are talking about but gutters are CSS, not HTML. If you want a gutter, add one with CSS.


They're talking about the post itself and its structure


If building a desktop app with the intention of having JavaScript plugins, would it not be viable to include bun in the app bundle to use to run the plugins? Curious if anyone has played around with this idea


Which one?


I tried an extension once that provided these navigation shortcuts for all the links on a page. It was really convenient but then I was on an admin page for our team and accidentally hit a couple keys that pressed some random button. The page was full of buttons that had irreversible effects which were executed without confirmation. Of course that’s an issue itself for the page but that’s kept me from trying this again.

The convenience those shortcuts provide also makes it concerningly easy to press something on accident. Much more likely than accidentally clicking something. Having extra leader keys or some other approach to reduce accidental presses would detract from the convenience…

Curious if anyone else has run into this or configured their setup in a way that maintains the convenience but reduces the accident likeliness. Holding a modifier key or adding leader keys actually does seem like I’d go a long way in reducing accidents with minimal hit to effectiveness


I've used the Vimium chromium extension for years and it has a keypress to activate the search links and you can also disable it per domain.


Yes, I find it easier to press single quote in vanilla Firefox, start typing the most unique looking part of the link text, see it become green, press Enter to confirm. The link search feature in Firefox is one of the reasons that keep me using it.


I had no idea that existed, that's pretty cool!


With Vimium, you can toggle the type to navigate mode so that it doesn't invoke unwarranted shortcut


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: