You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for resolving placeholders like ${file}, ${fileDirname}, etc., in the command section of build configurations.
Optionally provide a way to test or validate the command syntax directly in the app.
If applicable, add mockups / screenshots to help present your vision of the feature
Description:
Currently, Acode lacks support for dynamically referencing file paths in custom build commands. This makes it difficult to automate workflows for languages like C++ when compiling and running files. For example, many editors use placeholders such as ${file} for the full path of the currently open file, ${fileDirname} for the file's directory, and ${fileBasenameNoExtension} for the file name without the extension.
Without this functionality, users have to hard-code file paths into commands, which is not practical when working with multiple files.
Example Use Case:
For C++ compilation and execution, the following dynamic command should work:
${file} refers to the full path of the currently open file.
${fileDirname} refers to the directory of the file.
${fileBasenameNoExtension} refers to the file name without the extension.
This feature is essential for users who rely on Acode for programming on mobile devices.
Current Behavior:
When attempting to use placeholders (e.g., $HOME, ${file}), Acode does not resolve these dynamically. Instead, it either throws an error or treats them as literal strings.
Expected Behavior:
Acode should support the following placeholders:
${file}: Full path of the file.
${fileDirname}: Directory of the file.
${fileBasename}: File name with the extension.
${fileBasenameNoExtension}: File name without the extension.
Proposed Solution:
Add support for resolving placeholders like ${file}, ${fileDirname}, etc., in the command section of build configurations.
Optionally provide a way to test or validate the command syntax directly in the app.
The text was updated successfully, but these errors were encountered:
Check for existing issues
Describe the feature
Proposed Solution:
Add support for resolving placeholders like ${file}, ${fileDirname}, etc., in the command section of build configurations.
Optionally provide a way to test or validate the command syntax directly in the app.
If applicable, add mockups / screenshots to help present your vision of the feature
Description:
Currently, Acode lacks support for dynamically referencing file paths in custom build commands. This makes it difficult to automate workflows for languages like C++ when compiling and running files. For example, many editors use placeholders such as ${file} for the full path of the currently open file, ${fileDirname} for the file's directory, and ${fileBasenameNoExtension} for the file name without the extension.
Without this functionality, users have to hard-code file paths into commands, which is not practical when working with multiple files.
Example Use Case:
For C++ compilation and execution, the following dynamic command should work:
{
"extension": "cpp",
"name": "C++",
"command": "g++ '${file}' -o '${fileDirname}/${fileBasenameNoExtension}' && '${fileDirname}/${fileBasenameNoExtension}'"
}
Here:
${file} refers to the full path of the currently open file.
${fileDirname} refers to the directory of the file.
${fileBasenameNoExtension} refers to the file name without the extension.
This feature is essential for users who rely on Acode for programming on mobile devices.
Current Behavior:
When attempting to use placeholders (e.g.,$HOME, $ {file}), Acode does not resolve these dynamically. Instead, it either throws an error or treats them as literal strings.
Expected Behavior:
Acode should support the following placeholders:
${file}: Full path of the file.
${fileDirname}: Directory of the file.
${fileBasename}: File name with the extension.
${fileBasenameNoExtension}: File name without the extension.
Proposed Solution:
Add support for resolving placeholders like ${file}, ${fileDirname}, etc., in the command section of build configurations.
Optionally provide a way to test or validate the command syntax directly in the app.
The text was updated successfully, but these errors were encountered: