Describe the bug
Terminal can be configured to execute own commands from context menu 'Show in Local Terminal' on a tree item in the Eclipse Project Explorer tree. Though, the name of selected item cannot be handed over to the called command since the Eclipse variable ${resource_name} is not read.
To Reproduce
Steps to reproduce the behavior:
Go to 'Preferences->Terminal->Local Termminal'
Click on 'Add...' of panel "Show In ..." Custom Entries'
In Dialog 'Edit External Executable' enter
Name: 'Ansible_Playbook'
Path: '/usr/local/bin/ansible-playbook'
Arguments: '-K ${resource_name}'
Click 'OK'
Click 'Apply and Close'
Select Playbook YAML-file in Project Tree
Right click on file to open context menu
Navigate to 'Show in Local Terminal->Ansible_Playbiook'
Click on 'Ansible_Playbook'
Terminal window opens with error message:
'ERROR! the playbook: ${resource_name} could not be found'
Expected behavior
The Ansible Playbook file selected in the Project Explorer tree
is executed with the defined command
Screenshots
Version Information (please complete the following information):
macOS 12.7.2 (Intel)
Eclipse IDE for Enterprise Java and Web Developers
Version: 2023-12 (4.30.0)
Build id: 20231201-2043
Eclipse CDT TM Terminal Control Version: 11.4.0.202311142253
Eclipse CDT Terminal (Console) View Version: 11.4.0.202311142324
Eclipse CDT TM Terminal Version: 11.4.0.202309142347
Additional context
Originally I had tried to solve this use-case (Ansible Deployment) by an External Tools Configuration. Running it this way, I will not get an interactive shell, which leads to failure, if an Ansible play expects an input. The custom command feature in the Terminal would be a great solution for this.
Describe the bug Terminal can be configured to execute own commands from context menu 'Show in Local Terminal' on a tree item in the Eclipse Project Explorer tree. Though, the name of selected item cannot be handed over to the called command since the Eclipse variable ${resource_name} is not read.
To Reproduce Steps to reproduce the behavior:
Expected behavior The Ansible Playbook file selected in the Project Explorer tree is executed with the defined command
Screenshots
![Terminal_Command_03](https://github.com/eclipse-cdt/cdt/assets/48992893/96736e46-5f20-4407-b371-309b13e062e8)
Version Information (please complete the following information): macOS 12.7.2 (Intel) Eclipse IDE for Enterprise Java and Web Developers Version: 2023-12 (4.30.0) Build id: 20231201-2043 Eclipse CDT TM Terminal Control Version: 11.4.0.202311142253 Eclipse CDT Terminal (Console) View Version: 11.4.0.202311142324 Eclipse CDT TM Terminal Version: 11.4.0.202309142347
Additional context Originally I had tried to solve this use-case (Ansible Deployment) by an External Tools Configuration. Running it this way, I will not get an interactive shell, which leads to failure, if an Ansible play expects an input. The custom command feature in the Terminal would be a great solution for this.