Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sublime Text: Add Missing Accented Characters (á, å, ä)

Sublime Text: Add Missing Accented Characters (á, å, ä)

Put inside user's key bindings.

[
  // Missing accented characters fix.

  // a, [á, å, ä]
  { "keys": ["´","a"], "command": "insert", "args": {"characters": "á"}},
  { "keys": ["°","a"], "command": "insert", "args": {"characters": "å"}},
  { "keys": ["¨","a"], "command": "insert", "args": {"characters": "ä"}},

  // A, [Á, Å, Ä]
  { "keys": ["´","A"], "command": "insert", "args": {"characters": "Á"}},
  { "keys": ["°","A"], "command": "insert", "args": {"characters": "Å"}},
  { "keys": ["¨","A"], "command": "insert", "args": {"characters": "Ä"}},

  // e, [é, ë]
  { "keys": ["´","e"], "command": "insert", "args": {"characters": "é"}},
  { "keys": ["¨","e"], "command": "insert", "args": {"characters": "ë"}},

  // E, [É, Ë]
  { "keys": ["´","E"], "command": "insert", "args": {"characters": "É"}},
  { "keys": ["¨","E"], "command": "insert", "args": {"characters": "Ë"}},

  // i, [í, ï]
  { "keys": ["´","i"], "command": "insert", "args": {"characters": "í"}},
  { "keys": ["¨","i"], "command": "insert", "args": {"characters": "ï"}},

  // I, [Í, Ï]
  { "keys": ["´","I"], "command": "insert", "args": {"characters": "Í"}},
  { "keys": ["¨","I"], "command": "insert", "args": {"characters": "Ï"}},

  // o, [ó, ö]
  { "keys": ["´","o"], "command": "insert", "args": {"characters": "ó"}},
  { "keys": ["¨","o"], "command": "insert", "args": {"characters": "ö"}},

  // O, [Ó, Ö]
  { "keys": ["´","O"], "command": "insert", "args": {"characters": "Ó"}},
  { "keys": ["¨","O"], "command": "insert", "args": {"characters": "Ö"}},

  // u, [ú, ů, ü]
  { "keys": ["´","u"], "command": "insert", "args": {"characters": "ú"}},
  { "keys": ["°","u"], "command": "insert", "args": {"characters": "ů"}},
  { "keys": ["¨","u"], "command": "insert", "args": {"characters": "ü"}},

  // U, [Ú, Ů, Ü]
  { "keys": ["´","U"], "command": "insert", "args": {"characters": "Ú"}},
  { "keys": ["°","U"], "command": "insert", "args": {"characters": "Ů"}},
  { "keys": ["¨","U"], "command": "insert", "args": {"characters": "Ü"}},

  // y, [ý, ÿ]
  { "keys": ["´","y"], "command": "insert", "args": {"characters": "ý"}},
  { "keys": ["¨","y"], "command": "insert", "args": {"characters": "ÿ"}},

  // Y, [Ý, Ÿ]
  { "keys": ["´","Y"], "command": "insert", "args": {"characters": "Ý"}},
  { "keys": ["¨","Y"], "command": "insert", "args": {"characters": "Ÿ"}}
]

Source: https://underc0deblog.blogspot.com/2015/04/caracteres-especiales-y-acentos-en.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.