Hi all,
for easier navigating with throught tex file and pdf with pdfsync, I want to write one sentence per line in my tex document.
I wrote the a snippet inserting '.\n' with the key equivalent . (<dot>). As I want it to apply to and only to the scope "text.tex.latex", I had to set the scope selector to:
text.tex.latex - string - source - meta - entity - support - comment
to avoid to insert a line in lists, comments, etc... Although it works well, I'm pretty sure there is a simpler scope selector for this task.
If not, here is a feature request for TM2: Alow more complex scope selection, with wildcards/jokers/regexps, or anything else... please ;-)
Xavier CAMBAR
On 2. Jun 2007, at 15:35, Xavier Cambar wrote:
[...] text.tex.latex - string - source - meta - entity - support - comment
to avoid to insert a line in lists, comments, etc... Although it works well, I'm pretty sure there is a simpler scope selector for this task.
Well, you want it to say text.tex.latex except these six sub- contexts, so having to specify seven scopes seems logical.
If not, here is a feature request for TM2: Alow more complex scope selection, with wildcards/jokers/regexps, or anything else... please ;-)
Asking for more complexity is a rare request ;)
I am not really sure though how you imagine your selector can be simplified. There will be syntax to allow you to say “this scope not followed by any other scope”, but that won’t do it for you, since you’re probably fine with the meta scope, so we end up with the explicit list.
Le 5 juin 07 à 09:41, Allan Odgaard a écrit :
I am not really sure though how you imagine your selector can be simplified. There will be syntax to allow you to say “this scope not followed by any other scope”, but that won’t do it for you, since you’re probably fine with the meta scope, so we end up with the explicit list.
Let's say I want it to work within and only within text.tex.latex (e.g. doesn't work within "text.tex.latex string.other.ath.tex" ). Something like "text.tex.latex - * "
Best, Xavier Cambar
On 5. Jun 2007, at 13:52, Xavier Cambar wrote:
[...] that won’t do it for you, since you’re probably fine with the meta scope [...]
Let's say I want it to work within and only within text.tex.latex (e.g. doesn't work within "text.tex.latex string.other.ath.tex" ). Something like "text.tex.latex - * "
As said above, it will be too exclusive, since for example many begin/ end blocks are scoped as meta.*.
Le 5 juin 07 à 15:15, Allan Odgaard a écrit :
[...] that won’t do it for you, since you’re probably fine with the meta scope [...]
Let's say I want it to work within and only within text.tex.latex (e.g. doesn't work within "text.tex.latex string.other.ath.tex" ). Something like "text.tex.latex - * "
As said above, it will be too exclusive, since for example many begin/end blocks are scoped as meta.*.
OK, I get it now!
Many thanks, Xavier Cambar