TUVIMEN / torge

A shell script for searching for links on torrent sites
GNU General Public License v3.0
62 stars 2 forks source link

[Feature request] hide some not so useful columns #16

Closed Disonantemus closed 2 weeks ago

Disonantemus commented 3 weeks ago

Like this (mockup):

1    xxxxxxxxxxxxxxxxx.1080p.WEB.H264-SuccessfulCr4b[TGx]        2am Oct. 21st   3.5 GB
2    xxxxxxxxxxxxxxxxxxxxxxxxxxxx 1080p MAX WEB-DL DDP5 1 x264-  2am Oct. 21st   1.2 GB
3    yyyyyyyyyyyyyyyyyy.1080p.WEB.H264-SuccessfulCr4b[TGx]       2am Oct. 21st   474.6 MB
4    xxxxxxxxxxxxxxxxx.1080p.x265-EL1TE                          3am Oct. 21st   732.8 MB
TUVIMEN commented 3 weeks ago

Option for changing output columns has been added, for your example you can now run torge -a name,date,size your search.

About truncating columns, this would require the knowledge of terminal width and resizing the terminal would not redraw it. If the terminal is small little of information would be shown so it would be better to have results with line wrapping anyway.

The best option would be to have some external table drawing system. fzf has some support for tables, but its very limited and it's maintainers don't want to extend it.