ide - simple 'reload' entry for the file menu

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
#NULL
Addict
Addict
Posts: 1497
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

ide - simple 'reload' entry for the file menu

Post by #NULL »

..to update a sourcecode / reload from disk (to discard changes is to be confirmed by the user).
User avatar
kenmo
Addict
Addict
Posts: 2033
Joined: Tue Dec 23, 2003 3:54 am

Post by kenmo »

Yep, good idea, though I'd call it 'Revert'
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Post by tinman »

I'd also like to see it keep a watch on the files for any external changes and prompt you whether you wanted to reload the file or not.

Possibly also have an option to configure this (prompt or always reload).
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

kenmo wrote:Yep, good idea, though I'd call it 'Revert'
But that's not what it does.

Revert = discard changes since last save
Reload = discard changes and load from disk

The difference becomes apparent when you remember that other programs can change the file.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

Note that 'revert' doesn't help much if you do a compile... as the source is overwritten (which is why I keep numbered backups).
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
UserOfPure
Enthusiast
Enthusiast
Posts: 469
Joined: Sun Mar 16, 2008 9:18 am

Post by UserOfPure »

@blueznl: You can disable "Save before compile" and therefore don't need any "Revert" option.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

Well, I wasn't asking for a revert option, was I? :-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
UserOfPure
Enthusiast
Enthusiast
Posts: 469
Joined: Sun Mar 16, 2008 9:18 am

Post by UserOfPure »

blueznl wrote:Well, I wasn't asking for a revert option, was I? :-)
It was implied by your comment of:
blueznl wrote:Note that 'revert' doesn't help much if you do a compile
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

UserOfPure wrote:
blueznl wrote:Well, I wasn't asking for a revert option, was I? :-)
It was implied by your comment of:
blueznl wrote:Note that 'revert' doesn't help much if you do a compile
That comment implies that he's not looking for revert, not that that he's looking for it.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

In fact, I don't WANT a revert, as I don't NEED it. It may be helpful to others though.
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

blueznl wrote:In fact, I don't WANT a revert, as I don't NEED it. It may be helpful to others though.
You mean RELOAD!
Post Reply