rlogiacco / Natural

Natural is a collection of Eclipse plugins to enable rich smart editing of acceptance tests using natural language definition files. It currently supports Cucumber and JBehave syntax.
Eclipse Public License 1.0
75 stars 37 forks source link

Auto-complete #20

Open joaoclineu opened 11 years ago

joaoclineu commented 11 years ago

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

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

lucasfpfgomes commented 11 years ago

I´m having the same issue :P .

rlogiacco commented 11 years ago

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?

erbett commented 11 years ago

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

JasonSmiley commented 11 years ago

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

Jason Smiley - Senior QA Engineer jason.smiley@1stdibs.com

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.

rlogiacco commented 11 years ago

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?

JasonSmiley commented 11 years ago

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 jason.smiley@1stdibs.com

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.

mlasram commented 7 years ago

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 !

github-actions[bot] commented 4 years ago

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

drkstr101 commented 4 years ago

Flagging for review in next.

github-actions[bot] commented 4 years ago

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