Skip to content

Instantly share code, notes, and snippets.

@dlaub3
Created August 21, 2021 02:55
Show Gist options
  • Save dlaub3/84ed65276310729bc03aec16ae927b07 to your computer and use it in GitHub Desktop.
Save dlaub3/84ed65276310729bc03aec16ae927b07 to your computer and use it in GitHub Desktop.
Handy Scripts

Copy Import Path

function copyImport --description "copy the import path to the clipboard"
   rg --no-filename "$argv[1]" | rg "^import" |  sort | uniq | fzf | pbcopy
   echo (pbpaste)
end
function copyImport() {
   rg --no-filename "${@}" | rg "^import" |  sort | uniq | fzf | pbcopy
   echo $(pbpaste)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment