joseramonc / rails-snippets

:shipit:
http://codn.mx/en
MIT License
43 stars 24 forks source link

Snippet shorcut keys doesn't work #24

Closed peyloride closed 8 years ago

peyloride commented 8 years ago

I can use snippets via alt+shift+s menu but i can't get it work by just pressing ctrl+shift+. I'm using Turkish Q Keyboard Layout maybe something related to this?

Thanks.

joseramonc commented 8 years ago

The keybindings are ctrl-> and cmd->.

The problem is that american keyboard has mapped shift-. to >. That's why the readme says ctrl-shift-.. Maybe turkish keyboard has mapped > symbol in different keys but try pushing ctrl->.

If above doesn't work you can override your keybindings if you want to use it with ctrl-. or whatever youre used to with

# keymap.cson
'atom-text-editor:not(.mini)':
  'ctrl-.': 'rails-snippets:toggleErb'

Hope this helps you

peyloride commented 8 years ago

Thanks for your reply.

My thought was correct and it was related to Turkish Keyboard problem. The real problem is, when typing on my keyboard pressing "dot" button gives me a dot, it's correct. But when i try to execute shortcuts with my "dot" key atom thinks it is "/" key. So when typing atom uses native keyboard keymap but when it comes to shortcuts, its executing via american keymap. It was really hard to figure it out. But thanks anyway. And really thank you for this package, it makes my life happier.