ruby-block icon indicating copy to clipboard operation
ruby-block copied to clipboard

Highlight end blocks when cursor is at the beginning

Open andreapavoni opened this issue 10 years ago • 10 comments

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 :-)

andreapavoni avatar Mar 05 '15 13:03 andreapavoni

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

hmatsuda avatar Mar 08 '15 09:03 hmatsuda

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

maasha avatar Aug 12 '15 09:08 maasha

+1, this would really add QoL to the editor

marcusmalmberg avatar Oct 07 '15 09:10 marcusmalmberg

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

GuillaumeLegendre avatar Jan 26 '16 09:01 GuillaumeLegendre

+1

maksimf avatar Feb 03 '16 15:02 maksimf

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

dogweather avatar Feb 06 '16 04:02 dogweather

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

hmatsuda avatar Feb 06 '16 13:02 hmatsuda

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

vtm9 avatar Apr 10 '16 11:04 vtm9

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

AaronM04 avatar Dec 13 '16 20:12 AaronM04

PLEASE DO THIS

TSMMark avatar Apr 20 '17 13:04 TSMMark