andreikop / enki

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

Open completion with Ctrl+Space #90

Closed vi closed 11 years ago

vi commented 11 years ago

Also Ctrl+Space does not work to explicitly invoke code completion window.

rev: 32d28393c1f072d4960d7a899775dcf74f7bf7ca

andreikop commented 11 years ago

About Enter - this is expected behavior. When I press Enter - I want it to insert line break. And I'll be angry, if editor completes text instead of it. You can press Down, Enter or Tab to insert completion

About Ctrl+Space - do you really think this feature is useful? If you do, I'll convert this bug to a feature.

vi commented 11 years ago

How to manually open code completion otherwise? (especially if compexer completion rules will be implemented, see other feature requests)

There should be at least a menu item for this at least. If you don't want Ctrl+Space you can leave it unbinded by default. I may prefer to bind it to "Ctrl+P" for example...

andreikop commented 11 years ago

Ctrl+P is widely used as Print Ctrl+Space is better as default value. And, I think, vim users are smart enough to reconfigure shortcuts.

vi commented 11 years ago

I don't propose to make "Ctrl+P" to be default shortcut. I propose making "Trigger code completion" menu item, so I can configure shortcuts as I like. For example I use "F2" as "Save" (both in Vim and in Enki). BTW I also can't bind multiple shortcuts to the same command (usually there is such feature, usually two shortcuts - primary and alternative available)

andreikop commented 11 years ago

You may open feature "Support alternative shortcuts" if you would like. Will be low priority, but I also would like to have it.

andreikop commented 11 years ago

Ctrl+Space done

vi commented 11 years ago

Related issue: https://github.com/hlamer/enki/issues/101

Also a minor thing: my binding (no shortcut for "Print" and Ctrl+P shortcut for "Invoke completion") from old Enki hasn't automatically recognized by new enki (unlike F2 for Save).