37
submitted 11 months ago by Nies221@lemmy.world to c/kde@lemmy.kde.social

What has changed:
1: Added preview of folders and archives (zip, tar.gz, tar.xz, rar)
2: Now the documents (odt,xlsx,odp and others) are converted to pdf and then shown.
3: Added support for .odp,.ppt,.pptx,.tar.gz,.tar.xz,.zip, and .rar files
4: It is now possible to scroll through the video timeline with the arrow keys.
5: The keyboard shortcuts have been changed.

Many previously required dependencies are no longer needed.
To preview documents (optional) you need to install LibreOffice.

If you want to support me you can find the donations link on the github page: https://github.com/Nyre221/dolphin-quick-view

download: https://www.pling.com/p/2083711/
github: https://github.com/Nyre221/dolphin-quick-view

you are viewing a single comment's thread
view the rest of the comments
[-] Moxvallix@sopuli.xyz 1 points 11 months ago

Just checking over the list of supported files, does it preview just plain .txt files at all?

[-] Nies221@lemmy.world 1 points 11 months ago

.txt or plain text files without extension are supported.

[-] ulfi@troet.cafe 1 points 11 months ago

@Nies221 @Moxvallix
Do you use the info from 'file' command (api) ?

[-] Nies221@lemmy.world 1 points 11 months ago

To get the size of archives and folders:
os.stat(filename).st_size # for folders you have to use it together with os.walk()

To get the list of files inside an archive I use the zipfile, rarfile and tarfile modules.
For the file type, I either extract the extension from the name or I use a bash command via subprocess:file --mime-type filepath
subprocess is used if there is no extension (as often happens with text files).

I preferred to use subprocess to avoid having to increase the number of dependencies needed.

load more comments (1 replies)
load more comments (1 replies)
this post was submitted on 28 Sep 2023
37 points (97.4% liked)

KDE

4997 readers
51 users here now

KDE is an international technology team creating user-friendly free and open source software for desktop and portable computing. KDE’s software runs on GNU/Linux, BSD and other operating systems, including Windows.

Plasma 6 Bugs

If you encounter a bug, proceed to https://bugs.kde.org, check whether it has been reported.

If it hasn't, report it yourself.

PLEASE THINK CAREFULLY BEFORE POSTING HERE.

Developers do not look for reports on social media, so they will not see it and all it does is clutter up the feed.

founded 1 year ago
MODERATORS