Skip to content

Commit

Permalink
newline reducer snippet (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
topher200 authored Apr 3, 2024
1 parent 74ba1d5 commit 519f7f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions files/.config/pet/snippet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -292,3 +292,8 @@
description = "copy github url of current pr"
command = "gh pr view --json url --jq .url | tee >(xsel -b)"
output = ""

[[snippets]]
description = "Remove newlines from clipboard text"
command = "xsel -o | sed '/^$/d' | xsel"
output = ""

0 comments on commit 519f7f2

Please sign in to comment.