https://scottswezey.com/always-paste-without-formatting-macos/ The World According to Scott * Projects * About Sign in Subscribe Tech Featured Always paste without formatting on macOS When copying and pasting on a Mac, most applications will retain the formatting of whatever you copied. Use this trick to paste unformatted text. * Scott Swezey Scott Swezey Sep 19, 2022 * 1 min read Always paste without formatting on macOS Creating a custom keyboard shortcut to "paste and match style" in the macOS settings App Shortcuts menu. When copying and pasting on a Mac, most applications will retain the formatting of whatever you copied. If that bugs you as much as it bugs me, try this trick to switch up the default to pasting unformatted text. Or more accurately, having the pasted text ignore its own formatting and match the text where it's pasted. 1. Open the System Settings app. 2. Search for "Keyboard shortcuts" or navigate to Keyboard > Shortcuts > App Shortcuts 3. Add a new shortcut 4. Choose All Applications for the Application, and type Paste and Match Style. Enter [?]V for the Keyboard Shortcut. Click Add. [?] Hello Hacker News! As some people have pointed out, this tip does not work in every app, if it doesn't have a "Paste and Match Style" menu option. Check out the discussion on Hacker News for some other ideas. https://news.ycombinator.com/item?id=38141320 Before macOS Ventura, use these steps: 1. Open the System Preferences app. 2. Go to Keyboard > Shortcuts. 3. Click on App Shortcuts. 4. Add a new shortcut. 5. Choose All Applications for the Application, and type Paste and Match Style. Enter [?]V for the Keyboard Shortcut. Click Add. Next time you copy/paste, the copied text will fit in with the style of wherever it's pasted. Cool. Buying time Buying time The concept of "buying time" is a communication skill, used when you need to prioritize something other than the person you are currently working with. Jul 11, 2023 2 min read AOC 2022-08 (Treetop Tree House) Mix.install([ {:kino, "~> 0.7.0"} ]) Input input = Kino.Input.textarea("Input") input = input |> Kino.Input.read() |> String.split() grid = input |> Enum.with_index() |> Enum.reduce(%{}, fn {line, row}, acc -> line |> String.graphemes() |> Enum.with_index () |> Enum.reduce(acc, fn {height, col}, acc2 -> Map.put(acc2, {row, col} Dec 8, 2022 1 min read AOC 2022-06 (Tuning Trouble) Mix.install([ {:kino, "~> 0.7.0"} ]) Common Code defmodule Day6 do def find_unique_prefix(input, length) do input |> String.graphemes() |> Stream.chunk_every(length, 1) |> Stream.map(&count_unique_elements /1) |> Enum.find_index(&(&1 == length)) |> Kernel.+(length) end defp count_unique_elements(list) do list |> MapSet.new() |> MapSet. Dec 6, 2022 The World According to Scott (c) 2023 * Mastodon * Github * Stack Overflow * LinkedIn Powered by Ghost