I couldn’t find something before, so I created a plugin to assist with navigating block structures in “braceless” languages like Ruby and Python via key binding. E.g.
[code]def
end
do
end
begin
[rescue]
end
if
[elsif]
[else]
end[/code]
The plugin allows jumping from something like do
to end
and vice versa via key combo. Or jumping out to the start of a block (e.g. def
| if
| elsif
| else
) from a line inside the block.
It relies on code being well indented and not mixing tabs and spaces. It’s a bit rough, but functioning.