de-jcup / eclipse-jenkins-editor

Jenkins Editor - A eclipse plugin to edit "Jenkinsfile" files
https://marketplace.eclipse.org/content/jenkins-editor
Apache License 2.0
45 stars 5 forks source link

feature request: add support for Jenkinsfile* #97

Open gmccraw opened 2 years ago

gmccraw commented 2 years ago

Excellent Jenkinsfile editor. It would excellenter if it supported named Jenkinsfile, .jenkins, *.jenkinsfile. Thank you for your consideration.

de-jcup commented 2 years ago

Please refer to https://github.com/de-jcup/eclipse-jenkins-editor/wiki/FAQ#how-can-i-open-other-files-than-jenkinsfile-with-jenkins-editor . Here I described which file names and endings are supported and also how to customize file associations. Hope this helps.

alexdymov commented 1 year ago
  • "Jenkinsfile*" will not work because of the eclipse architecture mechanism,

AFAIK the limitation is only applied to editor file associations Window -> Preferences -> General -> Editors -> File Associations, but there is another way to create an association: using General -> Content Types that I use to manually setup support for Jenkinsfile* files.

Here is how it looks: ss+(2023-02-11+at+04 06 47)

Steps to reproduce:

  1. Select the Text tree item in Content types:
  2. Press the Add Child button
  3. Enter the name Jenkinsfile
  4. Add Jenkinsfile* in File associations:
  5. Add Jenkins editor in Associated editors:
  6. Apply

I believe the Content Types way may be implemented instead of the File Associations way of binding the editor in the initial plugin configuration.