![](https://lemmy.world/pictrs/image/99bdd723-15f2-425c-8504-39958d80f93c.jpeg)
![](https://lemmy.kde.social/pictrs/image/19e6d51f-5131-409e-8990-827d3d29e4d3.png)
.txt or plain text files without extension are supported.
.txt or plain text files without extension are supported.
instructions reference INSTALL.sh but that’s not in the source? Maybe only in the release tarball?
I added it to the repository: https://github.com/Nyre221/dolphin-quick-view/tree/main/package creation
does it clear the user’s entire clipboard history each time it’s run?
I made some changes and now it doesn’t delete all the history, only the last thing copied (afterwards try to restore it but it doesn’t work if you copied a folder or file): https://github.com/Nyre221/dolphin-quick-view/blob/main/package creation/quick_view_package/dolphin_quick_view_shortcut.sh
this is caused by dolphin’s limitations and there’s not much I can do about it.
would it make sense to package this up for PyPI, with system deps being checked for and reported from within python? If so, are you interested in pull requests?
I don’t think it makes much sense for this application.
For now I’m trying to integrate the modules inside a .pyz and eliminate the use of pip: https://github.com/Nyre221/dolphin-quick-view/issues/10
Thanks!
I wonder how an implementation with KPart/C++ would look like
I’m not sure what you mean, I have no experience with c++.
Look, I’ve never used Apple’s quick look or Gnome sushi so I can’t answer this question. The people here can definitely give you a better answer than me haha
After reading about a user who was looking for an alternative to Apple’s Quick Look and Sushi Gnome I decided to create this program to practice with python and make someone happy. I didn’t expect there were so many people with the same need.
It looks absolutely great and I will download it, but I have a question, what advantage does it have, for example, to use this instead, for example, to open Okular to view a PDF?
I think its usefulness lies in the ability to scroll between files (even of different types) with the arrow keys, plus being fast.
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.