9 releases

0.3.0 Mar 11, 2023
0.2.1 Nov 4, 2022
0.2.0 Sep 15, 2022
0.1.5 Sep 13, 2022

#201 in Command line utilities

Download history 11/week @ 2022-12-06 1/week @ 2022-12-13 11/week @ 2022-12-20 9/week @ 2022-12-27 5/week @ 2023-01-03 5/week @ 2023-01-10 5/week @ 2023-01-17 16/week @ 2023-01-24 30/week @ 2023-01-31 17/week @ 2023-02-07 38/week @ 2023-02-14 11/week @ 2023-02-21 4/week @ 2023-02-28 38/week @ 2023-03-07 12/week @ 2023-03-14 7/week @ 2023-03-21

61 downloads per month

Custom license

317 lines

What is ripdrag?

Crates.io GitHub top language Crates.io

ripdrag is an application that lets you drag and drop files from and to the terminal.

It's designed to be feature to feature* compatible with dragon, while being written in modern Rust and GTK4.


*some features like --on-top can't be ported over because of limitations in gtk4

Use cases

Many applications expect files to be dragged into them. Normally you would have to put your beloved terminal aside and open a file manager to that, but now you can just type ripdrag FILENAME and be done.

Used in combination with a fuzzy finder like fzf - e.g. ripdrag $(fzf) - can make for an amazingly quick and painless terminal experience.


Install the required dependencies

Ubuntu 22.04 or later

sudo apt install cargo libgtk-4-dev build-essential


sudo dnf install cargo gdk-pixbuf2-devel pango-devel graphene-devel cargo-devel cairo-gobject-devel cairo-devel python2-cairo-devel gtk4-devel

Arch Linux

sudo pacman -Sy --needed rust gtk4 base-devel


A pre-compiled binary is available from the official repositories. To install it simply run,

pkgin install ripdrag

Install the binary (Do not use sudo, if you don't want it to be installed on root)

cargo install ripdrag

Add cargo to path (Not added by default)



    ripdrag [OPTIONS] [PATHS]...

    <PATHS>...    Paths to the files you want to drag

    -v, --verbose                  Be verbose
    -t, --target                   Act as a target instead of source
    -k, --keep                     With --target, keep files to drag out
    -p, --print-path               With --target, keep files to drag out
    -r, --resizable                Make the window resizable
    -x, --and-exit                 Exit after first successful drag or drop
    -i, --icons-only               Only display icons, no labels
    -d, --disable-thumbnails       Don't load thumbnails from images
    -s, --icon-size <SIZE>         Size of icons and thumbnails [default: 32]
    -W, --content-width <WIDTH>    Min width of the main window [default: 360]
    -H, --content-height <HEIGHT>  Default height of the main window [default: 360]
    -I, --from-stdin               Accept paths from stdin
    -a, --all                      Drag all the items together
    -A, --all-compact              Show only the number of items and drag them together
    -h, --help                     Print help information
    -V, --version                  Print version information


There are still lots of thing to be done! Mainly:

  • clean up code
  • pacman, deb, rpm, windows and macos build scripts
  • automated builds

Feel free to contribute ;)


~492K SLoC