Skip to content
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

FR: add variables for current file #223

Closed
ghost opened this issue Mar 29, 2024 · 2 comments
Closed

FR: add variables for current file #223

ghost opened this issue Mar 29, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request ready for release

Comments

@ghost
Copy link

ghost commented Mar 29, 2024

Btw, in Geany, %f is the name of the current file you are working on and %e is the name of that file but without extension. Is there something equivalent in ecode?

Ohh, not it's not because it's designed to call directly to a build script. But it makes total sense to give you access to that. I'll add it! If you expand the advanced options you'll see the default custom variables available (${project_root}, ${build_type}, ${os}, ${nproc}). And you can add any custom variable, but this one is contextual so I'll have to add it myself.

Originally posted by @SpartanJ in #155 (reply in thread)

@SpartanJ SpartanJ self-assigned this Mar 30, 2024
@SpartanJ SpartanJ added the enhancement New feature or request label Mar 30, 2024
@SpartanJ
Copy link
Owner

SpartanJ commented Apr 7, 2024

Added predefined variables for build:
${current_doc}: The last or current focused document path.
${current_doc_name}: The last or current focused document name (without extension).

@ghost
Copy link
Author

ghost commented Apr 17, 2024

Note: ${current_doc} is absolute path. In Geany, %f is only the file name (with extension).

p/s: just to note the difference between two code editors.

@SpartanJ SpartanJ closed this as completed May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ready for release
Projects
None yet
Development

No branches or pull requests

1 participant