1 May 2011 13:30
[Cucumber:7732] Re: Code Completion for Gherkin - help shape the spec!
2011-05-01 11:30:25 GMT
2011-05-01 11:30:25 GMT
In addition, the support for nested examples from gherkin files is also included in the pull request now. On May 1, 12:27 pm, iNecas <neca...@...> wrote: > Hello, > > I've made some commits to the gherkin-editor. In short, it's now able > to find out, > what the user have entered, search for steps that match this text, > show the suggestion using jquery-ui-autocomplete plugin, mask input > keys, > when the suggestion is on, to allow to use arrow keys, enter and > escape to > control the suggestions, and after choosing one, it replaces the > current text. > > I have also made some really simple spec file using jasmine framework > for the > autocompletion. > > I have made a pull request with this changes. I would like to hear > your opinion > on this approach. > > Now, I am going to implement suggestions about code completion > described inhttps://github.com/aslakhellesoy/gherkin/wiki/Code-Completion. I like > the idea of nesting steps > from gherkin files under their step definitions. > > I would like also to do the autocompletion the way, RubyMine (and > perhaps some others) > does: > when a suggestion is chosen, in the completed text you can jump > between arguments using a tab button, > so for example the step definition > /^I fill in "[^"]+" with "[^"]+"$/ > would be completed as > I fill in <arg1> with <arg2> > with <arg1> selected to be replaced immediately the user starts > typing, and when pressing <tab>, > <arg2> would be selected to be replaced. > > All the best, > Ivan > On Apr 22, 2:03 am, aslak hellesoy <aslak.helle...@...> wrote: > > > > > > > > > On Thu, Apr 21, 2011 at 11:13 PM, aslak hellesoy > > <aslak.helle...@...>wrote: > > > > On Thu, Apr 21, 2011 at 3:39 PM, aslak hellesoy <aslak.helle... <at> gmail.com>wrote: > > > >> On Thu, Apr 21, 2011 at 3:12 AM, Konstantin Kudryashov < > > >> ever....@...> wrote: > > > >>> I'm in! How can i help? > > > >> By improving one of the editors you use (or would like to use) I guess. > > >> How about helping me implement a Gherkin editor based on Ace? ( > > >>http://ace.ajax.org/) > > > >> Here is my vision: > > >> * A small node.js app based on express and dust for templates (I have > > >> started on that) > > > > It was a little tricky to serve ace from a node app, so I sent this pull > > > request:https://github.com/ajaxorg/ace/pull/217 > > > >> * Bundle with a i18n syntax highlighter for Gherkin (I have started on > > >> that too) > > > > That's started too: > > > >https://github.com/cucumber/ace/blob/gherkin-mode/lib/ace/mode/gherki... > > >https://github.com/cucumber/ace/blob/gherkin-mode/lib/ace/mode/gherki... > > > Ok - I have tied all the loose ends together and started a project: > > >https://github.com/cucumber/gherkin-editor > > > Have a look at it. Play with it. Impress me with your contributions and > > ideas > > > Now I'm off the grid for a week or two. > > > Aslak > > > > * Start implementing code-completion in Ace > > >> * Reads and writes files using WebDav and/or REST: > > >>https://github.com/mikedeboer/jsdav > > > >> Ace doesn't have a code completion module (google ace code completion), > > >> but building it on top with pure dom/jQuery should't be too hard. Writing > > >> some real code will also help shape the code completion spec. > > > >> I'm going to be away for 10 days, but I'll get back with more (and share > > >> my code) when I'm back. Are these technologies something you'd be able to > > >> work with? Did you have anything else in mind? > > > >> -------------------------------------------------- > > >>> Konstantin Kudryashov (everzet) > > >>>http://about.me/everzet/bio > > > >>> On среда, 20 апреля 2011 г. at 10:14, aslak hellesoy wrote: > > > >>> Hi folks (cc'ed SpecFlow/Cuke4PHP/Behat guys) > > > >>> Editor code completion is a sorely needed feature for anyone working with > > >>> Gherkin documents. I have started on a spec for this: > > >>>https://github.com/aslakhellesoy/gherkin/wiki/Code-Completion > > > >>> I'd love feedback from: > > > >>> * People working on editor support for Gherkin/Cucumber > > > >>> * People working on Cucumber clones > > > >>> * Users with strong opinions on the subject > > > >>> Please respond to this thread (on cukes@...) or comment > > >>> directly in the wiki page. > > > >>> Personally I'll be working on code completion support in the Ace editor - > > >>> you can already see an embryonic demo here:http://cukes.info/trycuke/(I > > >>> have a local version with syntax highlighting). > > > >>> Cheers, > > >>> Aslak > > > >>> -- > > >>> You received this message because you are subscribed to the Google Groups > > >>> "Cukes" group. > > >>> To post to this group, send email to cukes@... > > >>> To unsubscribe from this group, send email to > > >>> cukes+unsubscribe@... > > >>> For more options, visit this group at > > >>>http://groups.google.com/group/cukes?hl=en. -- -- You received this message because you are subscribed to the Google Groups "Cukes" group. To post to this group, send email to cukes@... To unsubscribe from this group, send email to cukes+unsubscribe <at> googlegroups.com. For more options, visit this group at http://groups.google.com/group/cukes?hl=en.