andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 38 forks source link

macosx: key shortcuts overload #70

Closed pvanek closed 11 years ago

pvanek commented 11 years ago

command+, (the default for "open preferences") collides with "Search word under cursor backward" action

command+space (the default for Spotlight) collides with "Show completion"

andreikop commented 11 years ago

Is there some common shortcut for "Show completion" on Mac? i.e. shortcut used by TextMate or Xcode?

pvanek commented 11 years ago

heh, I'm not sure. I mostly use juffed and vim on mac ;)

but xcode has these shortcut (img attached) Screen shot 2012-12-29 at 1 01 42 PM

andreikop commented 11 years ago

Could you please open enki Edit->Application shortcuts dialogue, set focus to some action, press "Completion List" shortcut and send me a text, which you see at the edit box at the bottom of dialogue. I don't know how to represent this hieroglyphs in ascii

On Sat, Dec 29, 2012 at 3:03 PM, Petr Vanek notifications@github.comwrote:

heh, I'm not sure. I mostly use juffed and vim on mac ;)

but xcode has these shortcut (img attached) [image: Screen shot 2012-12-29 at 1 01 42 PM]https://f.cloud.github.com/assets/207237/35171/b1926b48-51af-11e2-80d6-bbc7912b0177.png

— Reply to this email directly or view it on GitHubhttps://github.com/hlamer/enki/issues/70#issuecomment-11751939.

pvanek commented 11 years ago

Ctrl+Space

from qt4 docs: Note that on Mac OS X, the Ctrl value corresponds to the Command keys on the Macintosh keyboard, and the Meta value corresponds to the Control keys.

Command key = "fan" or "flower" char in the screenshot = Ctrl in rest of the world Meta key = ctrl in osx world

andreikop commented 11 years ago

I mean, could you press a shortcut, marked with red on the attached screenshot. I need it's text, for setting it as default for enki on Mac

On Sat, Dec 29, 2012 at 4:17 PM, Petr Vanek notifications@github.comwrote:

Ctrl+Space

from qt4 docs: Note that on Mac OS X, the Ctrl value corresponds to the Command keys on the Macintosh keyboard, and the Meta value corresponds to the Control keys.

Command key = "fan" or "flower" char in the screenshot = Ctrl in rest of the world Meta key = ctrl in osx world

— Reply to this email directly or view it on GitHubhttps://github.com/hlamer/enki/issues/70#issuecomment-11752533.

pvanek commented 11 years ago

I did some investigations and I discovered that mac ctrl+space is mostly used (eclipse, latest xcode, ...). So I suggest to set: Meta+Space as a completion list shortcut for osx.

andreikop commented 11 years ago

On Sat, Dec 29, 2012 at 4:57 PM, Petr Vanek notifications@github.comwrote:

I did some investigations and I discovered that mac ctrl+space is mostly used (eclipse, latest xcode, ...).

Hmm, I don't understand. Do you mean, that xcode also conflicts with Spotlight?

pvanek commented 11 years ago

not at all. Remember that when you set shortcut: Ctrl+Space, the Command+Space is used on OSX (it conflicts).

But when you set (I suggest) Meta+Space, the mac's ctrl+space combination will be used (the same as in new xcode, eclipse...)

andreikop commented 11 years ago

Done

Meta+Space opens completion Meta+, Meta+. searches word under cursor

Could you please remove .enki/shortcuts.json and check, if shortcuts are set correctly

pvanek commented 11 years ago

yes, confirmed - it works really nice now. Thanks.