Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 2.33 KB

README.md

File metadata and controls

51 lines (41 loc) · 2.33 KB

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.

Example.mp4

*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.

How to install

cargo install ripdrag

Usage

USAGE:
    ripdrag [OPTIONS] [PATHS]...

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

OPTIONS:
    -a, --all                                Drag all the items together
    -A, --all-compact                        Show only the number of items and drag them together
    -d, --disable-thumbnails                 Don't load thumbnails from images
    -h, --content-height <CONTENT_HEIGHT>    Default height of the main window [default: 360]
        --help                               Print help information
    -i, --icons-only                         Only display icons, no labels
    -I, --from-stdin                         Accept paths from stdin
    -r, --resizable                          Make the window resizable
    -s, --icon-size <ICON_SIZE>              Size of icons and thumbnails [default: 32]
    -w, --content-width <CONTENT_WIDTH>      Min width of the main window [default: 360]
    -x, --and-exit                           Exit after first successful drag or drop

TODO

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

  • drag files from other apps to the terminal
  • clean up code
  • pacman, deb, rpm, windows and macos build scripts
  • automated builds

Feel free to contribute ;)