Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clipstrike

Convert text to Unicode strikethrough. E.g. "Hello world" becomes "H̶e̶l̶l̶o̶ ̶w̶o̶r̶l̶d̶".

Works by inserting U+0336 (Combining Long Stroke Overlay) after every character.

Requirements

  • Rust (edition 2024)
  • wl-paste and wl-copy (Wayland clipboard utilities)

Build

cargo build --release

Usage

clipstrike [OPTIONS] [INPUT]

Input

Form Source
(no argument) Clipboard (via wl-paste)
- stdin (trailing newlines stripped)
<text> Literal text argument

Output

Form Destination
(no flag) Clipboard (via wl-copy)
-o stdout
-o - stdout
-o <file> Write to file

Examples

# Clipboard in, clipboard out
clipstrike

# Literal text to stdout
clipstrike -o "cross this out"

# Pipe from stdin to a file
echo "strikethrough me" | clipstrike - -o result.txt

License

This project is dedicated to the public domain under the CC0 1.0 Universal license. To the extent possible under law, the author has waived all copyright and related or neighboring rights to this work.

About

Strikeout Wayland clipboard contents.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages