-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support .aeproj
projects
#222
Comments
Has there been any discussion of the format AuroraEditor's One of my biggest gripes with Xcode is the format of the Perhaps |
I don't believe there's been any talk about implementing this in the near future, as the team is quite busy with other things at the moment. |
At the look of it, it would have been in a json format based on the idea that @0xWDG had. If you think we should use toml or yaml for the Also if you wanna start on this your more than welcome since majority of us are busy with totally other parts of the editor at the moment. |
I started with a JSON because it's so easily decodable by swift. I think the best option is json or yaml / toml. |
Should |
i would think that if we’re going that route, the only file system data that would be stored is say the order of files within a folder, so that ae doesn’t need a full index of the file system |
I think only saving the files in the particular order (or only the directories for what is explained above). You want to re-index (file contents) on every opening of a project (like VSCode and others) does as well. we must keep (especially for the first versions) it as simple as needed |
After playing around for a while, I thought of an interesting hierarical format which might have some promise. This format does not require files and directories be explicitly listed unless they need specific configuration, and its hierarchal nature allows some configuration defined in a higher scope to propagate downward. These features would make for small, manageable project files. Keys prefixed with ---
# Aurora Editor Project
$displayName: Aurora Editor
$buildSystem: xcode
$configVersion: "0.1"
$sortBy: fileType
... Now let's say I would like to sort alphabetically, but just inside the ---
# Aurora Editor Project
$displayName: Aurora Editor
$buildSystem: xcode
$configVersion: "0.1"
$sortBy: fileType
AuroraEditor/Base:
$sortBy: alphabetical
... As Let's consider a more complex example: ---
# Aurora Editor Project
$displayName: Aurora Editor
$buildSystem: xcode
$configVersion: "0.1"
$sortBy: fileType
AuroraEditor:
Base:
$sortBy: alphabetical
About: { $hidden: true }
Editor/Extensions: # explicit ordering of files within directory
- CodeEditor+Position.swift
- ScrollView.swift
TerminalEmulator: { $sortBy: dateModified }
Application: { $order: descending, $showMinimap: false }
CodeLanguages: { $sortBy: dateModified, $order: ascending }
Services: { $hidden: true }
... Note that some configuration properties, such as |
I like this approach, it follows a similar approach to that of |
Using this format, we should be able to decode the I would like to share another idea I had. I'm not sure which is better—I think both have pros and cons. Instead of defining the configuration hierarchy in the main project file, we could use the filesystem itself. Using this approach, there would still be a ---
# Aurora Editor Project
displayName: Aurora Editor
buildSystem: xcode
configVersion: "0.1"
sortBy: fileType
... Now let's say I would like to change the sorting method specifically for the ---
# AuroraEditor/Application/.aurora
sortBy: dateModified
... This approach is similar how macOS uses |
Support
.aeproj
projectsFor later, and out of scope for this issue, AuroraEditor needs to actually open/handle the project file.
The text was updated successfully, but these errors were encountered: