25.02.2025
поиск и замена в emacs
- emacs regexp
- поиск и замена по нескольким файлам
- искать по части файлов проекта
- grep ack ag
- https://github.com/magnars/multiple-cursors.el - прикольная штука про параллельное редактирование нескольких мест.
- https://www.gnu.org/software/emacs/manual/html_node/emacs/Query-Replace.html
- query-replace и replace-string для интерактивной и неинтерактивной замены строки.
- replace-regexp и query-replace-regexp - для замены с регэкспами.
- кнопочки в процессе
- emacs - посчитать символы
- M-x replace-regexp-as-diff – Show as diffs replacements of REGEXP with TO-STRING in the current buffer. The replacements are displayed in the buffer replace-diff that you can later apply as a patch after reviewing the changes.
- Emacs 30.1 comes with 3 new interactive functions: replace-regexp-as-diff for replacements in a single buffer,
multi-replace-regexp-as-diff for multiple buffers, and dired-do-replace-regexp-as-diff to perform replace-regexp-as-diff on marked files in the directory editor. https://christiantietze.de/posts/2025/02/preview-mass-text-replacements-with-emacs-30-1-replace-regexp-as-diff/
Все посты