I forget this every few months, but then some big renaming happens, and it's time for a namespace to graduate.
But what was that workflow again? I knew it better in vim.
Ah, that's right, the keyword is `ivy-occur`. Maybe I should do some reading on occur - it seems to fill a nice space.
My project-grepping prefix changes sometimes, but really I don't press it. I use SPC-a to send those keys into the vim-y console so i can start typing right away.
todo: link doom kbd for sending keys to the console
The voodoo begins:
Foo. (phew.)
Now you're in a roughly-vim editable buffer that you will essentially re-write.
When you are ready, move on to shove each edited line into place.
That's `shift-z shift-z`. ( of course. )
This was a big help: https://sam217pa.github.io/2016/09/11/nuclear-power-editing-via-ivy-and-ag/
--
Some rough notes, for old time's sake.
this is obviously way too hard!
C-c C-o C-x C-q <- seriously? these letters make no sense then: Z Z b/c of course.
remembering this is basically impossible unless you are familiar with the inner
'chords', but they are not common enough/well understood by my vimmery maybe i
didn't know vim that well
This is a nice interface, but seems leave all the edits in un-saved buffers... probably there's a way to configure this... universal arg?
`save-some-buffers` and `magit-save-repository-buffers` ask about every file individually, if you're into that kind of thing.
for auto-saving after lsp-rename: https://emacs.stackexchange.com/questions/66526/auto-saving-after-lsp-refactor
similar to ivy-occur:
Given enough time, the keybindings make sense.
Emacs is a text-editor that is quite old, but has been worked on continuously since then.
Emacs is special because it is very dynamic. It is implemented in lisp, which allows interactive development via the REPL, giving you tons of power and control. It is a double-edged sword, in that you must take care to keep your systems running smoothly. Tools are everything, so keep your knives sharp.
Emacs can be very difficult to learn, especially in a vacuum. I hope to document the things that have been useful to me.
Some emacs notes: