Skip to content

u/itslef

In this archive from Dec 2014 to Jan 2022

1
posts
30
comments
0
media
87
score

Top posts

How to apply patches to st?

I really like st, but one feature I really wish it had is mouse scrolling, for when long output means I can't see what's at the beginning. Suckless provides patches (as .diff files) to enable mouse scrolling, but I can't for the life of me figure out how to apply them. I asked my admin friend, and h...

0 points6 comments
Open on Reddit

Top comments

So in a keyboard-centric workflow, usually you have keystrokes to traverse your code quickly. For instance, in vim you might hit "40gg" to quickly go to line 40 of your file, or "2b" to go backwards two words. These keystrokes can be extremely helpful, allowing you to very quickly go back and forth to specific places without having to move your hands from the keyboard, and without using the arrow keys to go one character at a time.

However, this doesn't mean you can't use your mouse. You can still use your mouse to click around if you want to; this set up just means you don't have to use your mouse.

For instance, I often code on my laptop, where my touchpad is borked 10 ways from Sunday. If I so much as breathe on the thing wrong, it stops working entirely until I close my lid and reopen it. If I had to use a mouse to do everything, it would be ridiculously frustrating. Using a keyboard-centric workflow, I can just disable the touchpad entirely and never be bothered by it. Having worked in this fashion for a while, now laptop touchpads seem unwieldy and slow to me.

Ultimately, it's just whatever you're used to, and whether or not the benefits of something new outweigh the pain of getting used to it.

9 points

Cargo lets you specify the target architecture. If you're running Arch ARM on your raspi, you can specify

armv7-unknown-linux-gnueabihf	

as your target in Cargo.toml and build it that way. You wouldn't be building the AUR package this way, you'd be compiling directly from source, but it should work I think.

7 points

Subreddits

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.