Context: I accidentally pressed the C key on my .config directory and was presented with a list of directories to copy it to, then I pressed escape to quit the fzf menu without choosing anything - instead of doing nothing the script copied all of the contents inside my .config directory into my home directory. After dealing with that mess I decided to make this PR which does the following:
- Allow users to escape out of the fzf menu without unexpected copies
- Asks the user for confirmation before copying/moving files
- Some improvements in the UI
* Corrects the syntax error in "application/octet-stream is for arbitrary binary files"
#1321 had a syntax error, this commit correct it.
* Update lfrc
support for ts
1. Copies the selected filename instead of the filepath, and pipes it to clipboard.
2. Copies the selected filename and if it matches the yt-dlp downloaded video format [1234567891011], gets the full youtube URL and pipes it to clipboard.
3. Copies the selected filename and if it matches the yt-dlp downloaded video format [1234567891011], gets the full piped.video URL and pipes it to the clipboard. (piped.video is a mirror of youtube, even includes comments)
4. Opens current folder in full picture mode. Think windows large icons mode. Good for browsing quickly through image albums.
5. Ctrl+l to unselect all selections so the behaviour matches the terminal.
* Fix pdf and plain text previws in lf
Pdf previws don't appear because are generated with wrong filename.
Plain text previws with `bat` don't respect terminal theme and have
annoying border.
* Revert pdf cache filename to work properly
application/octet-stream mime-type is used for arbitrary binary files, so the best guess at opening those kind of should be based on the extension. before this all of this kind of files were tried to be opened with zathura, now it is the last resort in case the file extension is unknown.
In the current update, the libreoffice package doesn't have any binary for libreoffice writer, calc, impress, draw, etc. So it's better to open all of the document using the 'libreoffice' binary as it can work in the old version of libreoffice as well as the new one.
* Fix mouse issue in firefox, add avif icon and add DK & SE to dopplar
* Update sb-doppler
* Scandinavian countries listed
---------
Co-authored-by: Victor Risgaard <victor@risgaard.xyz>
fallback to using mediainfo when ffmpegthumbnailer or pdftoppm is not available.
correct terminal width for bat.
use cut instead of awk for efficiency.
improve spacing/indentation for the sake of consistency in code.