in reply to Tk::Text - moving through hidden text
I would say you could submit a bug report at Tk bug reports . But to be honest, the maintainer is very busy, and I wouldn't expect a quick response.-elide => boolean Elide specifies whether the data should be elided. Elided data is not displayed and takes no space on screen, but further on behaves just as normal data.
Your best option is to create a workaround, where you store the hidden ranges in an array
then when the cursor position is in one of those ranges, manually skip it. This would require you bind to the arrow-keys. You might also want to ask in the newsgroup comp.lang.perl.tk, where a few Tk::Text experts hang out.sub hide_text { my @r = $text->tagRanges('sel'); print "@r\n"; return unless @r; $text->tagAdd('hide',@r); return; }
|
|---|