4 ms·
Ask HN: 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 4y agoUnhelpful answer: emacs `replace-regexp` can do this. https://emacs.stackexchange.com/questions/50220/emacs-replace-regexp-reference-the-match-in-the-replace-argument https://emacs.stackexchange.com/questions/50220/emacs-replac...
- tomsmeding 4y agoVim can do this with the following plugin: https://github.com/tpope/vim-surround https://github.com/tpope/vim-surround I exclusively use the visual mode commands though, because I find the normal-mode commands confusing.
- hairofadog 4y agoI don't know if it meets your definition of lightweight, but Obsidian does this. https://obsidian.md https://obsidian.md
- shanebellone 4y agoThis looks like a potential solution. I'll definitely test this out. Thanks for the link!
- shanebellone 4y agoI love Obsidian! Great recommendation. :)