Skip to content

Instantly share code, notes, and snippets.

@tayiorbeii
Created October 18, 2022 03:26
Show Gist options
  • Select an option

  • Save tayiorbeii/26f21609bb5538d5b1e2f36c38f38404 to your computer and use it in GitHub Desktop.

Select an option

Save tayiorbeii/26f21609bb5538d5b1e2f36c38f38404 to your computer and use it in GitHub Desktop.
import "@johnlindquist/kit"
const replaceAll = await npm('just-replace-all')
// Name: Copy Selected
// Shortcut: opt c
let selectedFile = await getSelectedFile()
let contents = await readFile(selectedFile, 'utf-8')
await copy(contents)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment