atom-latextools icon indicating copy to clipboard operation
atom-latextools copied to clipboard

tilde and hash keybinding

Open ghost opened this issue 8 years ago • 2 comments

Pressing the hash key which would normally produce a #, produces `' Pressing tilde(shift+hash) which would normally produce a ~, instead produces ``''

Turning off the keybindings for latextools fixes the problem and allows me to type #'s and ~'s. This is also only an issue for tex files.

This is with atom 1.9.9, latextools 0.8.1, windows 7.

ghost avatar Aug 25 '16 12:08 ghost

I've found that adding the following to my keymap.cson fixes the problem

"atom-text-editor[data-grammar~='latex']":
  "'": 'unset!',
  '"': 'unset!'

it seems that the latextools:double-quote and latextools:quote commands are causing this issue.

ghost avatar Aug 25 '16 13:08 ghost

Aside from the specific keybindings affected, this is exactly the same underlying problem as #98 and #115, i.e. a (still unresolved) issue in Atom itself (atom/atom-keyboard#35 and atom/atom-keyboard#37). The key here is, unfortunately, the UK keyboard which positions the # and ~ keys where the US keyboard has ' and ".

You can resolve this issue by installing the keyboard-localization plugin though I think you have to generate your own keymap to get everything working correctly (I use a computer with such a UK keyboard and have gotten this to work; I don't quite remember all the steps, however).

ig0774 avatar Aug 26 '16 10:08 ig0774