hmatsuda / ruby-block

highlight matching ruby block on Atom editor
https://atom.io/packages/ruby-block
GNU General Public License v2.0
16 stars 11 forks source link

Highlight end blocks when cursor is at the beginning #7

Open andreapavoni opened 9 years ago

andreapavoni commented 9 years ago

Hi there,

first of all, thank you for this useful package :-) It actually works by highlighting the begin of the block when a cursor is at the end. I was wondering if/how is possible to highlight end blocks even when cursor is at the beginning.

thanks in advance for eventual replies :-)

hmatsuda commented 9 years ago

It's difficult but I'll try to implement this.

maasha commented 9 years ago

Would be wonderful feature to have. Vim can do it!

marcusmalmberg commented 9 years ago

+1, this would really add QoL to the editor

GuillaumeLegendre commented 8 years ago

This would be awesome and even more if the go to keybindings works too. :+1:

maksimf commented 8 years ago

+1

dogweather commented 8 years ago

@hmatsuda I'd like to try helping with this. Is there a place in the code you think would need to be changed?

hmatsuda commented 8 years ago

Thanks for helping @dogweather .

the searchForBlock method is searching for line of matching block beginning. https://github.com/hmatsuda/ruby-block/blob/master/lib/ruby-block.coffee#L125

vtm9 commented 8 years ago

Hi, thank you for this package. I found this project. This problem is solved there. Maybe you merge it. https://github.com/samu/blocky

AaronM04 commented 7 years ago

@vtm9 Once you fix your reference error, I can use blocky instead. :)

TSMMark commented 7 years ago

PLEASE DO THIS