Print All Files and Details in a project

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
C87
Enthusiast
Enthusiast
Posts: 178
Joined: Mon Jul 17, 2017 7:22 am
Location: Cotswolds England

Print All Files and Details in a project

Post 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.
If it's falling over......just remember the computer is never wrong!
User avatar
NicTheQuick
Addict
Addict
Posts: 1504
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: Print All Files and Details in a project

Post 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.
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
User avatar
C87
Enthusiast
Enthusiast
Posts: 178
Joined: Mon Jul 17, 2017 7:22 am
Location: Cotswolds England

Re: Print All Files and Details in a project

Post 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.
If it's falling over......just remember the computer is never wrong!
infratec
Always Here
Always Here
Posts: 7587
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Print All Files and Details in a project

Post 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.
User avatar
C87
Enthusiast
Enthusiast
Posts: 178
Joined: Mon Jul 17, 2017 7:22 am
Location: Cotswolds England

Re: Print All Files and Details in a project

Post 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
If it's falling over......just remember the computer is never wrong!
User avatar
NicTheQuick
Addict
Addict
Posts: 1504
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: Print All Files and Details in a project

Post by NicTheQuick »

Sorry for misunderstanding you completely. :?
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
User avatar
C87
Enthusiast
Enthusiast
Posts: 178
Joined: Mon Jul 17, 2017 7:22 am
Location: Cotswolds England

Re: Print All Files and Details in a project

Post 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.
If it's falling over......just remember the computer is never wrong!
Post Reply