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

GNU Octave icon for .m files with customFileTypes set accordingly #470

Closed
fusion809 opened this issue Dec 29, 2016 · 9 comments
Closed

GNU Octave icon for .m files with customFileTypes set accordingly #470

fusion809 opened this issue Dec 29, 2016 · 9 comments
Assignees
Labels
enhancement Feature requests or suggested improvements. filetype-support New file-extensions or filename patterns associated with an existing icon. new-icon New icons added to the package's icon-font.

Comments

@fusion809
Copy link
Contributor

fusion809 commented Dec 29, 2016

Hi,

I have seen the release notes for 2.0 and while it is definitely an important milestone I noticed that my m files are not given the MATLAB logo or any other appropriate logo (the best logo would be GNU Octave's but if this weren't possible I'd accept the use of MATLAB's logo). Despite this in my ~/.atom/config.cson I have the code snippet:

   customFileTypes:
      "source.octave": [
        ".m"
      ]

So I am here to ask that GNU Octave logo be given to m files when this customFileTypes setting is set.

Thanks for your time,
Brenton

@Alhadis
Copy link
Member

Alhadis commented Dec 29, 2016

Hang on. What's the actual issue here? Not having a more appropriate icon, or no icon appearing whatsoever?

If it's the former, you can use your stylesheet to replace the MATLAB icon with something else.

If it's the latter, try "source.matlab". I noticed octave isn't listed in the rule's scope pattern, so that's probably the next thing I'll fix.

@Alhadis Alhadis self-assigned this Dec 29, 2016
@Alhadis Alhadis added the enhancement Feature requests or suggested improvements. label Dec 29, 2016
@fusion809
Copy link
Contributor Author

Both, I'd prefer the GNU Octave icon to be added, but if it's too challenging to get it (as I don't know if it's in any of the included icon fonts) I'd be willing to settle for octave being added to the scope pattern that gets the MATLAB icon.

@Alhadis
Copy link
Member

Alhadis commented Dec 29, 2016

I can manage both, and I've already found the logo as an SVG. ;p

What I need to know is, does the feature work for you or not? Does it show if you add this to your config?

customFileTypes:
	"source.matlab": [
		"m"
	]

If not, there's a problem. If so, it's only a tiny one.

@fusion809
Copy link
Contributor Author

I'm afraid it doesn't. I even reloaded Atom after changing:

customFileTypes:
	"source.octave": [
		"m"
	]

to:

customFileTypes:
	"source.matlab": [
		"m"
	]

but still I'm seeing this:
screenshot_20161230_020939

@Alhadis
Copy link
Member

Alhadis commented Dec 29, 2016

Does removing the leading dot help?

@fusion809
Copy link
Contributor Author

I'll be, it does. Rofl, sorry didn't realize that fairly minor mistake of mine. It works without the dot for matlab but not octave.

@Alhadis
Copy link
Member

Alhadis commented Dec 29, 2016

Alright, so there're three improvements to be made:

  1. Add support for matching patterns with leading dots
  2. Add a separate language entry for Octave, complete with spiffy logo
  3. Learn to count to three

@Alhadis
Copy link
Member

Alhadis commented Dec 29, 2016

@fusion809 I've fixed the issue with dots, and added octave as an alias for MATLAB. The icon itself will have to wait for now, #471 is more important. Sorry, will get back to this.

@Alhadis
Copy link
Member

Alhadis commented Feb 3, 2017

Octave icon added in v2.0.14.

@Alhadis Alhadis added filetype-support New file-extensions or filename patterns associated with an existing icon. new-icon New icons added to the package's icon-font. labels Oct 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests or suggested improvements. filetype-support New file-extensions or filename patterns associated with an existing icon. new-icon New icons added to the package's icon-font.
Projects
None yet
Development

No branches or pull requests

2 participants