JunoLab / atom-latex-completions

Easy Unicode input for Atom
MIT License
40 stars 7 forks source link

Defining aliases #1

Closed laughedelic closed 9 years ago

laughedelic commented 9 years ago

Would be nice to be able to define aliases for some symbols or override prefixes. For example, I use these shortcuts:

{
  "ox": "⊗",
  "o+": "⊕",
  "to": "→",
  "e": "ɛ",
  ...
}

Probably a setting with a path to some additional json with these definitions would help..

MikeInnes commented 9 years ago

How does 69842725462d29d724270659f4672f397596ecfd look to you? If it's what you were going for I'll push a release.

MikeInnes commented 9 years ago

Hmm looks like the selector config isn't working though

MikeInnes commented 9 years ago

Fixed

laughedelic commented 9 years ago

@one-more-minute :+1: thanks! yes that's what I was thinking about. I would ask for one more option: to be able to turn on/off the default list of completions. For example, I want to copy some part of it (only the symbols I need) to the custom json and turn off the rest.

laughedelic commented 9 years ago

Also, not so essential, but still useful: being able to set several custom files (same setting, just list then comma separated). Then you can store different sets of symbols (math, greek, strange arrows, etc.) in different files (easier to maintain).

MikeInnes commented 9 years ago

Done & done.

laughedelic commented 9 years ago

wonderful! thanks a lot! :+1:

MikeInnes commented 9 years ago

No problem!

capn-freako commented 2 years ago

Could you provide an example of the necessary syntax for a custom completions file, please?

Also, should I use DOS file naming when running under Windows?

Thanks!