Steps.
- move to the end of the current line,
- search backwards for the thing/pattern
- set the start-column to the current column.
- set the spec-string to the subgroup match on description of thing/pattern (ie. the text enclosed in quotes)
- while you can search backwards for a describe block and get a match:
- while the current-colum < start-column 1. set the start-column to match the current-column 2. add the found description to the front of the spec-string
- replace '#' with %23 in the spec-string
- save the buffer in case of changes
- url encode the spec-string
- browse the jasmine url + encoded spec string
Finding a describe.
finding an it.