Page 1 of 1
The directory where I want to save my files
Posted: Thu Apr 28, 2016 5:25 pm
by 357mag
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.
Re: The directory where I want to save my files
Posted: Fri Apr 29, 2016 2:46 am
by jussij
By default Zeus will remember the last used directory.
So these keyboard functions will always return to the last used directory:
There is also this keyboard function that will always open in the same folder as the currently active file:
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