Package Details: nyaa-bin 0.8.0-1

Git Clone URL: https://aur.archlinux.org/nyaa-bin.git (read-only, click to copy)
Package Base: nyaa-bin
Description: A tui tool for browsing and downloading torrents from nyaa.si
Upstream URL: https://github.com/Beastwick18/nyaa/
Licenses: GPL-3.0-or-later
Conflicts: nyaa
Provides: nyaa
Submitter: Beastwick
Maintainer: Beastwick
Last Packager: Beastwick
Votes: 0
Popularity: 0.000000
First Submitted: 2024-03-20 21:00 (UTC)
Last Updated: 2024-04-04 14:44 (UTC)

Dependencies (0)

Required by (0)

Sources (1)

Latest Comments

Beastwick commented on 2024-03-28 00:29 (UTC)

Thanks for the resources, I'll look into their implementations :)

m040601 commented on 2024-03-27 17:15 (UTC)

Regarding X11/Wayland clipboards and/or tmux. I have been using these and they implement the "choose the copy command thing". Extremelly usefull things.Maybe you find some inspiration.

Rust: https://github.com/graelo/tmux-copyrat

Go: https://github.com/abhinav/tmux-fastcopy

Beastwick commented on 2024-03-27 14:52 (UTC)

I'll for sure add those files, hopefully by the next release.

As for the clipboard, it currently won't work without X/Wayland running. I'm pretty sure by default it will try to copy to the CLIPBOARD selection, but I could add an option for Linux to select between primary/secondary/clipboard.

Also, that's a good idea to add a command to be run on copy. I'll see about adding something like that to the next release.

m040601 commented on 2024-03-27 02:09 (UTC)

At the moment you only release a simple binary in the release.

In the future When you start releasing a .tar.gz containing the binary and the man page, etc. You might also want to add a CHANGELOG on NEWS and eventually other help/example files. Usefull for the enduser to keep up with the changes (if they are not in the man page).

All done with the "install -Dm644 ... foo bar" you already have there commented.

They should land in something like,

/usr/share/doc/nyaa/CHANGELOG(or NEWS)
/usr/share/doc/nyaa/examples/xyz foo bar
.... ....
/usr/share/licenses/nyaa/LICENSE

m040601 commented on 2024-03-27 01:56 (UTC)

Working great the latest version !!!

This,

 yt, ym, yp | Copy torrent/magnet/post link 

is supposed to copy where ? To the primary/secondary (X11) clipboard ?

What if I am not running a desktop, not even booting X ? Or using X but wants to copy to somewhere else ? Ex, xclip, xsel tool.

For example, a terminal multiplexer like tmux and I want to copy to its copy buffer. Or any other "clipboard" daemon.

Could this be added as an option like some other rust tools do ?

That is to let the user define the copy command itself. Ex,

COPY_COMMAND = " | tmux load-buffer - "

or

COPY_COMMAND = "some clipboard daemon "