What was the problem you were having with config paths that led you to change that line?
I'm trying to open the editor loading a specific project-config and opening a specific file.
From reading the code, I'm thinking the intended way is to have the arguments be something like
However, the way the config path is currently written, I don't see how a valid project_config_path can be constructed.
What I did seemed the simplest/most logical to me, and seems to match the fact that the projects folder has an example config file in it.
But I wondered if maybe you intended to extract the project name from the folder and construct the project_config_path with something like config_path := tprint("%/%.focus-config", projects_dir, project); similar to what's done above.
We don't support arguments like focus </path/to/project> </path/to/file>. Please read the docs here on what options there are https://focus-editor.dev/docs.html
From https://github.com/focus-editor/focus/pull/457
I'm trying to open the editor loading a specific project-config and opening a specific file. From reading the code, I'm thinking the intended way is to have the arguments be something like
focus C:/Jai/projects/project_name C:/Jai/projects/project_name/src/main.jai
However, the way the config path is currently written, I don't see how a valid project_config_path can be constructed. What I did seemed the simplest/most logical to me, and seems to match the fact that the projects folder has an example config file in it.
But I wondered if maybe you intended to extract the project name from the folder and construct the project_config_path with something like
config_path := tprint("%/%.focus-config", projects_dir, project);
similar to what's done above.