Sublime Forum

Find buffer formatting issue

#1

I found an issue with the search results find buffer. When you have your tab size set to 2 in your user settings (not just on the tab size area in the bottom right), some of the results won’t collapse all the way. When there is a transition between line numbers of 2 digits to line numbers of 3 digits, an extra space is added before the lines with 2 digits to make all the numbers right aligned. If you get rid of this extra space so all the line numbers are left aligned, then it collapses correctly (example below). Is there a way to make the search results collapse correctly with a tab-size of 2?

Uncollapsed - Right Aligned Formatting

/example/file/path/file.php:
   93 example code
   94 example code
   ..
  243 example code (anything from this line and below will not collapse)
  244 example code

Collapsed - Right Aligned Formatting

/example/file/path/file.php:
  243 example code (anything from this line and below will not collapse)
  244 example code

Uncollapsed - Left Aligned Formatting

/example/file/path/file.php:
  93 example code
  94 example code
  ..
  243 example code (now all lines should collapse correctly)
  244 example code

Collapsed - Left Aligned Formatting

/example/file/path/file.php:
0 Likes

#2

I’ve run into this same issue and although I’m hoping for a proper fix, there is a fairly simple workaround:
Go into the syntax-specific settings for find results and reset your tab size there to 4.

0 Likes