this post was submitted on 14 Jan 2025
3 points (71.4% liked)

Kakoune

23 readers
7 users here now

Unofficial community for talking about the kakoune text-editor.

Official website: http://kakoune.org/

Official Forum: https://discuss.kakoune.com/

Github: https://github.com/mawww/kakoune

The Kakoune logo is designed by p0nce

founded 1 year ago
MODERATORS
 

I've just added the following to my kakrc and I love it :)

## Equals pipe
map global normal = "ya = <esc>p|"

It does the following when I hit '=' in normal-mode:

  1. It copies the currently selected string
  2. It enters insert-mode and types " = "
  3. it pastes the previously selected string
  4. it starts a pipe with the just pasted string

I use kakoune, not just for coding, but also for writing reports.

Take the string 1011 1010. If I select it and pipe it into a cli-tool that translates it into decimal, I get 186. But if I pipe it with this new '=', I get 1011 1010 = 186.

It is not life-changing, but it has definitely improved my writing flow :)

I use it mostly with this tool for translating between binary and decimal, but also with a calculator to quickly get the result of an equation and still have the equation in my document :)

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here