vamolessa / pepper

simple and opinionated modal code editor for your terminal
https://vamolessa.github.io/pepper/
372 stars 17 forks source link

Add clear main selection key #57

Closed NNBnh closed 2 years ago

NNBnh commented 2 years ago

We currently have:

keys action
cd clear all extra cursors and keep only the main cursor

But there is no way to clear only the main cursor...

From Kakoune's keys docs:

Alt-Space : Clear the main selection.

I imagine it will be implemented like this:

  | keys       | action                                                |
  | ---------- | ----------------------------------------------------- |
  | `cd`       | clear all extra cursors and keep only the main cursor |
+ | `cD`, `CD` | clear only the main cursor                            |
vamolessa commented 2 years ago

I've moved the current cd binding to CD (or cD) and added a new cd which only deletes the main cursor. It's on c8c46d03 and will be released on v0.27.0