atom-goto-definition icon indicating copy to clipboard operation
atom-goto-definition copied to clipboard

Detect language based on editor current syntax mode

Open kirly-af opened this issue 7 years ago • 4 comments

It would be great it the plugin could rely on the editor's mode to know which language is used.

Let's say you're editing a JS file without extension, the plugin currently can't detect JS even though the editor is in JS syntax mode.

kirly-af avatar Apr 14 '17 08:04 kirly-af

If user use some language enhanced syntax package, we can't know it's real language. Some like Magic Python language-javascript-better and so on. The file extension is more general way.

faceair avatar Apr 14 '17 08:04 faceair

See #9

faceair avatar Apr 14 '17 09:04 faceair

I am not saying it should exclusively rely on the syntax, but it could be the "last try" before giving up with the "language not supported" message. I don't think that'd a lot of work to implement.

Concerning #9, I'm afraid my Chinese skills are below your expectations 😜

kirly-af avatar Apr 14 '17 09:04 kirly-af

Maybe this is a good solution, I will try.

faceair avatar Apr 14 '17 09:04 faceair