-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Allow setting default file type for files without extension #12766
Comments
I made some work on this a while ago but didn't have to finish it yet. See this commit: petetnt@b069d3e Things that are missing:
|
Well been wanting to help with Brackets since it's my usual IDE but not sure if if I can handle this issue. I'll try and give it a shot anyway. |
I would love to work on this issue as well if that's ok. |
@mpettaw2 of course! @alanbares have you made much progress? Could you perhaps coordinate together? 👍 |
@petetnt Not really, I feel completely lost tackling the issue :(. |
@ficristo maybe not need for this feature,, but it would be a great addition on it's own and would be a good starting point for this feature too. |
so i found the getFilenameWithoutExtension function. i was going to change that instead of the getFileExtension because I didn't want change the file before it got written to the program. anyway i was thinking of something like
just wanted to see if that was ok before i send it out.... |
@mpettaw2 the getFilenameWithoutExtension function return filenames for directories as well and .bat won't be suitable extension for a directory. Also, this method is supposed to return only the filename after stripping the extension (if any), so adding .bat to a file without extension for returning as filename doesn't seem feasible. Please let me know if I'm wrong. |
Hello, |
That's great! See the article How to hack on Brackets to get started with the Brackets codebase. If you have any questions, feel free to post them here! We also have a Slack channel for day-to-day communication. (You can join by sending a mail to admin@brackets.io with the subject line |
So, a little confused on this issue, by looking at #11560 it seems like the intended behaviour for extension-less files is:
Currently what happens is:
Unsure if we need to resolve the mapping being ignored, or if the behaviour needs to be similar to #11560 |
Why is this bug still open ? |
Prerequisites
Debug \ Reload Without Extensions
?Description
Setting the default language for files with no file extension has no effect.
Steps to Reproduce
Expected behavior: The file-type is Bash and it is syntax highlighting the content
Actual behavior: The file-type is Text and there is no syntax highlighting
Versions
OS X Yosemite
Release 1.7 build 1.7.0-16898 (release b0a363b)
The text was updated successfully, but these errors were encountered: