Tuomas Hämäläinen 🇺🇦 on Nostr: To this day, one of my favourite Mac tricks is the ability to select and edit parts ...
To this day, one of my favourite Mac tricks is the ability to select and edit parts of text on multiple lines at once. To do that, just hold down the Option key and draw a selection rectangle with the mouse, and suddenly the cursor is active on all of the lines at once. It works in most apps that use the system text editing APIs.
Take this example of four lines of JavaScript, where I want to change a variable name. I can of course do a find/replace, but sometimes this is just much faster 💪
{
"id":"964251fd68ec9d41ba3aa2f31b804ffa416621be61f8e0348448ddf33f0e1912",
"pubkey":"bd36cb7f7b268ec4c9c4f4a0a8414410999344623c5f8aa7a245ac0537b336fc",
"created_at":1734729707,
"kind":1,
"tags": [
[
"imeta",
"url https://files.mastodon.social/media_attachments/files/113/687/245/764/615/515/original/4e764baeadf55170.mp4",
"m video/mp4",
"dim 580x420",
"blurhash U04o4r#R9FS~k7ofbFaeM|WVofofR%ayoet7"
],
[
"proxy",
"https://mastodon.social/users/tuomas_h/statuses/113687246089690304",
"activitypub"
]
],
"content":"To this day, one of my favourite Mac tricks is the ability to select and edit parts of text on multiple lines at once. To do that, just hold down the Option key and draw a selection rectangle with the mouse, and suddenly the cursor is active on all of the lines at once. It works in most apps that use the system text editing APIs.\n\nTake this example of four lines of JavaScript, where I want to change a variable name. I can of course do a find/replace, but sometimes this is just much faster 💪\n\nhttps://files.mastodon.social/media_attachments/files/113/687/245/764/615/515/original/4e764baeadf55170.mp4",
"sig":"6a880a1b5cee3673dced96bf60b5cccb1d1dc5eaa9528a239263e1f21dd7df51edc9b32cc8e0d783158890034ee005246318933c2c4942822803ae4e98e87994"
}