If I go to a line using Navigate > Go to Symbol (shift + command + T), the line I go to could potentially be positioned anywhere on the page. Sometimes it is near the bottom of the page, sometimes near the middle. Is it possible to always position the line at the top of the page?
Thanks Ross
On Mar 15, 2014, at 12:11 AM, Ross Ahmed rossahmed@googlemail.com wrote:
If I go to a line using Navigate > Go to Symbol (shift + command + T), the line I go to could potentially be positioned anywhere on the page. Sometimes it is near the bottom of the page, sometimes near the middle. Is it possible to always position the line at the top of the page?
I agree. Sometimes it doesn't seem to be on the page at all. I believe this is connected somehow with the problem I noted before, where as you scroll up there is a delay before display of the text. My theory is that the text has not been rendered so TextMate doesn't really know where it is and how long it is, and thus where to scroll to. Of course that's just a theory. m.
-- matt neuburg, phd = http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
On Mar 16, 2014, at 7:14 PM, Allan Odgaard mailinglist@textmate.org wrote:
On 16 Mar 2014, at 0:00, Matt Neuburg wrote:
[…] Sometimes it doesn't seem to be on the page at all
When that happens, would it be just below the visible area with a lot of soft wrapped text above it?
I don't know whether it is just below the visible area (all I know is we jumped to nowhere that I can see), but an AsciiDoc document is certainly a lot of soft wrapped text! m.
-- matt neuburg, phd = matt@tidbits.com, http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
On 15 Mar 2014, at 14:11, Ross Ahmed wrote:
[…] Is it possible to always position the line at the top of the page?
TextMate tries to limit amount of scroll (for all movement actions) so that the user does not lose sense of where they are in the document.
You can use Edit → Find → Jump to Selection (⌘J) to center the caret/selection.
That said this function and Go to Line should probably always trigger a centering of caret/selection, since it’s likely not being used for “relative jumps”.
On 17 Mar 2014, at 9:12, Allan Odgaard wrote:
On 15 Mar 2014, at 14:11, Ross Ahmed wrote:
[…] Is it possible to always position the line at the top of the page?
[…] this function and Go to Line should probably always trigger a centering of caret/selection, since it’s likely not being used for “relative jumps”.
For the records, the behavior has been changed (in current release) so that Go to Symbol and Go to Line always centers the caret in the view port.