-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Macro for selected files in the project explorer #953
Comments
It seems that the initial set of command macros that have been provided are somewhat limited right now. Let's go ahead and define a wider list of macros for inclusion.
|
If this is implemented, will be a big ergonomic enhancement for language scripting users command: cd /projects/python && PYTHONUNBUFFERED=1 python ${current.project.file} |
@juampe - we are going to include the analysis and implementation of many of these into our next sprint. |
better |
Proposed new specification:
|
Hi, |
Sure - please propose a syntax that makes sense given the specification above. |
wont work together (no chance to resolve), lets remove |
For a subject - yes, It is 2 different areas - editor and tree, so I think it should be like:
|
Updated syntax. @vzhukovskii - also since we are renaming some existing parameters, please still support the OLD parameters so that upgrades will not have migration issues.
|
@TylerJewell as for:
what should we provide if we'll have more than one selected file? |
Provide comma separated list of all files selected. |
@ashumilova - a customer today asked for the ability to configure a custom working directory for commands of a custom type. We provide this field for maven commands, but not custom commands. Is there value in adding this? |
@ashumilova @vzhukovskii - can you talk about where this issue is in the priority list for the upcoming sprints? We are coming up with additional macros - that each show some simple stuff. So want us to think about when this gets scheduled. |
#953: Move command property value providers to core API
@vzhukovskii Commit today without the following. Discuss with Tyler later on how to do the above removed items. |
Added issue for host macros - #2230 |
Created new macros to provide various information from basic part. Includes: ${editor.current.file.name} -- Currently selected file in editor with context ${editor.current.file.path} -- Absolute path to the selected file in editor with context ${editor.current.file.relpath} -- Path relative to the /projects folder in editor with context ${editor.current.project.name} -- Project name of the file currently selected in editor with context ${editor.current.project.type} -- Project type of the file currently selected in editor with context ${explorer.current.file.name} -- Currently selected file in project tree ${explorer.current.file.path} -- Absolute path to the selected file in project tree ${explorer.current.file.relpath} -- Path relative to the /projects folder in project tree ${explorer.current.project.name} -- Project name of the file currently selected in explorer ${explorer.current.project.type} -- Project type of the file currently selected in explorer ${server.<name>} -- Returns protocol, hostname and port of an internal server ${server.<name>.protocol} -- Returns protocol of a server registered by name ${server.<name>.hostname} -- Returns hostname of a server registered by name ${server.<name>.port} -- Returns port of a server registered by name ${workspace.name} -- Returns the name of the workspace
…changes eclipse-che#953: Move command property value providers to core API
eclipse-che#953: Extend macro list
It would be handy to have a macro that points to the current selected file (multiple files could be separated by a comma) in the package explorer:
e.g. ${explorer.selected}
https://eclipse-che.readme.io/docs/commands#macros
The text was updated successfully, but these errors were encountered: