GithubHelp home page GithubHelp logo

fernzi / dragdrop Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 95 KB

Small drag-and-drop file source for the command line

License: GNU General Public License v3.0

CMake 7.35% C++ 46.09% Shell 5.51% Emacs Lisp 33.57% Scheme 7.47%
command-line drag-and-drop qt wayland x11 appimage

dragdrop's Introduction

DragDrop

GitHub Release AppImage Build

Have you ever noticed how a lot of things (specially web apps) now expect you to drag files into them, rather than using the good ol' file browser dialog? But doing that it's not particularly comfortable when you don't really use a file manager, or prefer a command line one.

So instead of having to launch a graphical file manager each time you need some files dragged, you can use dragdrop to get a quick pop-up dialog with files ready to drag right from the terminal.

You can run something like

dragdrop file1.png file2.txt file3.cc

to get a source to drag files from, or just

dragdrop

on its own to get a sink to drop files into, which will then print their names into the standard output.

See the manual at dragdrop(1) for all the detailed options, and maybe check the examples to see how you can use it in a script.

Installation

The easiest way to try DragDrop is grabbing the AppImage from the releases. Just download the file and make it executable like so:

# Maybe give it a more convenient name.
mv DragDrop-*.AppImage dragdrop

# And now it should work as expected.
chmod +x dragdrop
./dragdrop --help

If you'd rather not run random files from the internet, and DragDrop is not available from your favourite distro's repositories, you'll need to build it from source. So first you have to install its dependencies.

Package naming is not consistent across all distributions, but you'll probably have some luck with these:

# For Debian, Ubuntu, and derivatives:
apt install build-essential cmake qtbase5-dev go-md2man

# For Arch, Manjaro, and the rest:
pacman -S base-devel cmake qt5-base go-md2man

Once that's installed, you can use CMake to build the program with the commands

cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
cmake --install build

which should build and install DragDrop into the /usr/local prefix by default.

dragdrop's People

Contributors

fernzi avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.