Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save evandrocoan/e07e840452369d9e881eff3179bda6c7 to your computer and use it in GitHub Desktop.
Save evandrocoan/e07e840452369d9e881eff3179bda6c7 to your computer and use it in GitHub Desktop.

Replacing backticks `word` with **`word`**

  1. Create a buffer only with `git`
  2. Press Ctrl+H to open Find and Replace
  3. Set Find to (?<!\*)`([^\n*`]+?)`(?!\*)
  4. Set Replace to **`\1`**
  1. Find to ((?:[^*]))`([^\n*`]+?)`(?!\*)
  2. Replace to \1**`\2`**
  1. sublimehq/sublime_text#3004 - The Find button on "Find and replace" works, but the Replace button does not
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment