[Done since PB6.00] Close Empty <New>* file without question?

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Axolotl
Enthusiast
Enthusiast
Posts: 446
Joined: Wed Dec 31, 2008 3:36 pm

[Done since PB6.00] Close Empty <New>* file without question?

Post by Axolotl »

Hi there,

a new created file (TAB: <New>) is closed by click on Tab-X without the question dialog "This new file has not been saved yet. Do you want to save it now?" -> That is perfect.

Unfortunately if you changed the context and erased it afterwards the question dialog (see above) shows up.

My little Idea for improvement: With an empty file (TAB: <New>*) don't show the question dialog.

Thanks in advance.
Last edited by Axolotl on Fri Aug 25, 2023 12:41 pm, edited 1 time in total.
Mostly running PureBasic <latest stable version and current alpha/beta> (x64) on Windows 11 Home
User avatar
kenmo
Addict
Addict
Posts: 1967
Joined: Tue Dec 23, 2003 3:54 am

Re: Close Empty <New>* file without question?

Post by kenmo »

+1

Makes sense. "Do you want to save this new, totally-empty source?" does seem unnecessary.

I just wrote a patch now, and will submit via GitHub. 8)
Axolotl
Enthusiast
Enthusiast
Posts: 446
Joined: Wed Dec 31, 2008 3:36 pm

Re: Close Empty <New>* file without question?

Post by Axolotl »

Hi kenmo,

whow, thats fast. I appreciate your support on the IDE really. Thanks.
Mostly running PureBasic <latest stable version and current alpha/beta> (x64) on Windows 11 Home
User avatar
kenmo
Addict
Addict
Posts: 1967
Joined: Tue Dec 23, 2003 3:54 am

Re: Close Empty <New>* file without question?

Post by kenmo »

You have good timing, I am getting back to work on the PB IDE again.

Also this was a request I agree with, and easy to implement!

Submitted as PR #146
https://github.com/fantaisie-software/p ... c/pull/146
BarryG
Addict
Addict
Posts: 3320
Joined: Thu Apr 18, 2019 8:17 am

Re: Close Empty <New>* file without question?

Post by BarryG »

kenmo wrote:I am getting back to work on the PB IDE again.
Could you maybe implement this, then? -> viewtopic.php?f=18&t=76794

It's a very simple thing to do. Thanks if you can. If not, would you be able to one day write a tutorial on editing the IDE, so that people like me can do it? Thanks.
Axolotl
Enthusiast
Enthusiast
Posts: 446
Joined: Wed Dec 31, 2008 3:36 pm

Re: Close Empty <New>* file without question?

Post by Axolotl »

this request made it in the PB 6.00 BETA.
I was really suprised, because of the discussions on github.
Anyway. I like this. Suits my working behavior. :)
Thank you kenmo for implementing this.
Mostly running PureBasic <latest stable version and current alpha/beta> (x64) on Windows 11 Home
Post Reply