Skip to content

u/galudwig

In this archive from Oct 2014 to Feb 2020

2
posts
76
comments
1
media
395
score

Is this a new laptop? Did it run a different OS before? The commands you mentioned are all very standard and safe. Maybe your laptop is seriously overheating but you would have noticed this on other OSes as well.

1 points

Once you're set up you only very rarely run into problems. If you wanna be sure, don't update when you can't spare the time in case something does go wrong, use a script that checks arch news before updating and make sure to have a good backup strategy.

In my own case, I've only had a serious issue causing me to have to restore from a backup once in over a year now - and it was related to running proprietary drivers so it could have easily been avoided. Even then, restoring my system took just an hour and a half or so, most of it spent reading to make sure I wasn't doing anything stupid. Apart from that one hiccup it's been very smooth sailing.

4 points

arch-wiki-man guy here. arch-wiki-lite is written in Python & Bash. It's smaller and has fewer dependencies.

The features of both packages are pretty much identical (I didn't know arch-wiki-lite existed before I wrote my own to solve the same problem), but mine is written in Node as it was a project to get better with Node. Also my package is just on the AUR.

The main differences are the selection menu (my menu is fancier and supports vim keybindings, but comes at the cost of a large dependency and longer installation time), the way and the order that search results are displayed and the formatting of the articles.

If you want to see the differences for yourself, just check the screenshots in the arch-wiki-man readme :)

3 points

Does it still happen if you don't open chrome or Firefox? I once had problems with random freezes across multiple OSes on tested hardware but it turned out it was somehow a chrome extension that was causing them. Worth testing out if you still get freezes without browsers open at all.

1 points

Hmmmm I actually do this.. I was tired of fucking up so I make incremental dumps of root and home every 30 hours and a full one for every five incremental ones. I set it up so my oldest "week" gets deleted when it's three weeks old. However I just store all the backups on another local hard drive so if my computer ever explodes I'm still fucked.. Only had to do a full restore once but man did I thank my paranoia then.

2 points

I'm a bit wary of spamming the sub with another post about my little project, but I did promise to update you so FWIW, I adressed some (not all) of the formatting issues. I prefer the man-themed look myself so there are still quite a bit of tabs (similar to man articles), but the stray newlines and absurdly large TOC should be fixed at least - though perhaps the TOC doesn't really serve a purpose here and should just go altogether.

I guess adding color is possible, but I think that would only work by giving up bold or italics. I'll look into it some more later and maybe add a command-line option for color later on.

2 points

Thanks for that gif! I see now that the formatting is indeed much better on the other project. I don't think that'll take too long to fix -- to be honest I hadn't given it much thought until now. I'm addressing a major issue with the underlying wiki generation first and then I'll get to the formatting.

I should have a better and more polished version of this done by next week and will make another post on this sub about it when it's done. Thanks for the constructive feedback!

2 points

I had no idea that existed. People keep pointing me to stuff that I totally missed! :)

Anyway, that's pretty nifty. The difference is the wiki generation that solution uses is better (until I update mine that is), but my command-line interface is probably nicer. When you have multiple matches, you get a little menu to choose an article from with arrow keys or vim keybindings and it opens the result in straight man (or in your web browser if you prefer). You can also search for matches just in titles, in descriptions or in the entire article contents. Oh and in mine, the matches are ordered by last update, which I think works well as a proxy of importance of the article.

2 points

Oh wow, I hadn't seen this before but I have seen arch-wiki-docs as there are links to it in the wiki. For some reason I never got it working on my machine though, maybe due to an issue with python 2/3 on my end. And I can't seem to install arch-wiki-markdown-git either as I get dependency conflicts with vim and my neovim setup is too precious for me right now to risk screwing up! I definitely will take a better look at it later though. Based on a cursory glance at it, those repos you linked look better and more robust when it comes to the generation of the wiki so when I find some time, I will address my issues and get it to work - and maybe borrow some ideas.

As for advantages of my approach, looking at the readme, it doesn't sound like there is a selection menu, which mine does have. I also allow for searching for a matching article in the descriptions (which is usually the first paragraph of the article) with -d and and in the contents of every article with -k. And of course it converts the selected article on the fly to roff and displays it in man. Oh, and you can also open the articles in your web browser instead of man with -w.

So yeah, in short I think the wiki generation is better in the ones you linked, but maybe my command-line interface is a little nicer?

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.