HACKER Q&A
📣 shanebellone

Text Editor with “add prefix/suffix around selected text” feature?


Morning all.

I'm looking for a lightweight text editor to write (words not code) with. I love PyCharm's system for adding quotes or parentheses around highlighted/selected blocks of text. I don't want to use a full IDE for personal writing though. So...

Can anyone:

- name this feature?

- recommend a lightweight text editor that does this?


  👤 h2odragon Accepted Answer ✓
Unhelpful answer: emacs `replace-regexp` can do this.

https://emacs.stackexchange.com/questions/50220/emacs-replac...


👤 hairofadog
I don't know if it meets your definition of lightweight, but Obsidian does this. https://obsidian.md

👤 tomsmeding
Vim can do this with the following plugin: https://github.com/tpope/vim-surround

I exclusively use the visual mode commands though, because I find the normal-mode commands confusing.