I run Mylar on my Xubuntu server to manage my comic collection. I found out recently that there’s a tool that can convert the embedded .jpgs to .webp to save space, but it only works on cbz files and not cbr (zipped vs rar for those who don’t know). I wanted to convert all of my cbr to cbz so that I could run the tool on all my comics, so I needed to search hundreds of subdirectories for them and move them to the same folder to be processed.
Under Windows, I’d just type *.cbr into the search bar built into Explorer from the root comic directory, hit enter to get a list of files, select them all, and move them to the new folder. On Xubuntu, it’s nothing like as simple.
I found the search option in Thunar which opened Catfish, typed in *.cbr, and got a no files found message. After looking through the very limited options, I started searching for a way to do it. About thirty minutes later I’d found dozens of links telling me to use different, Terminal only, tools, but nothing about how to search subdirectories from the Catfish GUI. Purely by accident, I found a post from 2012 that mentioned the fact that Catfish doesn’t use wildcards, so just search with .cbr, something that’s not mentioned in the official docs.
I tried it, and it searched the subdirectories too, and found my files! Except there was no way to copy or cut and paste, just open, show in file manager, copy location, save as, or delete. No good options for almost 500 files across several dozen locations.
I ended up asking Chat GPT how to do it, and doing it through the Terminal, using this:
‘find . -type f -name “*.cbr” -exec mv {} /path/to/destination ;’
This is pretty basic functionality, and I had to resort to getting help to use the Terminal :(
First of all I owe you an apology, you don’t seem to be the type of person that usually writes posts like “This is why people don’t use Linux: it doesn’t do everything exactly the same as Windows”, and my response might have been overly harsh from past experiences.
I understand it wasn’t your intention to say that, but that’s quite literally what people understand when you say “I tried to do X the Windows way and it didn’t worked”. And this is kind of what people are trying to get you to see, it’s not that the file manager has or doesn’t have that feature (which BTW I would also expect it to work, and I checked on my computer and it does in fact work so I’m not sure why you couldn’t select things from the search result and drag it someplace else), the thing is that you went about this with the thought “this is how I would do it in Windows”, and refused to accept that people who use Linux would look at this in a different light, i.e. think about how to modify things in place instead on how to move everything to a single folder. In other words what you WANTED to do was
convert all images inside cbz and CBR files to webp
, so instead of asking yourselfhow do I run this on all of these subfolders
you askedhow do I move all of these files into a single folder
, and that’s the Windows mentality creeping out, you shouldn’t need to move things around.Yes, Mylar will rearrange the things, but here’s the thing, if you had gone with the Linux mentality you would have learned how to run things in folders in place, which would have allowed you to convert the cbr to cbz in place, and then convert the images on those cbzs also in place, without needing to rely on the script supporting either CBR or recursion in the folders nor on Mylar to rearrange things. Also, just thinking about this, how would you have done it? Move CBR to black hole folder, then get them imported as cbz, then move all cbz to a different folder, then run the script, then move everything from that folder into the black hole folder and hope that Mylar doesn’t decide “I already have that comic, delete the one in the black hole since it’s lesser quality than what I already have stored”. Instead of just running the script in the terminal passing the root comic folder, do you REALLY think that your way is simpler?.
I understand the wildcards not working being confusing, and if you hadn’t mentioned that the documentation doesn’t mention it I would be in 100% agreement with you that it is confusing. My point is that the docs don’t need to mention features they don’t support, my counter example was regular expressions which are a lot more powerful than wildcards yet almost no search bar uses, and their documentation doesn’t mention it.
The message you suggested is a nice idea, if the search returns empty that would be a nice message that would direct people to the fact that it doesn’t support wildcards, I would encourage you to suggest it on the git repo or proper channel to the developers, or if you’re inclined to write code write it yourself and open a PR, this seems like a nice message that’s very informative and would improve the quality of the software.