Skip to content

Commit

Permalink
add more symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
implmnt committed Jul 31, 2019
1 parent 0bb2e16 commit eb4bdae
Show file tree
Hide file tree
Showing 4 changed files with 142 additions and 12 deletions.
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,29 @@
# greek-symbols
Greek symbol live templates for IDEA
Greek symbols plugin for IntelliJ IDEA

| Abbr |Letter| Name |
|------|------|---------|
| aa | α | Alpha |
| bb | β | Beta |
| gg | γ | Gamma |
| dd | δ | Delta |
| ee | ε | Epsilon |
| zz | ζ | Zeta |
| eta | η | Eta |
| tt | θ | Theta |
| ii | ι | Iota |
| kk | κ | Kappa |
| ll | λ | Lambda |
| mu | μ | Mu |
| nu | ν | Nu |
| xi | ξ | Xi |
| oo | ο | Omicron |
| pi | π | Pi |
| rr | ρ | Rho |
| ss | σ | Sigma |
| tau | τ | Tau |
| uu | υ | Upsilon |
| pp | φ | Phi |
| xx | χ | Chi |
| psi | ψ | Psi |
| ww | ω | Omega |
10 changes: 5 additions & 5 deletions resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<idea-plugin>
<id>im.plmnt.plugin.greek</id>
<name>Greek symbols</name>
<version>1.0</version>
<vendor email="georgy.davityan@gmail.com" url="https://github.com/implmnt/greek-symbols">plmnt.im</vendor>
<version>2.0</version>
<vendor email="georgy.davityan@gmail.com" url="http://plmnt.im/">Georgy Davityan</vendor>

<description><![CDATA[
Live Templates for Greek symbols<br>
Show details in Preferences -> Editor -> Live Templates -> Greek.
View details in Preferences -> Editor -> Live Templates -> Greek.
]]></description>

<change-notes><![CDATA[
<strong>v1.0.0</strong><br>
<li>Live Templates for Greek symbols.</li>
<strong>v2.0.0</strong><br>
<li>More symbols.</li>
]]>
</change-notes>

Expand Down
109 changes: 107 additions & 2 deletions resources/templates.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,120 @@
<templateSet group="Greek">
<template name="aa" value="α" description="Greek alpha" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
</template>
<template name="bb" value="β" description="Greek beta" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
</template>
<template name="gg" value="γ" description="Greek gamma" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
</template>
<template name="dd" value="δ" description="Greek delta" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
</template>
<template name="ee" value="ε" description="Greek epsilon" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
</template>
<template name="zz" value="ζ" description="Greek zeta" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
</template>
<template name="eta" value="η" description="Greek eta" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
</template>
<template name="tt" value="θ" description="Greek theta" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
</template>
<template name="ii" value="ι" description="Greek iota" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
</template>
<template name="kk" value="κ" description="Greek kappa" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
</template>
<template name="ll" value="λ" description="Greek lambda" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
</template>
<template name="aa" value="α" description="Greek alpha" toReformat="false" toShortenFQNames="true">
<template name="mu" value="μ" description="Greek mu" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
</template>
<template name="bb" value="β" description="Greek beta" toReformat="false" toShortenFQNames="true">
<template name="nu" value="ν" description="Greek nu" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
</template>
<template name="xi" value="ξ" description="Greek xi" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
</template>
<template name="oo" value="ο" description="Greek omicron" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
</template>
<template name="pi" value="π" description="Greek pi" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
</template>
<template name="rr" value="ρ" description="Greek rho" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
</template>
<template name="ss" value="σ" description="Greek sigma" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
</template>
<template name="tau" value="τ" description="Greek tau" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
</template>
<template name="uu" value="υ" description="Greek upsilon" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
</template>
<template name="pp" value="φ" description="Greek phi" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
</template>
<template name="xx" value="χ" description="Greek chi" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
</template>
<template name="psi" value="ψ" description="Greek psi" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
</template>
<template name="ww" value="ω" description="Greek omega" toReformat="false" toShortenFQNames="true">
<context>
<option name="OTHER" value="true" />
</context>
Expand Down
6 changes: 2 additions & 4 deletions src/im/plmnt/plugin/greek/GreekTemplates.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ package im.plmnt.plugin.greek
import com.intellij.codeInsight.template.impl.DefaultLiveTemplatesProvider

class GreekTemplates extends DefaultLiveTemplatesProvider {

def getDefaultLiveTemplateFiles: Array[String] = Array("templates")

def getHiddenLiveTemplateFiles: Array[String] = Array.empty
def getDefaultLiveTemplateFiles = Array("templates")
def getHiddenLiveTemplateFiles = Array.empty
}

0 comments on commit eb4bdae

Please sign in to comment.