No description
Find a file
2026-06-17 12:43:24 -04:00
src fix auto-close and bind ESC to manually close. 2026-06-17 12:43:24 -04:00
.gitignore init 2026-03-30 13:46:00 -05:00
Cargo.lock init 2026-03-30 13:46:00 -05:00
Cargo.toml init 2026-03-30 13:46:00 -05:00
LICENSE add license 2026-04-05 12:55:33 -05:00
README.md add readme 2026-04-05 12:52:08 -05:00

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:

  1. When ran with a file argument, it presents a window that allows you to drag that file into a graphical program.
  2. 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)"