Live data from Hacker News

Vim Clutch – A hardware pedal for improved text editing (2012)

github.com

111–120 of 171 posts

Re: Vim Clutch – A hardware pedal for improved text editing (2012)

#111
post #107
post #95

Earlier quoted context omitted.

I know the image post in your comment exaggerates the Emacs input sequence for humorous effect but I got curious and decided to count the actual keystrokes for a real world common use case. Say, we want to replace one string with another, e.g., "foo" with "bar" as it appears in your image post. So assuming that we need simple string replacement, not regex-based replacement, and also assuming that we have vanilla Vim,…

Adding further to my previous comment: What if we really need to do regex, say replace "f.." with "bar"? The input sequences then look like this: On Vim: +; (:) +5 (%) s/f../bar/g (16 key strokes) On Emacs: + +, (M- bar +1 (!) (17 key strokes) Although, the number of key strokes are close to each other for both Vim and Emacs, I am pretty sure most beginners would feel there is a slightly increased cognitive overhead…

When you spend hours in your editor, day after day, you aren’t a beginner for long

Re: Vim Clutch – A hardware pedal for improved text editing (2012)

#113
post #6

Nice idea but ridiculously wimpy switch. Rig up one of these American made beauties instead. https://www.amazon.com/SSC-Controls-G500-MO-Electrical-Indus... from experience: they're way more satisfying to press and oil/water/dust tight. EDIT: fixed link. this pedal is also OSHA approved with a safety cap to prevent objects from falling onto the switch and triggering insert mode.

Link still doesn't work. I think this is what you were trying to link to: https://www.ebay.com/itm/TEMCo-Heavy-Duty-Cast-Aluminum-Foot... I'm not sure how you'd connect this as an ancillary USB keyboard. Seems like you'd need an Ardunio or something? I'd love to have a few of these to control DAW apps where I don't need the hassle, cost and complexity of Midi

A handwired QMK keyboard would work fine: https://docs.qmk.fm/#/hand_wire

If you have only one or two switches, you can use the DIRECT_PINS configuration to directly put one switch per input pin rather than the more conventional switch matrix approach. You can use the XD002 code as a starting point (https://github.com/qmk/qmk_firmware/tree/master/keyboards/xd..., https://github.com/qmk/qmk_firmware/blob/master/keyboards/xd...). It uses a DigiSpark rather than the more common Arduino Pro Micro. The DigiSpark is a bit fiddly and has very little program memory, but it is very cheap and simple.

Re: Vim Clutch – A hardware pedal for improved text editing (2012)

#114

Earlier quoted context omitted.

When using a standing desk, I prefer to use a glute squeezer device to switch modes. It feels much more natural, and improves the muscle tone as a bonus.

How do you attach the device?

Carefully.

Re: Vim Clutch – A hardware pedal for improved text editing (2012)

#115

Earlier quoted context omitted.

Consider remapping ';' to ':' if you use vim a lot. Something like: " Use ; rather than : for commands nore ; : nore , ;

See, I never understood these tips. If I use Vim a lot I will build muscle memory. If I build the muscle memory with these adjustments I’ll just keep tripping over myself whenever I edit a file on a station without those adjustments. And simply foregoing the shift key isn’t even that much of a time or effort save.

This. I really like the pedal idea but I won't ever get it cause I don't want to have to move around with it.

Re: Vim Clutch – A hardware pedal for improved text editing (2012)

#116
post #95
post #70

Thank you for posting this and giving me a reason to reread my all time favorite greentext: https://i.imgur.com/WLzeQMj.png

I know the image post in your comment exaggerates the Emacs input sequence for humorous effect but I got curious and decided to count the actual keystrokes for a real world common use case. Say, we want to replace one string with another, e.g., "foo" with "bar" as it appears in your image post. So assuming that we need simple string replacement, not regex-based replacement, and also assuming that we have vanilla Vim,…

> On Vim: +; (:)

    nnoremap ; :
I've never missed the default behaviour of ";" (to repeat the last "t"-like command), and the above has helped me tremendously

Re: Vim Clutch – A hardware pedal for improved text editing (2012)

#117
post #95
post #70

Thank you for posting this and giving me a reason to reread my all time favorite greentext: https://i.imgur.com/WLzeQMj.png

I know the image post in your comment exaggerates the Emacs input sequence for humorous effect but I got curious and decided to count the actual keystrokes for a real world common use case. Say, we want to replace one string with another, e.g., "foo" with "bar" as it appears in your image post. So assuming that we need simple string replacement, not regex-based replacement, and also assuming that we have vanilla Vim,…

Emacs users consider a keychord as a single action so that would be 2 keychords plus the foo bar for a total of 10 actions.

Re: Vim Clutch – A hardware pedal for improved text editing (2012)

#118
post #95
post #70

Thank you for posting this and giving me a reason to reread my all time favorite greentext: https://i.imgur.com/WLzeQMj.png

I know the image post in your comment exaggerates the Emacs input sequence for humorous effect but I got curious and decided to count the actual keystrokes for a real world common use case. Say, we want to replace one string with another, e.g., "foo" with "bar" as it appears in your image post. So assuming that we need simple string replacement, not regex-based replacement, and also assuming that we have vanilla Vim,…

This subthread is now keyboard-based editor golf, :p

Re: Vim Clutch – A hardware pedal for improved text editing (2012)

#120
post #14

A full gearbox would be nice: * reverse --> undo * first gear --> replace mode * second gear --> visual mode * third gear --> command mode * fourth gear --> insert mode * fifth gear --> customizable mode

and you would be busy switching gear I guess...

You can make that look cool though: https://www.youtube.com/watch?v=rtsENyPZOHw
Post reply on HN