oni2 icon indicating copy to clipboard operation
oni2 copied to clipboard

How to autocomplete?

Open guledali opened this issue 4 years ago • 13 comments

  1. In vscode it's usually ctrl + space, for example if I'm importing <TextField /> in order to see all available props, I would be inside a component then hit ctrl + space.

  2. Another thing is how do I move from editor view to file explorer similar to nerdTree? In nerdtree you can navigate through key input j for moving down and k for up. Creating as well deleting files. It would be nice if the current file explorer supported right clicking for creating files like vscode

  3. Is the a way configuring keyboard layout, If I want to have my own mapping?

guledali avatar Aug 14 '20 09:08 guledali

Hi @guledali ,

In vscode it's usually ctrl + space, for example if I'm importing <TextField /> in order to see all available props, I would be inside a component then hit ctrl + space.

We support ctrl+space as well (and then control+n to cycle, tab to complete) - sounds like a bug that it's not showing up. Is the file you're testing on open-source? Or one we can check out?

Another thing is how do I move from editor view to file explorer similar to nerdTree?

Unfortunately we're missing vim-keybinding navigation for the explorer (tracking in #528 and #2123 ) - we want to implement this for this milestone (0.6.0), though

Is the a way configuring keyboard layout, If I want to have my own mapping?

There is some information here: https://onivim.github.io/docs/configuration/key-bindings - let me know if you have further questions. We'd also like to support vim mappings for this milestone.

bryphe avatar Aug 15 '20 00:08 bryphe

would be nice if the current file explorer supported right clicking for creating files like vscode

@bryphe What’s the recommended way of creating files and folder, especially being deep inside a folder structure. Do I manually have to type the path

guledali avatar Aug 15 '20 05:08 guledali

ctrl + space not working for me, I can confirm it I'm on TypeScript file. Is there a way of manually setting that up with keybindings?

I don't know why it does not work for me, I'm on a different keyboard layout.

guledali avatar Aug 15 '20 05:08 guledali

@bryphe Here is screen recording from me hitting ctrl + space and control+n multiple times and nothing is happening

Screen-Recording-2020-08-15-at-08 24 43

guledali avatar Aug 15 '20 06:08 guledali

Another thing, simple thing like uninstalling the software. How to completely removing it or resetting. Should be in the documentation

guledali avatar Aug 15 '20 06:08 guledali

@bryphe What do you think?

guledali avatar Aug 17 '20 07:08 guledali

Thanks for the screen recording, @guledali ! Was a bug blocking the manual invocation - we were trying to find a 'meet' based on the trigger characters... but that wouldn't work right on an empty line. Fixing in #2321 to improve the manual-invoke scenario.

bryphe avatar Aug 19 '20 01:08 bryphe

It would be nice if the current file explorer supported right clicking for creating files like vscode

For sure - I opened #2322 to track this.

bryphe avatar Aug 19 '20 01:08 bryphe

How do you upgrade? Or does it happen automatically, if that's case shouldn't you be notified?

guledali avatar Aug 19 '20 09:08 guledali

Has this issue been resolved? I have an identical problem with auto suggestions not showing up unless I type at least one character. I'd expect the editor to show me objects properties without any user input. Just pressing <Ctrl-Space> in VSCode works this way. Version 0.5.9-nightly, Manjaro Linux

librowski avatar Jun 30 '21 14:06 librowski

I have the same problem, that I cannot trigger the auto suggestion manually with Ctrl-Space

nikbrunner avatar Jun 30 '21 14:06 nikbrunner

Can confirm this still an issue.

andrescuco avatar Jul 09 '21 14:07 andrescuco

Any updates on this? It is still not working. I tried reinstalling the Editor and also setting a manual command for it in the keybindings file like this:

  {
    "key": "<C-Space>",
    "command": "editor.action.triggerSuggest",
    "when": "(normalMode || insertMode) && editorTextFocus && !suggestWidgetAvailable"
  }

nikbrunner avatar Aug 16 '21 08:08 nikbrunner