No description
- Rust 100%
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
tdrag - terminal drag and drop bridge
tdrag is a simple program that acts as a glue between shell workflows and drag-and-drop functionality of graphical programs.
It has two modes:
- When ran with a file argument, it presents a window that allows you to drag that file into a graphical program.
- When ran with no argument, it waits for a file to be dropped into its window, then prints that file's path to stdout.
Examples
Copy the contents of a file to clipboard
cat "$(tdrag)" | wl-copy (wl-copy can be replaced with xclip on non-wayland systems).
Upload current directory
tdrag "$(pwd)"