Rickard Lindberg | Blog | Projects

Written by Rickard Lindberg Profile picture of Rickard. in #rlworkbench

I've implemented an special select mode in rlworkbench that simplifies selecting different portions of a document. Here is a demo of it.

The select mode is entered by pressing ctrl+l for se(l)ect. The mode is a quasimode meaning that it is only active while the 'l' key is still pressed. (The ctrl key can be released.)

In the select mode buttons to different things:

  • Pressing 'r' extends the selection to the current (r)egion leaped over

  • Pressing 'e' extends the selection to lin(e) boundaries

  • Pressing 'a' extends the selection to p(a)ragraph boundaries

The editor is also in select mode when clicking and dragging with the mouse. So the same keys can be used there. (That is why all the keys are on the left side of the keyboard, since, for me, I operate the mouse with the right hand.)

Having an explicit select mode frees up more keys for select operations. So far I find it a little uncomfortable sustaining the 'l' key, but I feel like it has potential.

2026-07-31 week 31

What is Rickard working on and thinking about right now?

Every month I write a newsletter about just that. You will get updates about my current projects and thoughts about programming, and also get a chance to hit reply and interact with me. Subscribe to it below.

Powered by Buttondown (My Newsletter)

Profile picture of Rickard.

I'm Rickard Lindberg from Sweden. This is my home on the web. I like programming. I like both the craft of it and also to write software that solves problems. I also like running.

Me elsewhere: GitHub, Mastodon.