Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fernzi/dragdrop
Small drag-and-drop file source for the command line
https://github.com/fernzi/dragdrop
appimage command-line drag-and-drop qt wayland x11
Last synced: about 2 months ago
JSON representation
Small drag-and-drop file source for the command line
- Host: GitHub
- URL: https://github.com/fernzi/dragdrop
- Owner: fernzi
- License: gpl-3.0
- Created: 2022-06-17T11:42:09.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-11-04T16:29:35.000Z (2 months ago)
- Last Synced: 2024-11-04T17:32:05.049Z (2 months ago)
- Topics: appimage, command-line, drag-and-drop, qt, wayland, x11
- Language: C++
- Homepage:
- Size: 95.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DragDrop
[![GitHub Release](https://img.shields.io/github/v/release/fernzi/dragdrop)][gh-rel]
[![AppImage Build](https://github.com/fernzi/dragdrop/actions/workflows/appimage.yml/badge.svg)][gh-bld]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
```sh
dragdrop file1.png file2.txt file3.cc
```to get a source to drag files from, or just
```sh
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)](doc/man/dragdrop.1.md)
for all the detailed options,
and maybe check the [examples](doc/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][gh-rel].
Just download the file and make it executable like so:```sh
# 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:```sh
# 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```sh
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.[gh-rel]: https://github.com/fernzi/dragdrop/releases
[gh-bld]: https://github.com/fernzi/dragdrop/actions/workflows/appimage.yml