Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Don't spell check image file name #21

Open
X-G opened this issue Mar 15, 2017 · 4 comments
Open

Don't spell check image file name #21

X-G opened this issue Mar 15, 2017 · 4 comments

Comments

@X-G
Copy link

X-G commented Mar 15, 2017

When insert a image, the spell check will check the image file name. See picture.

image

@X-G
Copy link
Author

X-G commented Mar 15, 2017

also the biboptions.

image

@yitzchak
Copy link
Contributor

Thanks for the feature request!

Unfortunately, this isn't possible using the current architecture because language-latex doesn't contain explicit grammar scopes for \includegraphics and \biboptions.

I'll leave the issue open for now in case I get around to doing a rewrite which makes it possible.

@mdering
Copy link

mdering commented Mar 21, 2017

Can I piggyback off this and ask if it is possible to ignore parameters for tabular and figure environments? For example
\begin{figure}[tp] always flags tp. the same with tabular
\begin{tabular}{cccccc} inevitably gets an error. this is much more annoying because every table is different. Can anything be done about either of these things? For that matter, is there a place I can view what grammar scope a specific section of text is?

@yitzchak
Copy link
Contributor

@mdering The scope for figure/table is .text.tex.latex .meta.function.environment.general.latex so there is probably is not much to go on there.

In the developer console I usually use the following to extract the current grammar scope.

atom.workspace.getActiveTextEditor().scopeDescriptorForBufferPosition(atom.workspace.getActiveTextEditor().getCursorBufferPosition()).getScopeChain()

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants