[IDE] Compiled file (executable) name

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

[IDE] Compiled file (executable) name

Post by Inf0Byt3 »

Two suggestions regarding the executable creation / compilation:

Currently, each time we select 'Create executable' from the menu, a dialog to select the output filename appears. This dialog also has a filter for the file extension, but it seems that the extension gets added automatically to the output file. This is bad because i'd want for example to create an output file called libname.so.1.0.0 but PB creates libname.so.1.0.0.so. It would be nice if PB remembered the name entered for the compiled file and would not append automatically an extension when not needed.

Another thing that would be nice is the addition of a keyboard shortcut for the "Build all targets" option, just like we have F5 for Compile/Run. - never mind this one (thanks kenmo :mrgreen: )
Last edited by Inf0Byt3 on Wed Apr 08, 2015 1:22 pm, edited 1 time in total.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
User avatar
kenmo
Addict
Addict
Posts: 2033
Joined: Tue Dec 23, 2003 3:54 am

Re: [IDE] Compiled file (executable) name

Post by kenmo »

Inf0Byt3 wrote:... This dialog also has a filter for the file extension, but it seems that the extension gets added automatically to the output file. This is bad because i'd want for example to create an output file called libname.so.1.0.0 but PB creates libname.so.1.0.0.so...
I think that is the way most (Windows) save dialogs work, unless "All Files (*.*)" is selected, then no extension will be added. BUT it seems like the IDE always defaults to "Executable" so you have to select "All Files" every time... maybe the IDE should remember your filter selection?
Inf0Byt3 wrote:Another thing that would be nice is the addition of a keyboard shortcut for the "Build all targets" option, just like we have F5 for Compile/Run.
There is no default shortcut, but we have the option to create one in the preferences, I use Ctrl+Shift+B.
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Re: [IDE] Compiled file (executable) name

Post by Inf0Byt3 »

kenmo wrote: I think that is the way most (Windows) save dialogs work, unless "All Files (*.*)" is selected, then no extension will be added. BUT it seems like the IDE always defaults to "Executable" so you have to select "All Files" every time... maybe the IDE should remember your filter selection?
Yes, that would solve it elegantly.
kenmo wrote: There is no default shortcut, but we have the option to create one in the preferences, I use Ctrl+Shift+B.
The IDE is much more flexible than I thought. Somehow it slipped past me that we had this option. Thanks for the help.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
User avatar
kenmo
Addict
Addict
Posts: 2033
Joined: Tue Dec 23, 2003 3:54 am

Re: [IDE] Compiled file (executable) name

Post by kenmo »

Inf0Byt3 wrote:The IDE is much more flexible than I thought. Somehow it slipped past me that we had this option. Thanks for the help.
I made the exact same mistake before :) http://www.purebasic.fr/english/viewtop ... 18&t=45783
Post Reply