It’s done, but a bit inside out..

I needed something that would search through my source files and show the results like in the picture – meaning I could sort them asc/desc by number of characters, number of lines, number of empty lines or size in kB. Unfortunately, the program is finished, but even so I will have to make a second one that is very similar (I will copy the source code and modify it, I won’t write it completely from scratch).

The problem with this program is that when a folder is loaded, all the files in it get loaded and opened in tabs. Then, when searching, the tabs that don’t match the search are hidden, and in the ones where it found something, the occurrences are highlighted. Once the search is over, the hidden tabs return to their place and the highlighting is removed. (this program was originally meant only for viewing txt files in documents, which is why it works this way…)

But this program was mainly supposed to be for finding the best possible file .cs, and could it really handle opening at least 15000 (that’s how many of my own source files .cs I have) of TabPage? So I’m off to make a similar program, which won’t highlight anything and will open only the files that contain what I’m looking for, and it will either keep only the found ones in memory or none at all and load everything from disk 🙂

👻 The domain switched off its wifi for good.

Categories

Leave a Reply