Skip to content

Support %p placeholder for project name in command strings#1977

Open
bbatsov wants to merge 1 commit into
masterfrom
feature/1698-project-name-placeholder
Open

Support %p placeholder for project name in command strings#1977
bbatsov wants to merge 1 commit into
masterfrom
feature/1698-project-name-placeholder

Conversation

@bbatsov

@bbatsov bbatsov commented Feb 15, 2026

Copy link
Copy Markdown
Owner
  • All project command strings (configure, compile, test, run, install, package) now support %p as a placeholder that gets replaced with the project name at execution time
  • The substitution happens in projectile--run-project-cmd so it works for both registered project type commands and user-entered commands
  • Updated docstrings for projectile-register-project-type and projectile--run-project-cmd

Closes #1698

Example usage

(projectile-register-project-type 'my-docker-project '("Dockerfile")
  :compile "docker build -t %p ."
  :run "docker run %p"
  :test "docker exec %p make test")

Closes #1698

All project command strings (configure, compile, test, run, install,
package) now support %p as a placeholder that gets replaced with the
project name at execution time. This is useful for commands like
"docker exec %p make test" where the container name matches the
project name.
@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed soon if no further activity occurs. Thank you for your contribution and understanding!

@github-actions github-actions Bot added the Stale label May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: provide project-name placeholder (e.g. %p) at project-type definitions

1 participant