Back and forth

— Right, that’s it. I’m getting annoyed with the block editor. I’m switching to ClassicPress

Two months pass.

Slightly missing the fact that my posts appear in the fediverse via the excellent activitypub plugin for WordPress.

— Okay. I’m gonna switch back to WordPress.

Sees that the next version of WordPress is merging in a whole load of ai-related features.

*smh*

— Fuck this! I’m going back to ClassicPress for good. Nothing is worth mixing with the slop machines.

Vim :: Search and replace across multiple files

From within Vim, you can search all files for a string/pattern with the following ex command.

Replace “string_to_find” with your search string. The path given as example is every file under the app directory recursively.

:vimgrep /string_to_find/ ./app/**/*

That command will put all occurances of the string into your quickfix list.

You can then run a command on each instance of that with the following command:

:cdo s/string_to_find/new_string/gc

This runs a substitution for each entry in the quickfix list.

The `g` flag is “global” which means if the occurance happens multiple times on the same line it will replace all. Otherwise it will only replace the first instance on each line.

The `c` flag is to “confirm” each change. Each change it tries to make, it will ask you to specifically answer yes or no to change it. I prefer this for most things.

You can then either manually write each file you have changed, or use the following command to save all the files that have been changed:

:cdo update

I Want To See The Bright Lights Tonight by Richard and Linda Thompson

I’ve been a fan of Richard and Linda Thompson for many years.

However, I have somehow never listened to this album — at least I can’t recall hearing it before.

“pour down like silver” and “hokey pokey” I have heard a few times though.

This album did not disappoint.

Really love their idiosyncratic sound.

I’m still finding inline styles in old posts from my time with WordPress and it’s guttenberg editor. I like the idea of the guttenberg editor, but gosh if it doesnt bloat the fuck out of your html.

I’m now on ClassicPress which is WordPress, if WordPress hadn’t gone down the swanny.