from visidata import BaseSheet

# for mac users to use Option+x as Alt+x without reconfiguring the terminal

# Option+X
BaseSheet.bindkey('å', '^[a')
BaseSheet.bindkey('∫', '^[b')
BaseSheet.bindkey('ç', '^[c')
BaseSheet.bindkey('∂', '^[d')
BaseSheet.bindkey('´', '^[e')
BaseSheet.bindkey('ƒ', '^[f')
BaseSheet.bindkey('©', '^[g')
BaseSheet.bindkey('˙', '^[h')
BaseSheet.bindkey('ˆ', '^[i')
BaseSheet.bindkey('∆', '^[j')
BaseSheet.bindkey('˚', '^[k')
BaseSheet.bindkey('¬', '^[l')
BaseSheet.bindkey('µ', '^[m')
BaseSheet.bindkey('˜', '^[n')
BaseSheet.bindkey('ø', '^[o')
BaseSheet.bindkey('π', '^[p')
BaseSheet.bindkey('œ', '^[q')
BaseSheet.bindkey('®', '^[r')
BaseSheet.bindkey('ß', '^[s')
BaseSheet.bindkey('†', '^[t')
BaseSheet.bindkey('¨', '^[u')
BaseSheet.bindkey('√', '^[v')
BaseSheet.bindkey('∑', '^[w')
BaseSheet.bindkey('≈', '^[x')
BaseSheet.bindkey('¥', '^[y')
BaseSheet.bindkey('Ω', '^[z')

# Option+Shift+X
BaseSheet.bindkey('Å', '^[A')
BaseSheet.bindkey('ı', '^[B')
BaseSheet.bindkey('Ç', '^[C')
BaseSheet.bindkey('Î', '^[D')
#BaseSheet.bindkey('´', '^[E')
BaseSheet.bindkey('Ï', '^[F')
BaseSheet.bindkey('˝', '^[G')
BaseSheet.bindkey('Ó', '^[H')
#BaseSheet.bindkey('ˆ', '^[I')
BaseSheet.bindkey('Ô', '^[J')
BaseSheet.bindkey('', '^[K')  # apple logo
BaseSheet.bindkey('Ò', '^[L')
BaseSheet.bindkey('Â', '^[M')
#BaseSheet.bindkey('˜', '^[N')
BaseSheet.bindkey('Ø', '^[O')
BaseSheet.bindkey('∏', '^[P')
BaseSheet.bindkey('Œ', '^[Q')
BaseSheet.bindkey('‰', '^[R')
BaseSheet.bindkey('Í', '^[S')
BaseSheet.bindkey('ˇ', '^[T')
#BaseSheet.bindkey('¨', '^[U')
BaseSheet.bindkey('◊', '^[V')
BaseSheet.bindkey('„', '^[W')
BaseSheet.bindkey('˛', '^[X')
BaseSheet.bindkey('Á', '^[Y')
BaseSheet.bindkey('¸', '^[Z')

# Option+nonletter
BaseSheet.bindkey('¡', '^[1')
BaseSheet.bindkey('™', '^[2')
BaseSheet.bindkey('£', '^[3')
BaseSheet.bindkey('¢', '^[4')
BaseSheet.bindkey('∞', '^[5')
BaseSheet.bindkey('§', '^[6')
BaseSheet.bindkey('¶', '^[7')
BaseSheet.bindkey('•', '^[8')
BaseSheet.bindkey('ª', '^[9')
BaseSheet.bindkey('º', '^[0')
BaseSheet.bindkey('', '^[`')
BaseSheet.bindkey('–', '^[-')
BaseSheet.bindkey('≠', '^[=')
BaseSheet.bindkey('“', '^[[')
BaseSheet.bindkey('‘', '^[]')
BaseSheet.bindkey('«', '^[\\')
BaseSheet.bindkey('÷', '^[/')
BaseSheet.bindkey('…', '^[;')
BaseSheet.bindkey('æ', '^[\'')
BaseSheet.bindkey('≤', '^[,')
BaseSheet.bindkey('≥', '^[.')

# Option+Shift+nonletter
BaseSheet.bindkey('⁄', '^[!')
BaseSheet.bindkey('€', '^[@')
BaseSheet.bindkey('‹', '^[#')
BaseSheet.bindkey('›', '^[$')
BaseSheet.bindkey('ﬁ', '^[%')
BaseSheet.bindkey('ﬂ', '^[^')
BaseSheet.bindkey('‡', '^[&')
BaseSheet.bindkey('°', '^[*')
BaseSheet.bindkey('·', '^[(')
BaseSheet.bindkey('‚', '^[)')
#BaseSheet.bindkey('`', '^[~')
BaseSheet.bindkey('—', '^[_')
BaseSheet.bindkey('±', '^[+')
BaseSheet.bindkey('”', '^[{')
BaseSheet.bindkey('’', '^[}')
BaseSheet.bindkey('»', '^[|')
BaseSheet.bindkey('¿', '^[?')
BaseSheet.bindkey('Ú', '^[:')
BaseSheet.bindkey('Æ', '^["')
BaseSheet.bindkey('¯', '^[<')
BaseSheet.bindkey('˘', '^[>')
