Natural icon indicating copy to clipboard operation
Natural copied to clipboard

Auto-complete

Open joaoclineu opened this issue 12 years ago • 10 comments

I can not use the Auto-Complete in midsentence ...

example:                       Giv + Ctrl + Space I click + Ctrl + Space

joaoclineu avatar Feb 07 '13 14:02 joaoclineu

I´m having the same issue :P .

lucasfpfgomes avatar Feb 07 '13 18:02 lucasfpfgomes

Sorry, the auto complete kicks in only after you complete the Given keyword (or any other step definition keyword) and if I remember correctly you must have added a space after the keyword too. I've decided to go for this choice because I found no other way to identify if it's a new step description or the continuation of the previous one as a gherkin step description can span multiple lines.

Is it a problem? Do you have any suggestion for improvement?

rlogiacco avatar Feb 21 '13 10:02 rlogiacco

It would be more interesting if the auto complete feature could work always in partial sentences (although the Gherkin description allows steps spanned in multiple lines).

The most important improvement is the plugin capability locate selected words or patterns using Ctrl + Space.

Example: Giv<Ctrl+Space> Result: Given

Example: Given button<Ctrl+Space> Result (several choices): Given The button is clicked The inital button is disabled I click on "xxxxx" button

erbett avatar Feb 21 '13 15:02 erbett

I agree, that is what Intellije does - should match this!

Jason Smiley - Senior QA Engineer [email protected]

On Feb 21, 2013, at 10:53 AM, ehro wrote:

It would be more interesting if the auto complete feature could work always in partial sentences (although the Gherkin description allows steps spanned in multiple lines).

The most important improvement is the plugin capability locate selected words or patterns using Ctrl + Space.

Example: Giv Result: Given

Example: Given button Result (several choices): Given The button is clicked The inital button is disabled I click on "xxxxx" button

— Reply to this email directly or view it on GitHub.

JasonSmiley avatar Feb 21 '13 15:02 JasonSmiley

I understand your request but I'm not sure it is doable: can you lend my an hand on this? Do you have any experience with ANTLR or Xtext?

rlogiacco avatar Feb 22 '13 17:02 rlogiacco

I have no experience with either, but, I just purchased Intellije so I am not having this issue any more lol.

Jason Smiley - Senior QA Engineer [email protected]

On Feb 22, 2013, at 12:48 PM, Roberto Lo Giacco wrote:

I understand your request but I'm not sure it is doable: can you lend my an hand on this? Do you have any experience with ANTLR or Xtext?

— Reply to this email directly or view it on GitHub.

JasonSmiley avatar Feb 22 '13 18:02 JasonSmiley

Why not use proposal contains prefix instead of regionMatch in isValidProposal method. I tried this and it works. But it works only when typing Ctrl + Space and do not continue if typing. For example: I have a sentence check user is logged when I type use + Ctrl + Space the sentence is proposed, then when I type 'r' I must do Ctrl + Space to have the proposition. I don't know if it is clear for you !

mlasram avatar May 09 '17 09:05 mlasram

This issue has not been updated for a while: marking it as stale.

github-actions[bot] avatar May 29 '20 00:05 github-actions[bot]

Flagging for review in next.

drkstr101 avatar May 30 '20 04:05 drkstr101

This issue has not been updated for a while: marking it as stale.

github-actions[bot] avatar Jul 30 '20 00:07 github-actions[bot]