Brief comment: This is a clutch pedal made with hardware, which controls the insert mode and normal mode of Vim ~
There is a project about Vim on Github. The author of the project, Aleksandr Levchuk, can be said to be very interesting.
In order to improve Vim's text editing speed, he made a pedal clutch for Vim himself. When the pedal is pressed, it puts Vim into insert mode (as if pressed); if the pedal is released, it returns to Vim's normal mode (as if a key was pressed).
The production process is also not difficult:
- Bought two USB foot pedals and PC sensor from China
- Make it work via Windows GUI or by programming on Mac/Linux (rgerganov/footswitch)
- One pedal is programmed to send letters and the other to send
- separate the two pedals
With the pedals in the down position, using electrical tape, attach two toothpicks to the plastic blade located between the IR sensors
Put the two sensor boards into a pedal housing so that when the pedal is pressed, first the toothpick will go through the sensor, then the plastic blade will go into the sensor. When the pedal is released, the toothpick goes through the sensor again.
And finally the finished product:
Interested friends may wish to move to Github for reference details~