Page 1 of 1

Print All Files and Details in a project

Posted: Sun Feb 27, 2022 1:53 pm
by C87
Hello PbAll,
I can't see that it has been asked before, but I'd find it handy if I could send to a printer or a file the .pb and .pbi files in a project.
Maybe also an additional field in the Project View to allow a note to be added beyond the Last Modified field. The note to each file could be added stating its purpose?
From time to time files will be replaced by new ones of a different name, or filenames may be changed and it would be helpful to have that information off a key press onto an A4 page. Maybe particularly helpful if the Project is a year or two old and being picked up again.

I see there are a few asking for a different sort order for files but due to the naming system I use, that is never a problem to me. But to help those who have a problem with the file order, maybe a sort on the notes field would give them the option of amending the display order.

Re: Print All Files and Details in a project

Posted: Sun Feb 27, 2022 2:11 pm
by NicTheQuick
What are you doing with printed source codes? Sounds like the year 1990 to me. :D

If you need source control you should consider using Git.

Re: Print All Files and Details in a project

Posted: Sun Feb 27, 2022 5:54 pm
by C87
NicTheQuick wrote: Sun Feb 27, 2022 2:11 pm What are you doing with printed source codes? Sounds like the year 1990 to me. :D

If you need source control you should consider using Git.
No, the last thing I want to do is to print the source code out! It is easier to check it on the screen anyway and PureBasic finds most errors if there are any anyway.

What I thought I said was print the file that are in the project, the *.PB and *.PBI.....Filenames only, not source code. They are only viewed in a small window and if there are 130 or more it is easier to look at a list of them, printed or in a text file viewed onscreen. It would be useful to do that from time to time, was my suggestion.
I can't remember printing out source code even in the 1990s or later, maybe in the very early days but that would have been more like very early 80s.

Re: Print All Files and Details in a project

Posted: Sun Feb 27, 2022 8:18 pm
by infratec
The pbp file is a simple text file in xml.
You can simply open it with a text editor.
Or write a tool which extract out of this xml what you need.

Re: Print All Files and Details in a project

Posted: Mon Feb 28, 2022 8:54 am
by C87
Thanks for that Infratec.......obviously great minds think alike :) .
You won't believe this but yesterday after my reply to Nicthequick, I actually opened a Project.pbp with Notepad++ and thought that it was possible when I read it through. I'll do a routine to extract the files and pop the list onscreen. It should happen in 2 seconds.

Cheers, Will

Re: Print All Files and Details in a project

Posted: Mon Feb 28, 2022 12:18 pm
by NicTheQuick
Sorry for misunderstanding you completely. :?

Re: Print All Files and Details in a project

Posted: Mon Feb 28, 2022 2:48 pm
by C87
No problem Nic. You took me down memory lane though. I'd forgotten about printing out code on continuous paper and writing dBASE and Clipper code with QEdit. Just 24 lines and 80 characters across the screen and maybe just 19 lines showing in the editor. Fields and filenames a maximum of eight and all uppercase. Happy days and long hours.