The directory where I want to save my files

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
357mag
Posts: 18
Joined: Sun Apr 24, 2016 9:48 pm

The directory where I want to save my files

Post by 357mag » Thu Apr 28, 2016 5:25 pm

Just wondering if there is anything in the menus that allows me to choose the directory (drive and folder) where I want Zeus to save my .cpp source files? I didn't see anything when I looked, so I assume that when I tell Zeus to save my first .cpp file, I choose where I want to save it and from there on Zeus will remember that location.

That's what I'm assuming.

jussij
Site Admin
Posts: 2488
Joined: Fri Aug 13, 2004 5:10 pm

Re: The directory where I want to save my files

Post by jussij » Fri Apr 29, 2016 2:46 am

By default Zeus will remember the last used directory.

So these keyboard functions will always return to the last used directory:

Code: Select all

FileOpen
FileSaveAs
There is also this keyboard function that will always open in the same folder as the currently active file:

Code: Select all

FileOpenEx
But you could also write a Zeus macro scripts to control the behaviour.

This macro function lets you display the file open dialog in a specific folder:

Code: Select all

string file_select_dialog([string directory] [,string filter name, filter string extension])
This macro function lets you save the currently active document to a specific file:

Code: Select all

int save_current_to_file(string file_name, [bool return_cursor_offset = 1], [UNIX = 0, Windows = 1, OSX = 2] )
This macro function lets you save the currently active document to a string buffer:

Code: Select all

string, int  save_current_to_buffer([char eol])
From there you could then use the chosen scripting language to save that string to any file name in any directory.

Cheers Jussi

Post Reply
kuchnie warszawa opinie

Who is online

Users browsing this forum: No registered users and 4 guests