Skip to content

Commit

Permalink
fix tldr extension
Browse files Browse the repository at this point in the history
  • Loading branch information
pomdtr committed Jan 8, 2025
1 parent 1277a9c commit 49385e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/tldr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ elif [ "$COMMAND" = "update" ]; then
tldr --update
elif [ "$COMMAND" = "view" ]; then
PAGE=$(echo "$1" | jq -r '.params.page')
tldr --raw "$PAGE" | jq --arg page "$PAGE" -sR '{
tldr --raw "$PAGE" | jq -sR '{
markdown: ., actions: [
{title: "Copy Page", type: "copy", copy: {text: ., exit: true}}
{title: "Copy Page", type: "copy", text: ., exit: true}
]
}'
fi

0 comments on commit 49385e3

Please sign in to comment.